How to get Microsoft Graph API Access token from Node Script?

后端 未结 3 673
别那么骄傲
别那么骄傲 2020-12-10 19:49

I\'d like to use this library to interact with the graph API for my AD - https://github.com/microsoftgraph/microsoft-graph-docs/blob/master/concepts/nodejs.md

Howeve

3条回答
  •  没有蜡笔的小新
    2020-12-10 20:39

    I had somewhat of an issue for using the url string for the const endpoint

    https://login.microsoftonline.com/[Tenant]/oauth2/v2.0/token
    

    Instead, I passed tenant in this way instead from Microsoft graph api docs:

    https://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize
    

    Reference from docs -> Request an authorization code

提交回复
热议问题