More informational message for different UPN and address for Outlook authenticator.

This commit is contained in:
Burak Kaan Köse
2025-04-26 12:25:34 +02:00
parent d77c648d54
commit 7b6ac46b6a

View File

@@ -107,7 +107,7 @@ public class OutlookAuthenticator : BaseAuthenticator, IOutlookAuthenticator
if (account?.Address != null && !account.Address.Equals(authResult.Account.Username, StringComparison.OrdinalIgnoreCase))
{
throw new AuthenticationException("Authenticated address does not match with your account address.");
throw new AuthenticationException("Authenticated address does not match with your account address. If you are signing with a Office365, it is not officially supported yet.");
}
return new TokenInformationEx(authResult.AccessToken, authResult.Account.Username);