This issue has been created
There is 1 update.
 
 
OpenId Connect / cid:jira-generated-image-avatar-6aef52fc-fcb9-4577-804d-f6c178b3c3c6 OIDC-340 Open

Add support for sending the RP-initiated logout request from the server instead of the browser

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-fb1e160c-b66f-4fe6-ae40-ed14befd4cc4 Thomas Mortagne created this issue on 18/Nov/26 15:47
 
Summary: Add support for sending the RP-initiated logout request from the server instead of the browser
Issue Type: cid:jira-generated-image-avatar-6aef52fc-fcb9-4577-804d-f6c178b3c3c6 New Feature
Affects Versions: 2.30.2
Assignee: Unassigned
Components: Authenticator
Created: 18/Nov/26 15:47
Priority: cid:jira-generated-image-static-major-c8dd8293-1d2c-4f54-a422-6336025ea239 Major
Reporter: Thomas Mortagne
Description:

Add a third value, SERVER, to the logout endpoint method (oidc.endpoint.logout.method in xwiki.properties, "Logout endpoint method" in the configuration object), next to the existing GET and POST. With it, the RP-initiated logout request is sent by XWiki itself to the provider end_session_endpoint, as a POST request containing id_token_hint and client_id, and XWiki then redirects the browser to the after-logout URL itself.

This is not standard OpenID Connect. The RP-Initiated Logout specification expects the browser to send the logout request: the provider usually identifies the session to end through the cookies the browser sends, and ends the flow by redirecting the browser to post_logout_redirect_uri. A request sent by XWiki has neither, so it only works with providers which end the session indicated by the ID token passed as id_token_hint, and the default stays the standard GET redirect. This option exists because some setups explicitly ask for this behavior.

Things to know when using it:

  • The request is not sent when no ID token is available, or when it is excluded from the logout request (oidc.skipLogoutIdToken), since the provider would have no way to know which session to end.
  • A provider which ignores the request will most probably still answer with a success, so XWiki cannot detect that the user is still logged in on the provider side.
  • An error answer or a provider which cannot be reached only produces a warning in the log: the user is still logged out from XWiki.
 
 

1 update

 
cid:jira-generated-image-avatar-fb1e160c-b66f-4fe6-ae40-ed14befd4cc4 Changes by Thomas Mortagne on 18/Nov/26 15:47
 
Assignee: Thomas Mortagne