How to get a refresh token and access token in office 365 using PHP

怎甘沉沦 提交于 2019-12-08 07:10:43

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!