“Use a tenant-specific endpoint or configure the application to be multi-tenant” when signing into my Azure website

后端 未结 4 1047
说谎
说谎 2020-12-17 08:40

I\'m getting this error after I sign into my Azure website:

AADSTS50194: Application \'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxx\' is not configured as a

4条回答
  •  猫巷女王i
    2020-12-17 09:25

    Further more to @Coruscate5's post, which has helped me, you can set WithAuthority for iOS as follows.

    var builder = PublicClientApplicationBuilder.Create(OAuthSettings.ApplicationId)**.WithAuthority("https://login.microsoftonline.com/YOUR_TENANT_NAME");**
    

    This is important if you were following the Build Xamarin apps with Microsoft Graph guide and you aren't authenticating to a multi-tenant application.

    This is how you get your tenant name:

    https://docs.microsoft.com/en-us/onedrive/find-your-office-365-tenant-id
    

提交回复
热议问题