Page MenuHomePhabricator

Logging out of idm does not log me out
Open, LowPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
I am immediately logged back in, with no opportunity to log in as anybody else.

What should have happened instead?:
I should be asked for my username and password again.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
N/A (Bitu has tagged versions, but doesn’t appear to show the current version anywhere in the UI, so all I can say is “probably the latest version”)

Other information (browser name/version, screenshots, etc.):
Apparently the correct way to log out / workaround is to log out in idp (logout link)

Event Timeline

Restricted Application added a subscriber: • Aklapper. · View Herald Transcript

For some reason, when I try to replicate this, it prompts me to connect my wikimedia global account again. Not sure why this is happening.

SLyngshede-WMF subscribed.

This is a know issue, and is partially related to a bug in CAS (used on idp.wikimedia.org) where back channel communication regarding sign out doesn't work. This is an issue for all OIDC/CAS authenticated systems.

The bug should be fixed in CAS, but requires an update. We might also need to verify and fix any systems that fails to do the back channel communication correctly.

The bug should be fixed in CAS, but requires an update.

@SLyngshede-WMF Just to clarify: are you saying that the fix needs to happen in https://gerrit.wikimedia.org/g/operations/software/cas-overlay-template , and not in https://gerrit.wikimedia.org/g/operations/software/bitu ? If that’s the case, then this would be a duplicate of T233941, correct?

@Arendpieter Yes, that's the same issue, and you are correct that the fix needs to go into the cas-overlay-template repo as it's an update/bugfix in Apereo CAS, which runs idp.wikimedia.org (not to be confused with idm.wikimedia.org).

Testing on IDM/Bitu is appears that the Python Social Auth library have no functionality which allows back channel logout. However newer versions of the library support "PROMPT", see: https://github.com/python-social-auth/social-core/commit/8f2669c31433722d940cc945b7210d6e0266dd0f

This allows the client, in out case Bitu, to ask that the user is re-authenticated after each sign out. This is what we want.

We need Python-Social-Auth 4.7.0 or newer, which means even upgrading to Trixie or back-porting isn't sufficient. The Forky package is new enough.

Change #1341185 had a related patch set uploaded (by Arendpieter; author: Arendpieter):

[operations/software/bitu@master] Logout: End the OpenID Connect session at the provider

https://gerrit.wikimedia.org/r/1341185

Change #1341188 had a related patch set uploaded (by Arendpieter; author: Arendpieter):

[operations/puppet@production] apereo_cas: Allow CAS to redirect clients after logout

https://gerrit.wikimedia.org/r/1341188

Change #1341185 merged by jenkins-bot:

[operations/software/bitu@master] Logout: End the OpenID Connect session at the provider

https://gerrit.wikimedia.org/r/1341185