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

client/webserver: allow multiple authorized sessions #1012

Merged
merged 1 commit into from Mar 30, 2021

Conversation

chappjc
Copy link
Member

@chappjc chappjc commented Mar 10, 2021

This allow multiple authenticated client http sessions by tracking multiple cookies in the WebServer. You can now login in different browsers without one login invalidating the other's auth cookie.

Logout ends all authenticated sessions however. This is done because the logout route also performs (*Core).Logout, crippling other authenticated http sessions. Also, if we just removed the auth token for the one session performing the logout, the backend would really have no way to keep the map clean and it could conceivable keep filling up if requests kept reauthing and not logging out.

@chappjc chappjc added this to the 0.2 milestone Mar 15, 2021
Copy link
Member

@JoeGruffins JoeGruffins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well.

@chappjc chappjc merged commit 030173b into decred:master Mar 30, 2021
@chappjc chappjc deleted the http-multi-login branch March 30, 2021 21:45
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

Successfully merging this pull request may close these issues.

None yet

3 participants