1 write to Options
Microsoft.Extensions.Identity.Core (1)
UserManager.cs (1)
81Options = optionsAccessor?.Value ?? new IdentityOptions();
29 references to Options
Microsoft.AspNetCore.Identity.UI (6)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (1)
207if (_userManager.Options.SignIn.RequireConfirmedAccount)
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (1)
134user, _userManager.Options.Tokens.AuthenticatorTokenProvider, verificationCode);
Areas\Identity\Pages\V4\Account\Register.cshtml.cs (1)
152if (_userManager.Options.SignIn.RequireConfirmedAccount)
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (1)
207if (_userManager.Options.SignIn.RequireConfirmedAccount)
Areas\Identity\Pages\V5\Account\Manage\EnableAuthenticator.cshtml.cs (1)
134user, _userManager.Options.Tokens.AuthenticatorTokenProvider, verificationCode);
Areas\Identity\Pages\V5\Account\Register.cshtml.cs (1)
152if (_userManager.Options.SignIn.RequireConfirmedAccount)
Microsoft.Extensions.Identity.Core (23)
PasswordValidator.cs (1)
45var options = manager.Options.Password;
UserManager.cs (19)
105foreach (var providerName in Options.Tokens.ProviderMap.Keys) 107var description = Options.Tokens.ProviderMap[providerName]; 118if (Options.Stores.ProtectPersonalData) 406return principal.FindFirstValue(Options.ClaimsIdentity.UserNameClaimType); 418return principal.FindFirstValue(Options.ClaimsIdentity.UserIdClaimType); 466if (Options.Lockout.AllowedForNewUsers && SupportsUserLockout) 537if (user == null && Options.Stores.ProtectPersonalData) 602if (Options.Stores.ProtectPersonalData) 860return GenerateUserTokenAsync(user, Options.Tokens.PasswordResetTokenProvider, ResetPasswordTokenPurpose); 880if (!await VerifyUserTokenAsync(user, Options.Tokens.PasswordResetTokenProvider, ResetPasswordTokenPurpose, token).ConfigureAwait(false)) 1286if (user == null && Options.Stores.ProtectPersonalData) 1331return GenerateUserTokenAsync(user, Options.Tokens.EmailConfirmationTokenProvider, ConfirmEmailTokenPurpose); 1349if (!await VerifyUserTokenAsync(user, Options.Tokens.EmailConfirmationTokenProvider, ConfirmEmailTokenPurpose, token).ConfigureAwait(false)) 1385return GenerateUserTokenAsync(user, Options.Tokens.ChangeEmailTokenProvider, GetChangeEmailTokenPurpose(newEmail)); 1404if (!await VerifyUserTokenAsync(user, Options.Tokens.ChangeEmailTokenProvider, GetChangeEmailTokenPurpose(newEmail), token).ConfigureAwait(false)) 1504return GenerateUserTokenAsync(user, Options.Tokens.ChangePhoneNumberTokenProvider, ChangePhoneNumberTokenPurpose + ":" + phoneNumber); 1524return VerifyUserTokenAsync(user, Options.Tokens.ChangePhoneNumberTokenProvider, ChangePhoneNumberTokenPurpose + ":" + phoneNumber, token); 1812if (count < Options.Lockout.MaxFailedAccessAttempts) 1817await store.SetLockoutEndDateAsync(user, DateTimeOffset.UtcNow.Add(Options.Lockout.DefaultLockoutTimeSpan),
UserValidator.cs (3)
45if (manager.Options.User.RequireUniqueEmail) 61else if (!string.IsNullOrEmpty(manager.Options.User.AllowedUserNameCharacters) && 62userName.Any(c => !manager.Options.User.AllowedUserNameCharacters.Contains(c)))