Skip to content

OneDrive authorization error: Invalid request. Request is malformed or invalid. #61

Answered by y-young
love2wind asked this question in Q&A
Discussion options

You must be logged in to vote

检查一下OneDrive相关环境变量的设置,以及新创建的应用是否配置好了相关权限,具体参考Wiki,此外建议把日志的上下文也贴出来

Update:检查refresh token是否正确,使用ms-graph-token-tool时需注意在浏览器授权后还需要回到程序继续获取refresh token,重定向URL里的code其实并不是refresh token,只是用于获取refresh token的一个中间凭据,最终refresh token将显示在页面上

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
11 replies
@y-young
Comment options

@love2wind
Comment options

@y-young
Comment options

@love2wind
Comment options

@y-young
Comment options

Answer selected by y-young
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants