MsalException:应用程序未配置为多租户应用程序。 Android
MsalException: Applicationis not configured as a multi-tenant application. Android
我的 Android 应用正在使用 MSAL 和本指南 azure
当我尝试注册时出现此错误
MsalException: Applicationis 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.
现在我不想将应用程序配置为多租户。这样我就剩下了
的第二个选项
Use a tenant-specific endpoint
据我所见,我需要将其添加到 msal.config 文件中,该文件现在如下所示:
{
"client_id" : "my cli id",
"redirect_uri" : "my red uri",
"broker_redirect_uri_registered": true,
"account_mode": "MULTIPLE",
"authorities" : [
{
"type": "AAD",
"audience": {
"type": "AzureADandPersonalMicrosoftAccount"
}
}
]
}
现在这没有效果,我也知道我需要将带有 tennant id 的端点的 url 放在某处,它默认使用 /common,
任何人有任何关于如何做到这一点的想法或例子吗?
谢谢大家
在“受众”中,将“类型”更改为“AzureADMyOrg”并在其后添加“tenant_id”,如下所示。
{
"client_id" : "my cli id",
"redirect_uri" : "my red uri",
"broker_redirect_uri_registered": true,
"account_mode": "MULTIPLE",
"authorities" : [
{
"type": "AAD",
"audience": {
"type": "AzureADMyOrg",
"tenant_id": "org_tenant_id"
}
}
]
}
我的 Android 应用正在使用 MSAL 和本指南 azure
当我尝试注册时出现此错误
MsalException: Applicationis 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.
现在我不想将应用程序配置为多租户。这样我就剩下了
的第二个选项Use a tenant-specific endpoint
据我所见,我需要将其添加到 msal.config 文件中,该文件现在如下所示:
{
"client_id" : "my cli id",
"redirect_uri" : "my red uri",
"broker_redirect_uri_registered": true,
"account_mode": "MULTIPLE",
"authorities" : [
{
"type": "AAD",
"audience": {
"type": "AzureADandPersonalMicrosoftAccount"
}
}
]
}
现在这没有效果,我也知道我需要将带有 tennant id 的端点的 url 放在某处,它默认使用 /common,
任何人有任何关于如何做到这一点的想法或例子吗?
谢谢大家
在“受众”中,将“类型”更改为“AzureADMyOrg”并在其后添加“tenant_id”,如下所示。
{
"client_id" : "my cli id",
"redirect_uri" : "my red uri",
"broker_redirect_uri_registered": true,
"account_mode": "MULTIPLE",
"authorities" : [
{
"type": "AAD",
"audience": {
"type": "AzureADMyOrg",
"tenant_id": "org_tenant_id"
}
}
]
}