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

Use mechanize library to login to balanced and piggyback session #10

Open
patcon opened this issue Apr 19, 2014 · 1 comment
Open

Use mechanize library to login to balanced and piggyback session #10

patcon opened this issue Apr 19, 2014 · 1 comment

Comments

@patcon
Copy link
Contributor

patcon commented Apr 19, 2014

https://i.imgur.com/ekJg7XW.png

Balanced auth api (for user management) doesn't use api keys like the regular endpoint, but instead uses session id's from a cookie. I believe these expire every time a new login happens for the user who generated it. We need a way to renew the session.

We could create a new Balanced user with minimal access, just read access to users. Provided no one uses this user to login via the web, we could just use their session id, and that would be a quick fix. To actually solve the issue, we should use something like mechanize to programmatically login with this user when needed and piggyback on that session. we'd then be storing the username and password for that dummy user as envvars.

cc: @clone1018

@patcon patcon changed the title Fix or remove balanced, as it currently breaks dashboard Use mechanize library to login to balanced and piggyback session Apr 19, 2014
@patcon
Copy link
Contributor Author

patcon commented Apr 19, 2014

For now, I'll just make balanced manual :)

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

No branches or pull requests

1 participant