-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix logout button #17
Conversation
} | ||
|
||
/** | ||
* Set 'Authorization' header based on the existing cookie. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking at this page the authservice creates a session cookie.
does the logout button with the suggested change delete this cookie?
meaning... once logged out from one user, can we immediately log in with a new user with no issues?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, a session cookie is removed after the user logs out, it is done via Set-Cookie
header: https://github.com/arrikto/oidc-authservice/blob/ae92e8656c5252eddb305f6b9bb72ae1e1e61f6c/session.go#L75
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perfect!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ✅
* Pin alpine repository version * Introduce a new LogoutButton component
* Pin alpine repository version * Introduce a new LogoutButton component
* Pin alpine repository version * Introduce a new LogoutButton component
* Pin alpine repository version * Introduce a new LogoutButton component
This PR fixes logout functionality by introducing a new
LogoutButton
component, responsible for sending logout requests to the backend auth service. A few important points: