OneDrive OAuth 2.0 和 Postman 健全性检查 [英] OneDrive OAuth 2.0 and Postman Sanity Check

查看:107
本文介绍了OneDrive OAuth 2.0 和 Postman 健全性检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Postman 为 OneDrive 生成一个 OAuth 令牌.我只是想澄清一下 Auth URL、Access Token URL 和范围是什么?

I am trying to generate a OAuth Token for OneDrive by using Postman. I just wanted to ask for clarification as to what the Auth URL, Access Token URL and scope would be?

我已经尝试过:

身份验证 URL: https://login.microsoftonline.com/common/oauth2/v2.0/authorize

访问令牌 URL: https://login.microsoftonline.com/common/oauth2/v2.0/token

范围:wl.signin

但是,我不断收到有关范围不正确的错误.只是为了健全性检查这些是正确的设置吗?

However, I keep getting an error around the scope is not correct. Just for sanity check are these the correct settings?

推荐答案

请参考 https://dev.onedrive.com/auth/msa_oauth.htm 获取可能的身份验证流程、范围等的完整文档.

Please refer to https://dev.onedrive.com/auth/msa_oauth.htm for full documentation of the possible auth flows, scopes etc.

auth URL: https://login.live.com/oauth20_authorize.srf
token URL: https://login.live.com/oauth20_token.srf

有效范围可以是:

offline_access
onedrive.readonly
onedrive.readwrite
onedrive.appfolder

OneDrive API 的一般文档,包括上面的链接,可以在这里找到:https://dev.onedrive.com/README.htm

Documentation of the OneDrive API in general, including the above link, can be found here: https://dev.onedrive.com/README.htm

这篇关于OneDrive OAuth 2.0 和 Postman 健全性检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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