Configures Tesla OIDC endpoints dynamically
All checks were successful
Build, Push and Run Container / build (push) Successful in 23s

Configures the Tesla OIDC endpoints using the base URL
to dynamically set authorization, token, JWKS URI, end
session, and user info endpoints. This eliminates the need
for a URL override function and centralizes the endpoint
configuration logic.
This commit is contained in:
2025-08-16 23:37:14 +02:00
parent a192f1380b
commit 890162394d
2 changed files with 11 additions and 7 deletions

View File

@@ -52,6 +52,7 @@ builder.Services
o.Configuration.JwksUri = "https://fleet-auth.prd.vn.cloud.tesla.com/oauth2/v3/discovery/thirdparty/keys";
o.Configuration.EndSessionEndpoint = "https://fleet-auth.prd.vn.cloud.tesla.com/oauth2/v3/logout";
o.Configuration.UserInfoEndpoint = "https://fleet-auth.prd.vn.cloud.tesla.com/oauth2/v3/userinfo";
o.ConfigurationManager = new TeslaOIDCConfigurationManager(o.MetadataAddress);
// Standard OIDC web app settings
o.ResponseType = OpenIdConnectResponseType.Code;