问题
May i know how to get refresh token for my account ,If i have refresh token using that how could access my new access token.
回答1:
Have a look at the Graph API documentation, it show you how to use the OAuth2 authentication to login to your app, and get a refresh token.
https://graph.microsoft.io/docs/authorization/app_authorization
You still have to write your own http request to get the access token, but that should be pretty straight forward.
回答2:
We can get access and refresh token without registering Azure AD portal and without providing credit card details. Please set "offline_access" as part of "scope" which will return access token and refresh token. More detail refer here OAuth2 at Microsoft
来源:https://stackoverflow.com/questions/34202782/how-to-get-a-refresh-token-and-access-token-in-office-365-using-php