MsalError.AuthorityHostMismatch Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The cloud (authority URL host) defined at the application level cannot be different than the cloud at the request level.
What happens?
You did not define an authority at the application level, so it defaults to the public cloud (login.microsoft.com), but the authority at the request level is for a different cloud. Only the tenant can be changed at the request level.Mitigation
Add .WithAuthority("https://login.windows-ppe.net/common) at the application level and specify the tenant at the request level: .WithAuthority("https://login.windows-ppe.net/1234-567-890-12345678).public const string AuthorityHostMismatch;
val mutable AuthorityHostMismatch : string
Public Const AuthorityHostMismatch As String