I'm trying to follow this guide so that I can authenticate to my OneDrive account, but I get the following error:
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.
Steps I took:
- Registered a New app
- gave it a name
- chose the web platform
- specified https://localhost as the redirect URI
- pressed save
- created this url: 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
- pasted url into browser and pressed enter
- a login page appears with my app name and I select my account to login with. I'm then redirect and shown the "redirect_uri" is not valid message
Any idea why I'm not getting a token response back?
https://localhost
? – curtisp