Disables issuer validation
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
Disables issuer validation during token authentication. The token validation parameters are adjusted to bypass issuer validation, since the issuer is already validated via the `ValidIssuers` parameter.
This commit is contained in:
@@ -56,6 +56,7 @@ builder.Services.AddAuthentication(o =>
|
|||||||
// This must match exactly what you register at Tesla
|
// This must match exactly what you register at Tesla
|
||||||
o.CallbackPath = new PathString("/token-exchange");
|
o.CallbackPath = new PathString("/token-exchange");
|
||||||
|
|
||||||
|
o.TokenValidationParameters.ValidateIssuer = false;
|
||||||
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"];
|
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
|
// Scopes you actually need
|
||||||
|
|||||||
Reference in New Issue
Block a user