onedrive oauth2 redirect_uri for android app

812 views Asked by At

I am trying to make an android app login to onedrive using the new REST API, Retrofit, and OAUTH2. I have it working: I can contact the auth server and get a response. The question: is there any way in onedrive to set up a custom scheme for the redirect_uri? As far as I can tell the developer console insists that I use "http" or "https", both of which force my users to go through an app picker to handle the auth response from onedrive. If I could enter a custom scheme or even "oauth2" as a scheme then that hassle could be avoided.

FWIW: this is not a problem for dropbox. They let me specify whatever URL I want, including those with custom schemes.

And yes, I know I could do it myself in a webview, but that brings along a number of other problems such as handling stored passwords and cookies.

0

There are 0 answers