4 ms·
How does this work? Like, in practice I understand how you open the default web browser and log in, and get an oauth token. But how does the default browser h
by FemmeAndroid 6y ago
How does this work? Like, in practice I understand how you open the default web browser and log in, and get an oauth token. But how does the default browser hand it back to thunderbird or whatever application made the request? Is there a standard way for a browser to return a value to an application that called it?
- JoshTriplett 6y agoThis is part of the normal OAuth flow. Normally, there's an API call from the app to the site in addition to the app opening the user's browser.
- asdfasgasdgasdg 6y agoI don't know, but there are lots of apps that do stuff this way. Not to mention every tv app that has you sign in on your desktop. Clearly there are ways.
- syjer 6y agoThe trick is setting the right redirect_uri [0]. Generally it's implemented with a custom URI scheme (that the target application is registered for) or a loopback ip address. [0] https://developers.google.com/identity/protocols/oauth2/native-app#sample-authorization-urls https://developers.google.com/identity/protocols/oauth2/nati...
- magicalhippo 6y agoThanks! Was about to implement OAuth (against Azure AD) at work and we didn't want to embed a browser, so this was really helpful.