diff --git a/Source/ProofOfConcept/Program.cs b/Source/ProofOfConcept/Program.cs index 437d867..1823b8b 100644 --- a/Source/ProofOfConcept/Program.cs +++ b/Source/ProofOfConcept/Program.cs @@ -55,6 +55,8 @@ builder.Services.AddAuthentication(o => // This must match exactly what you register at Tesla o.CallbackPath = new PathString("/token-exchange"); + + o.TokenValidationParameters.ValidIssuers = ["https://fleet-auth.tesla.com/oauth2/v3/nts", "https://auth.tesla.com/oauth2/v3", "https://fleet-auth.prd.vn.cloud.tesla.com/oauth2/v3/nts"]; // Scopes you actually need o.Scope.Clear();