Skip to content

Instantly share code, notes, and snippets.

@Tanver-Hasan
Last active July 27, 2024 11:56
Show Gist options
  • Save Tanver-Hasan/d4b116d4dad2a4899aa34bf2222bfaed to your computer and use it in GitHub Desktop.
Save Tanver-Hasan/d4b116d4dad2a4899aa34bf2222bfaed to your computer and use it in GitHub Desktop.
Validating ID token
Audience : Audience should be client id
Issuer : auth0 domain
Sigining key : Retrieve form JWKS
https://auth0.com/docs/tokens/guides/id-token/validate-id-token
Validating Access token
Audience : Audience should be API identifier
Issuer: Auth0 Domain
Sigining Key: Retrieve from JWKS
https://auth0.com/docs/api-auth/tutorials/verify-access-token
@Tanver-Hasan
Copy link
Author

Build The Project

dotnet build

Run The Project

dotnet run

@Diaskhan
Copy link

Be aware that OpenIdConnectConfigurationRetriever.GetAsync() doesn't cache the retrieved configuration, while ConfigurationManager<>.GetConfigurationAsync() does so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment