简体   繁体   中英

Azure API Management - OAuth server Token endpoint?

im currently setting up an Web API on Azure Cloud Service and want to use Azure API Management with OAuth and Azure Active Directory (AD) as Authorization Server.

My question is: In AD I have created my application and looking in the "View Endpoints" list my endpoint for the token request is (not with original key):

https://login.windows.net/e4b3b3s1-02yt-8fw1-54i3-973aa45rd56b/oauth2/token?api-version=1.0

However, in this tutorial: http://azure.microsoft.com/en-us/documentation/articles/api-management-howto-oauth2/

The format for token request is:

https://login.windows.net/<APPID>/oauth2/token

For an Azure Active Directory OAuth 2.0 server, the Token endpoint
URL will have the following format, where has the format of
yourapp.onmicrosoft.com.

which one should I use?

Thanks in advance.

我建议使用AAD中列出的内容,因为它们具有指定要使用的版本的附加参数。

See this question/answer . Use what the Active Directory Console gives you - it will work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM