I know in depth how to create claims ,creadentials and Jwt and how to create it with hashing algoritm but i didn't understand any thing about configure it in startup class or any documentaion explain it.
services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme) .AddJwtBearer(options => options.TokenValidationParameters=new TokenValidationParameters{ ValidateIssuerSigningKey=true, IssuerSigningKey=new SymmetricSecurityKey(Encoding.ASCII .GetBytes(Configuration.GetSection("AppSettings:Token").Value)), ValidateIssuer=false, ValidateAudience=false }); https://stackoverflow.com/questions/65623219/please-can-someone-explain-me-the-authentication-service-in-config-in-the-startu January 08, 2021 at 11:51AM
没有评论:
发表评论