public async Task SignInUserPartiallyAsync( Guid userId, MfaProvider setupMfaProviders, string returnUrl = null) { var claims = new List <Claim> { new Claim(ClaimTypes.Anonymous, JsonConvert.SerializeObject(new AuthenticationProfile(userId, setupMfaProviders))), }; if (!string.IsNullOrWhiteSpace(returnUrl)) { claims.Add(new Claim(ClaimTypes.UserData, returnUrl)); } await this._httpContextAccessor.HttpContext.SignInAsync( "login-partial", new ClaimsPrincipal(new ClaimsIdentity(claims, CookieAuthenticationDefaults.AuthenticationScheme))); }
public UnauthenticatedUser(Guid userId, MfaProvider setupMfaProviders) { this.UserId = userId; this.SetupMfaProviders = setupMfaProviders; }
public AuthenticateUserCommandResult(Guid userId, MfaProvider mfaProviders, AssertionOptions assertionOptions) : base(userId, AuthenticationState.AwaitingMfaDeviceCode) { this.SetupMfaProviders = mfaProviders; this._assertionOptions = assertionOptions; }
public AuthenticationProfile(Guid userId, MfaProvider setupMfaProviders) { this.UserId = userId; this.SetupMfaProviders = setupMfaProviders; }
public AuthenticateUserCommandResult(Guid userId, AuthenticationState authenticationStatus, MfaProvider mfaProviders) : base(userId, authenticationStatus) { this.SetupMfaProviders = mfaProviders; }