Skip to content

Instantly share code, notes, and snippets.

@snobu
Last active January 8, 2019 15:31
Show Gist options
  • Save snobu/8f90f5beaa9d119b1dea28db3af1af76 to your computer and use it in GitHub Desktop.
Save snobu/8f90f5beaa9d119b1dea28db3af1af76 to your computer and use it in GitHub Desktop.
Default .AddJwtBearer TokenValidationParameters (.NET Core 2.2)
// .NET Core 2.2

  .AddJwtBearer(options =>
    {
        var vp = options.TokenValidationParameters;

vp is:

    ActorValidationParameters: null
    AudienceValidator: null
    AuthenticationType: null
    ClockSkew: {00:05:00}
    CryptoProviderFactory: null
    IssuerSigningKey: null
    IssuerSigningKeyResolver: null
    IssuerSigningKeyValidator: null
    IssuerSigningKeys: null
    IssuerValidator: null
    LifetimeValidator: null
    NameClaimType: "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"
    NameClaimTypeRetriever: null
    PropertyBag: null
    RequireExpirationTime: true
    RequireSignedTokens: true
    RoleClaimType: "http://schemas.microsoft.com/ws/2008/06/identity/claims/role"
    RoleClaimTypeRetriever: null
    SaveSigninToken: false
    SignatureValidator: null
    TokenDecryptionKey: null
    TokenDecryptionKeyResolver: null
    TokenDecryptionKeys: null
    TokenReader: null
    TokenReplayCache: null
    TokenReplayValidator: null
    ValidAudience: null
    ValidAudiences: null
    ValidIssuer: null
    ValidIssuers: null
    ValidateActor: false
    ValidateAudience: true
    ValidateIssuer: true
    ValidateIssuerSigningKey: false
    ValidateLifetime: true
    ValidateTokenReplay: false

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