Closed (fixed)
Project:
OpenID Connect Client
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Aug 2021 at 10:07 UTC
Updated:
27 May 2022 at 12:40 UTC
Jump to comment: Most recent
Comments
Comment #3
mpp commentedComment #4
matthijsHow does your destination get set to the logout path? That would mean you invoke the logout page with an invalid destination.
Comment #5
mpp commentedJust by directly going to /oidc/logout-redirect (cf. the idp return path) as an anonymous user (Drupal 9) the destination is set to "/oidc/logout-redirect":
- /user/logout 302 => location: /oidc/logout
- /oidc/logout 302 => location: https://IDP/logout?...&post_logout_redirect_uri=DRUPAL/oidc/logout-redirect <=
- idp/logout?..&post_logout_redirect_uri=/oidc/logout-redirect 302 => Location: /oidc/logout-redirect?state=...
- /oidc/logout-redirect?state=... 302 => location: /oidc/login/type?destination=/oidc/logout-redirect
- /oidc/login/type?destination=/oidc/logout-redirect 401
Comment #6
matthijsYou shouldn't access "/oidc/logout-redirect" directly, use /logout instead.
The redirect past is used when returning from the provider. Excluding this one might lead to a discussion to exclude other paths as well
Comment #7
mpp commentedI am using the default /user/logout, which redirects to /oidc/logout which redirects to the provider logout with a return URL to /oidc/logout-redirect which redirects to /oidc/login/type?destination=/oidc/logout-redirect.
The problem is that since the Drupal 9 upgrade for some projects we see that the destination parameter is added, this wasn't the case in Drupal 8.9 but also that it redirects to the login instead of the homepage:
GET /oidc/logout-redirect?state=... 302 location: /oidc/login/type?destination=/oidc/logout-redirect
Comment #9
matthijsComment #10
matthijsThis issue was caused by a broken (destroyed) session due to a change in Drupal 9.2.