我正在尝试使用access_token
获取
POST
https://login.microsoftonline.com/ {租户}/oauth2/v2.0/ token
使用用户名和密码的端点,其中tenant = {sometenant id}
我用来发出请求的参数是:
client_id:{client_id}
scope:https://graph.microsoft.com/Calendars.ReadWrite
client_secret:{client_secret}
username:{username}
password:{password}
grant_type:password
我收到以下响应错误:
error: invalid_request
error_description : AADSTS90002: Tenant '' not found. This may happen if there are no active subscriptions for the tenant. Check with your subscription administrator.
此处提供了相关文档:https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth-ropc
最佳答案
关于azure-active-directory - 无法使用用户名和密码获取 Microsoft Graph API OAuth 2.0 的 access_token,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54868429/