Repository navigation
Closed
Labels
IAMIssues or pull requests relevant for SIG IAMSprint HobartSprint Hobart (2023, cwk 30+31)Sprint IzmirSprint Izmir (2023, cwk 32+33)
Description
As a federated OIDC user, I want Horizon logout to also logout from the OIDC IdP so that I need to enter a password again instead of automatic re-use the access token from the cookie.
Current Situation: @JuanPTM has created a PoC setup with Federation to a Keycloak "Proxy realm" ("OSISM") and configuring the Keycloak extension https://github.com/sventorben/keycloak-home-idp-discovery to route the user to the customer-specific Keycloak realm based on their email.
Login Flow:
- Open
https://api.testbed.osism.xyz/auth/login/?next=/and select "Authenticate with Keycloak" - Click on "Sign In" in that Horizon Login page gets you redirected to Keycloak "OSISM" realm
- Keycloak displays "OSISM" : "Sign in to your account" : "Username or email"
- Enter your email (e.g.
[email protected]) and click on "Sign In" - Keycloak redirects you to the realm "TEST" (based on domain part of email) and asks you for the password
- After entering the correct password, the redirects cascade you back to Horizon and you are logged in.
Logout: - In Horizon click on "Sign Out"
Re-Login: - Try to re-login int Horizon by "Authenticate with Keycloak"
Expected result: - Needing to re-authenticate
Actual behavior: - You are directly logged in
Plan of work:
- Look into the network flow in the browser developer console to see what happens during logout.
- Find out if this problem arises only with this "Proxy realm" setup or does it also affect the "traditional" Keycloak federation? (In that case: What does OpenStack say about this?)
- Find out how this would need to work in theory (backchannel logout? In both OSISM and TEST realm?)
- Fix it.
Definition of Ready:
- User Story is small enough to be finished within one sprint
- User Story is clear and understood by the whole team
- Acceptance criteria are defined
- Acceptance criteria are clear and understood by the whole team
Definition of Done:
- All acceptance criteria are met
- Changes have been reviewed
- CI tests have run successfully
- Documentation has been updated
- Release Notes have been updated
Metadata
Metadata
Assignees
Labels
IAMIssues or pull requests relevant for SIG IAMSprint HobartSprint Hobart (2023, cwk 30+31)Sprint IzmirSprint Izmir (2023, cwk 32+33)
Type
Projects
- StatusShow more project fieldsDone
Activity
reqa commentedon Jun 14, 2023
We noticed from experiment that
We are also still "logged in" after logout, even when we additionally remove the sessions in Keycloak (as admin). So that looks more like a thing between user browser and keystone?
The cookie
mod_auth_openidc_sessionseems to be the credential that keeps us logged in even after logout. That cookie remains in the browser storage and if we remove that too then transparent re-login is not performed any longer.At first glance it doesn't seem to be related on the "second OIDC hop" from the Keycloak "proxy realm" to the customer-specific realm.
This suggests that maybe mod_auth_openidc either doesn't get informed of the horizon logout or it doesn't properly handle it.
Maybe interesting info:
reqa commentedon Jun 22, 2023
@JuanPTM has made some progress and found a creative alternative logout solution:
JuanPTM commentedon Jun 23, 2023
After today SIG meeting, I use the propose from @jnull to improve the solution 2 into a new one.
Fix Single Logout on ffederated scenarios.
Fix Single Logout on federated scenarios.
Fix Single Logout on federated scenarios.
Fix Single Logout on federated scenarios. (#1689)
garloff commentedon Aug 9, 2023
Will need to go to osism/cfg-generics after successful test on testbed.
JuanPTM commentedon Aug 21, 2023
There is a merge request in the testbed to fix the logout corner cases ( SIG IAM 11-08)
osism/testbed#1717
JuanPTM commentedon Sep 1, 2023
Merged
Fix Single Logout on federated scenarios. (osism#1689)
JuanPTM commentedon Sep 6, 2023
Found a new issue on a fresh testbed deploy. A PR has been created on the testbed to fix it. MR testbed
Issues:
JuanPTM commentedon Sep 11, 2023
PR has been merged
garloff commentedon Oct 25, 2023
Nice, this one is done.