Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

GitHub Authentication keeps valid after user is removed from org or team #643

Open
lfventura opened this issue Aug 18, 2018 · 1 comment

Comments

@lfventura
Copy link

Good night,

I am using this tool to authenticate on Github... I did some tests and if I remove the access from a user the user keeps able to login into my application.

If the user keeps navigating in the page their session is kept valid during this time...
If the Cookie gets expired (User idle) then he is unable to login again...
So the issue is: The user permission is not refreshed while the cookie is valid.

Besides that, is there any way that I can delete the user token directly at the oauth2_proxy?

@ploxiln
Copy link
Contributor

ploxiln commented Aug 18, 2018

The cookie is not refreshed until -cookie-refresh and it should re-check auth at that time.

There is no way to invalidate the cookie separately/individually before it is refreshed or expired. You could only change the cookie-secret used to sign the cookies, which would invalidate all cookies/sessions.

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

No branches or pull requests

2 participants