如何使用PHP在Office 365中获取刷新令牌和访问令牌 [英] How to get a refresh token and access token in office 365 using PHP

查看:86
本文介绍了如何使用PHP在Office 365中获取刷新令牌和访问令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以知道如何为我的帐户获取刷新令牌,如果我有使用该令牌的刷新令牌,该如何访问我的新访问令牌.

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.

推荐答案

看看Graph API文档,它向您展示如何使用OAuth2身份验证登录到您的应用程序并获取刷新令牌.

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

您仍然必须编写自己的http请求以获取访问令牌,但这应该很简单.

You still have to write your own http request to get the access token, but that should be pretty straight forward.

这篇关于如何使用PHP在Office 365中获取刷新令牌和访问令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆