Azure多租户应用程序 [英] Azure Multi-tenant application

查看:159
本文介绍了Azure多租户应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用Office 365 API构建应用程序,并尝试此处提供的几个示例:

I need to build an app with Office 365 API and tried several examples provided here: https://msdn.microsoft.com/en-us/office/office365/howto/starter-projects-and-code-samples.

我设法通过我自己的Azure Active Directory中的用户登录到应用程序. user.name @ tenant .onmicrosoft.com.

I manage to login to tha app with a user from within my own Azure Active Directory, e.g. user.name@tenant.onmicrosoft.com.

但是,每当我使用另一个域中的另一个Office 365帐户时,例如user@pivabo.be我收到此错误:

But, whenever I use another Office 365 account from another domain e.g. user@pivabo.be I get this error:

AADSTS50020:来自外部身份提供商" https://sts.windows.net/908b6c6d-f582-461d-9e73-88a4e48f5d88/".该帐户需要作为外部用户添加到租户中.请注销并使用Azure Active Directory用户帐户再次登录.

AADSTS50020: User account 'user@pivabo.be' from external identity provider 'https://sts.windows.net/908b6c6d-f582-461d-9e73-88a4e48f5d88/' is not supported for application 'df1a02fd-f096-46df-9b5a-5cf1b0f9ef6d'. The account needs to be added as an external user in the tenant. Please sign out and sign in again with an Azure Active Directory user account.

Azure中定义的应用程序设置为多租户!

The defined application in Azure is set to Multi-tenant!!

我还尝试将外部用户添加到我的AAD中,但是每次收到消息此Microsoft帐户不存在"

I also tried to add the foreign users to my AAD but everytime I get the message "This Microsoft account does not exist"

例外:我还创建了一个Hotmail帐户,可以将其添加到我的AAD中,并且使用该帐户登录该应用程序成功.但是,没有将其添加到我的AAD中,我得到了上面的错误消息.

EXCEPT: I also made a hotmail account which I was able to add to my AAD and with this account logging in to the app was succesfull. But, without adding it to my AAD I get the above error message.

任何帮助都将受到欢迎.

Any help would be welcome.

推荐答案

确保您使用的是" https://login .microsoftonline.com/ 常见/..."而不是" https"://login.microsoftonline.com/[您的租户名称]",形成授权链接.

Make sure you are using "https://login.microsoftonline.com/common/..." and not "https://login.microsoftonline.com/[your tenant name]" when forming authorization link.

这篇关于Azure多租户应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆