From 8442fb8f05ea9f3cc62ba5702fe14a91d067dffa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szak=C3=A1ts=20Alp=C3=A1r=20Zsolt?= Date: Sun, 17 Aug 2025 00:33:48 +0200 Subject: [PATCH] Updates Tesla OIDC address. 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. --- Source/ProofOfConcept/Utilities/TeslaOIDCConfigurationManager.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/ProofOfConcept/Utilities/TeslaOIDCConfigurationManager.cs b/Source/ProofOfConcept/Utilities/TeslaOIDCConfigurationManager.cs index 0e3031e..cb17180 100644 --- a/Source/ProofOfConcept/Utilities/TeslaOIDCConfigurationManager.cs +++ b/Source/ProofOfConcept/Utilities/TeslaOIDCConfigurationManager.cs @@ -46,6 +46,7 @@ public class TeslaDocumentRetriever : IDocumentRetriever public async Task 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"); }