Guest User

Untitled

a guest
Sep 24th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
  2. .AddJwtBearer(opt =>
  3. {
  4. opt.SecurityTokenValidators.Clear();
  5. opt.SecurityTokenValidators.Add(new MyTokenHandler());
  6. });
Add Comment
Please, Sign In to add comment