Updates Tesla OIDC address.
All checks were successful
Build, Push and Run Container / build (push) Successful in 25s
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:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user