python-tent-client icon indicating copy to clipboard operation
python-tent-client copied to clipboard

More elegant oauth from the command line

Open longears opened this issue 13 years ago • 0 comments

Assume the user is running python-tent-client from home, behind a firewall.

Right now we launch a browser window so the user can approve the app, but because we're not running a webserver we can't catch the callback that's supposed to happen to redirect_uri.

My temporary solution is to send the user to zzzzzzzexample.com and have them copy and paste the token they need out of the request parameters in browser's URL bar. (Turns out http://example.com will redirect you and wipe out the parameters.)

Twitter has a different outh process for command line apps that displays a page with a short numerical code which you can cut and paste back into your command line app. Is https://tent.is/ going to have anything like that?

Or, maybe tent.is will have a page for developers where you can generate your oauth keys right on the spot instead of going through the programmatic app registration process.

longears avatar Sep 29 '12 08:09 longears