add passkey & totp
This commit is contained in:
1 parent
70f6b52577
commit
1d06bbd482
13 files changed
+9114
-4
No files matched your search
@@ -24,6 +24,7 @@ using Microsoft.AspNetCore.Authentication.JwtBearer;
|
||||
using Microsoft.AspNetCore.Authentication.Cookies;
|
||||
using Microsoft.AspNetCore.Authentication.OpenIdConnect;
|
||||
using Microsoft.AspNetCore.HttpOverrides;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.RateLimiting;
|
||||
using Microsoft.Data.Sqlite;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
@@ -406,6 +407,8 @@ builder.Services
|
||||
options.Lockout.DefaultLockoutTimeSpan = TimeSpan.FromMinutes(15);
|
||||
})
|
||||
.AddRoles<ApplicationRole>()
|
||||
.AddTokenProvider<AuthenticatorTokenProvider<ApplicationUser>>(
|
||||
TokenOptions.DefaultAuthenticatorProvider)
|
||||
.AddEntityFrameworkStores<AppDbContext>();
|
||||
|
||||
var jwtOptions = builder.Configuration.GetSection(JwtOptions.SectionName).Get<JwtOptions>()
|
||||
@@ -432,6 +435,7 @@ builder.Services.Configure<SsoOptions>(
|
||||
builder.Services.AddHttpContextAccessor();
|
||||
builder.Services.AddScoped<ITokenService, TokenService>();
|
||||
builder.Services.AddScoped<IAuthSessionService, AuthSessionService>();
|
||||
builder.Services.AddSingleton<ITwoFactorLoginTicketService, TwoFactorLoginTicketService>();
|
||||
builder.Services.AddScoped<ICurrentUserDataScope, CurrentUserDataScope>();
|
||||
builder.Services.AddScoped<DatabaseInitializer>();
|
||||
builder.Services.AddScoped<DemoDataSeeder>();
|
||||
|
||||
Reference in new issue
Block a user