Skip to content

[FIX] OIDC: Comply with RP-Initiated Logout 1.0 on OpenID Connect glo…#11762

Draft
mjansenDatabay wants to merge 1 commit into
ILIAS-eLearning:release_10from
mjansenDatabay:hotfix/10/48001
Draft

[FIX] OIDC: Comply with RP-Initiated Logout 1.0 on OpenID Connect glo…#11762
mjansenDatabay wants to merge 1 commit into
ILIAS-eLearning:release_10from
mjansenDatabay:hotfix/10/48001

Conversation

@mjansenDatabay

Copy link
Copy Markdown
Contributor

…bal logout

This commit fixes global OpenID Connect logout so
it complies with OpenID Connect RP-Initiated Logout 1.0 Previously, ILIAS sent a dynamic post_logout_redirect_uri built via ilStartUpGUI::logoutUrl(), including CSRF rtoken and user-specific lang parameters.
According to the specification, this URI must exactly match a value previously registered with the OpenID Provider. Strict OPs therefore rejected the logout request.

The fix sends a static, registerable redirect URI (/openidconnect.php, same endpoint as login) and moves dynamic logout context into the ILIAS session. The optional state parameter is used as defined by the spec to correlate the OP callback with the pending logout.

See: https://mantis.ilias.de/view.php?id=48027

@mjansenDatabay mjansenDatabay added bugfix php Pull requests that update Php code labels Jul 16, 2026
…bal logout

This commit fixes global OpenID Connect logout so
it complies with [OpenID Connect RP-Initiated Logout 1.0](https://openid.net/specs/openid-connect-rpinitiated-1_0.html#RPLogout)
Previously, ILIAS sent a dynamic `post_logout_redirect_uri` built
via `ilStartUpGUI::logoutUrl()`, including CSRF `rtoken` and
user-specific `lang` parameters.
According to the specification, this URI **must exactly match**
a value previously registered with the OpenID Provider. Strict
OPs therefore rejected the logout request.

The fix sends a **static, registerable** redirect URI
(`/openidconnect.php`, same endpoint as login) and moves dynamic
logout context into the ILIAS session. The optional `state` parameter
is used as defined by the spec to correlate the OP callback with
the pending logout.

See: https://mantis.ilias.de/view.php?id=48027
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants