【发布时间】:2018-04-03 14:34:15
【问题描述】:
我正在使用基于dualauthcore 的身份和 JWT,并测试了将用户锁定。我无法尝试使用错误的密码登录,也无法在标头中包含无效令牌。
options.Lockout.DefaultLockoutTimeSpan = TimeSpan.FromMinutes(30);
options.Lockout.MaxFailedAccessAttempts = 10;
options.Lockout.AllowedForNewUsers = true;
有没有办法让 JwtBearer 身份验证遵守 Identity 的锁定设置,或者 JwtBearer 身份验证没有这些问题?
【问题讨论】:
标签: asp.net-core asp.net-identity jwt bearer-token