我正在尝试使用access_token
POST
https://login.microsoftonline.com/ {租户} /oauth2/v2.0/令牌
使用用户名和密码的端点,其中tenant = {some tenant 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://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth-ropc