diff --git a/src/Core/TokenOptions.cs b/src/Core/TokenOptions.cs index 8c969769..45f0291e 100644 --- a/src/Core/TokenOptions.cs +++ b/src/Core/TokenOptions.cs @@ -75,5 +75,10 @@ namespace Microsoft.AspNetCore.Identity /// The used to validate two factor sign ins with an authenticator. /// public string AuthenticatorTokenProvider { get; set; } = DefaultAuthenticatorProvider; + + /// + /// Gets or sets the issuer used for the authenticator issuer. + /// + public string AuthenticatorIssuer { get; set; } = "Microsoft.AspNetCore.Identity.UI"; } } \ No newline at end of file diff --git a/src/UI/Areas/Identity/Pages/Account/Manage/EnableAuthenticator.cshtml.cs b/src/UI/Areas/Identity/Pages/Account/Manage/EnableAuthenticator.cshtml.cs index 5e5bb894..c0c29752 100644 --- a/src/UI/Areas/Identity/Pages/Account/Manage/EnableAuthenticator.cshtml.cs +++ b/src/UI/Areas/Identity/Pages/Account/Manage/EnableAuthenticator.cshtml.cs @@ -156,7 +156,7 @@ namespace Microsoft.AspNetCore.Identity.UI.Pages.Account.Manage.Internal { return string.Format( AuthenticatorUriFormat, - _urlEncoder.Encode("Microsoft.AspNetCore.Identity.UI"), + _urlEncoder.Encode(_userManager.Options.Tokens.AuthenticatorIssuer), _urlEncoder.Encode(email), unformattedKey); }