I'm getting this error after I sign into my Azure website:
AADSTS50194: Application 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxx' is not configured as a multi-tenant application. Usage of the /common endpoint is not supported for such applications created after '10/15/2018'. Use a tenant-specific endpoint or configure the application to be multi-tenant.
In this how-to guide, you'll undertake the four steps needed to convert a single tenant app into an Azure AD multi-tenant app: Update your application registration to be multi-tenant. Update your code to send requests to the /common endpoint. Update your code to handle multiple issuer values.
The Tenant Specific Endpoint is used when creating a data stream from the created mobile or web application. Your Tenant Specific Endpoint is how the Mobile and Web SDKs send data to Customer Data Platform. Note the location, as it must be provided to the client SDKs during configuration.
If you are an Azure administrator getting this message, it may be for the the exact reason that is listed in the error message - you can not use the common
API endpoint to MSFT logins to tenant-specific applications.
In my case, I was configuring an app registration with sample code - the sample code needed to be modified with a new endpoint. I.e the following line:
let kAuthority = "https://login.microsoftonline.com/common"
needed to be changed to:
let kAuthority = "https://login.microsoftonline.com/MY_TENANT_NAME"
The tenant name for your Azure organization can be obtained by typing "Tenant Status" into the Azure search bar.
Xamarin: The above note worked for MSAL iOS - for Xamarin MSAL Android/iOS, there was no direct way to set the authority in the main call. It needs to be chained to the interactive login call.
E.g., the sample code here:
authResult = await App.PCA.AcquireTokenInteractive(App.Scopes) .WithParentActivityOrWindow(App.ParentWindow) .ExecuteAsync();
Needs to be changed to this:
authResult = await App.PCA.AcquireTokenInteractive(App.Scopes) .WithAuthority("https://login.microsoftonline.com/YOUR_TENANT_NAME") .WithParentActivityOrWindow(App.ParentWindow) .ExecuteAsync();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With