'What is the redirect URI for Microsoft OneDrive?
I want to use OAuth2 in Microsoft OneDrive. The application is Windows and Android, but I don't know what should I insert in redirect uri. I will be grateful if anyone helps me.
Solution 1:[1]
This is specified in Microsoft's documentation for the OneDrive REST API: "OneDrive authentication and sign-in"
Use this redirect URL for mobile and desktop applications
https://login.live.com/oauth20_desktop.srf.
https://docs.microsoft.com/en-us/onedrive/developer/rest-api/getting-started/msa-oauth
Solution 2:[2]
As of Jan 24 2022
Register your app The first step is to register an app with Microsoft and provide some details about your app. You can register your application and receive a new app ID from the Azure App registrations page: https://aka.ms/AppRegistrations
Then click on Authentication on the left menu
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | mkabatek |
