Open softvision-sergiulogigan opened 5 years ago
@softvision-sergiulogigan I think this is our current behavior in form v1 as well. What would you expect to happen in this situation?
What would you expect to happen in this situation?
@miketaylr if a log out is performed from any page, it should remain that way, and not perform an auto-login without any confirmation from the user.
OK, sounds reasonable to me. But we will need to re-think how to achieve this. Currently "logging in with GitHub" is really about obtaining OAuth permission from GitHub to do things on your behalf. Once you do that, you never really do it again (unless you revoke access, or the developer revokes access for everything) -- it's sort of a permanent permission state.
"Logged out" on webcompat.com doesn't really mean "permission is revoked", it just means "not logged in". If that makes any sense...
It could indeed create an issue on a shared computer model/environment (classroom). Someone files an issue, someone logs out. Then the next person comes.
@miketaylr when the person is logged out. What about removing the user from session.db.
with session_db.remove(user)
and session_db.commit()
OR DELETE /authorizations/:authorization_id
https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization
hmm delete authorization might not be a good idea either. Because if the person is logged in another context, we just removed it with this.
So far, we don't have evidence of a non-ninja bug hunter complaining about this behavior (which doesn't mean nobody has complained about it...). So, a valid bug, but probably low priority.
Environment: Browser / Version: Firefox Nightly 72.0a1 (2019-10-24) Operating System: Windows 10 Pro
Prerequisites:
Steps to Reproduce:
Expected Behavior: The GitHub login page is opened.
Actual Behavior: The issue is logged using the GH username. A login is performed.
Notes:
Watchers: @softvision-sergiulogigan @softvision-oana-arbuzov @cipriansv