Skip to content

Commit

Permalink
Set name claim type
Browse files Browse the repository at this point in the history
  • Loading branch information
Oren Novotny committed Dec 20, 2017
1 parent 965ae1f commit b0c96ae
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public void Configure(string name, JwtBearerOptions options)
OnTokenValidated = OnTokenValidated
};
options.TokenValidationParameters.RoleClaimType = "roles";
options.TokenValidationParameters.NameClaimType = "name";
}

async Task OnTokenValidated(JwtBearer.TokenValidatedContext tokenValidatedContext)
Expand Down

0 comments on commit b0c96ae

Please sign in to comment.