You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I use an email address as the "label" in creating the QR code, Microsoft Authenticator uses the domain from the email as the Issuer, rather than the provided issuer.
To wit:
EX 1 - Not Email (i.e. sample code):
private readonly TwoFactorAuth tfa = new TwoFactorAuth("MyCompany", qrcodeprovider: new QRCoder.QRCoderQRCodeProvider());
var tfa = new TwoFactorAuth("YourSiteName", qrcodeprovider: new QRCoderQRCodeProvider());
var secret = tfa.CreateSecret();
var qr = tfa.GetQrCodeImageAsDataUri($"YourSiteName:{userEmail}", secret);
Code is tested in microsoft and google authenticators.
If I use an email address as the "label" in creating the QR code, Microsoft Authenticator uses the domain from the email as the Issuer, rather than the provided issuer.
To wit:
EX 1 - Not Email (i.e. sample code):
RESULT:
EX 2 - Email Label:
img src="@Model.GetQrCodeImageAsDataUri("[email protected]", (string)Session["secret"])"
RESULT:
However, the email DOES work properly in Google Authenticator:
Any ideas?
The text was updated successfully, but these errors were encountered: