0
我试图按照this guide,这样我可以给我的OneDrive帐户进行身份验证,但我得到了以下错误:微软的oauth2 2.0 REDIRECT_URI无效
The provided value for the input parameter 'redirect_uri' is not valid. The expected value is ' https://login.live.com/oauth20_desktop.srf ' or a URL which matches the redirect URI registered for this client application.
步骤我把:
- 注册了新的应用程序
- 给它取名为
- 选择了网络平台
- 指定https://localhost为重定向URI
- 按下保存创造了这个网址
- :https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=d0adff4f-bcae-4a69-80a7-8a3328a6cf89&scope=openid+profile&response_type=id_token&redirect_uri=https://localhost&nonce=49458204719374587149482
- 粘贴网址到浏览器中并压入
- 似乎与我的应用程序名称的登录页面,我选择我的帐户登录。我然后重定向,并显示“redirect_uri”是无效的消息
任何想法,为什么我没有得到令牌回应?
当您在Azure AD中创建应用程序时,您指定了什么作为redirect_uri?它是'https:// localhost'吗? – curtisp
是的。我已经尝试了redirect_uri的几个不同的变体。 https:// localhost,http:// localhost,甚至部署到活的天蓝色网址 –