OAuth 2,0 令牌端点
OAuth 2,0 Token End Points
以下令牌生成端点有什么区别。
https://login.microsoftonline.com/{租户}/oauth2/token
https://login.microsoftonline.com/{租户}/oauth2/v2.0/token
/阿玛
What is the difference between the following token generation end
points.
https://login.microsoftonline.com/{tenant}/oauth2/token
https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token
/oauth2/token
和 /oauth2/v2.0/token
都生成访问令牌。但是,使用它们时有几个不同之处:
/oauth2/token
和/oauth2/v2.0/token
都有不同的参数request。看看 resource 和 scope.
/oauth2/token
参数请求:grant_type、client_id、client_secret、断言、资源、requested_token_use . (https://dzone.com/articles/getting-access-token-for-microsoft-graph-using-oau-1)
/oauth2/v2.0/token
参数请求:grant_type、client_id、client_secret、断言、scope、 requested_token_use . (https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-on-behalf-of-flow)
/oauth2/v2.0/token
是 更新的端点版本 。你可以从v2.0
中注意到。像微软这样的大公司将他们的技术升级到更新版本是很常见的。较新的版本可能有更好的支持、安全性等。通常,他们也会保留旧端点版本以支持使用旧端点实现的技术。还建议尽可能使用最新版本的endpoint
。
我希望这能回答你的问题。
以下令牌生成端点有什么区别。
https://login.microsoftonline.com/{租户}/oauth2/token
https://login.microsoftonline.com/{租户}/oauth2/v2.0/token
/阿玛
What is the difference between the following token generation end points.
https://login.microsoftonline.com/{tenant}/oauth2/token
https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token
/oauth2/token
和 /oauth2/v2.0/token
都生成访问令牌。但是,使用它们时有几个不同之处:
/oauth2/token
和/oauth2/v2.0/token
都有不同的参数request。看看 resource 和 scope./oauth2/token
参数请求:grant_type、client_id、client_secret、断言、资源、requested_token_use . (https://dzone.com/articles/getting-access-token-for-microsoft-graph-using-oau-1)/oauth2/v2.0/token
参数请求:grant_type、client_id、client_secret、断言、scope、 requested_token_use . (https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-on-behalf-of-flow)/oauth2/v2.0/token
是 更新的端点版本 。你可以从v2.0
中注意到。像微软这样的大公司将他们的技术升级到更新版本是很常见的。较新的版本可能有更好的支持、安全性等。通常,他们也会保留旧端点版本以支持使用旧端点实现的技术。还建议尽可能使用最新版本的endpoint
。
我希望这能回答你的问题。