共用方式為


MsalError.AuthorityHostMismatch Field

Definition

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 

Field Value

Applies to