Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google OAuth2 Login #60

Open
banksJeremy opened this issue May 10, 2014 · 1 comment
Open

Google OAuth2 Login #60

banksJeremy opened this issue May 10, 2014 · 1 comment

Comments

@banksJeremy
Copy link
Collaborator

Not a priority at all, but since it was mentioned, I thought I'd create a ticket to discuss it.

I don't think there's any official way to login to programmatically log in to Google using a username and password, and it might not be the easiest login flow to work through with something like BeautifulSoup. Instead, we might consider just using a real browser login, requiring user interaction. It won't be suitable for all cases, but it will be suitable for many. (Particularly if the login token could be persisted easily; maybe as part of a general Browser serialization mechanism.)

Hopefully we could just create a temporary local web server to run the OAuth authentication and capture the token.

@Manishearth
Copy link
Owner

We can simply use the requests library and send a POST request to Google, then to StackExchange. No server needed, the redirect handle it. Just that it is prone to failure whenever Google changes things or if it gives one of those "bad location" errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants