Updates Tesla OIDC address.
All checks were successful
Build, Push and Run Container / build (push) Successful in 25s

Updates the Tesla OIDC address to use the production environment.

This ensures that the application uses the correct endpoint for authentication
and avoids issues related to using the development environment in production.
This commit is contained in:
2025-08-17 00:33:48 +02:00
parent 9b96072982
commit 8442fb8f05

View File

@@ -46,6 +46,7 @@ public class TeslaDocumentRetriever : IDocumentRetriever
public async Task<string> GetDocumentAsync(string address, CancellationToken cancel)
{
address = address.Replace("https://fleet-auth.tesla.com/oauth2/v3", "https://fleet-auth.prd.vn.cloud.tesla.com/oauth2/v3");
string document = await this.httpDocumentRetriever.GetDocumentAsync(address, cancel);
return document.Replace("https://fleet-auth.tesla.com/oauth2/v3", "https://fleet-auth.prd.vn.cloud.tesla.com/oauth2/v3");
}