簡體   English   中英

Azure Native Application通用身份驗證

[英]Azure Native Application Common Authentication

我試圖通過使用具有本機應用程序的公共端點為用戶獲取訪問令牌。 我已經嘗試將login.windows.net/common/OAuth2/Authorize和login.windows.net/common作為AuthenticationContext的權限。

這是我正在使用的功能:

authResult = authContext.AcquireToken(resource, clientID, redirectUri, PromptBehavior.Auto);

以下是我的應用程序的權限:

Windows Azure Active Directory:以登錄用戶身份訪問該目錄

Windows Azure服務管理API:作為組織訪問Azure服務管理

當我嘗試驗證我能夠登錄時,但我得到錯誤:

AADSTS65001:用戶或管理員未同意使用ID為“{client ID}”的應用程序。 發送此用戶和資源的交互式授權請求。

我可以使用以下方式登錄:

https://login.windows.net/ {tenantID} / OAuth2 /授權

但我希望用戶能夠登錄而不知道他們的租戶ID是什么。 感謝您的幫助。

事實證明,您無法將公共端點與我正在使用的Microsoft帳戶一起使用。 您只能使用Azure Active Directory帳戶。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM