Logout Redirect does not log user out...

Created on 15 September 2021, over 3 years ago
Updated 22 August 2023, over 1 year ago

Problem/Motivation

I recently configured your module against AWS Cognito, it works well thank you. However when the user clicks logout on my site (Clean Drupal (9.2.6) they get an Access Denied message. All I get is a vague log message about the AccessAwareRouter.php file.

Type	access denied
Date	Wednesday, September 15, 2021 - 22:26
User	info@boominter…
Location	https://drupal-dev.boominteractive.io/oidc/logout-redirect
Referrer	https://drupal-dev.boominteractive.io/user/6
Message	Path: /oidc/logout-redirect. Drupal\Core\Http\Exception\CacheableAccessDeniedHttpException: in Drupal\Core\Routing\AccessAwareRouter->checkAccess() (line 117 of /opt/bitnami/drupal/core/lib/Drupal/Core/Routing/AccessAwareRouter.php).
Severity	Warning
Hostname	172.26.41.205
Operations

Steps to reproduce

Login using realm (AWS Cognito) click logout.

Proposed resolution

The user is logged out.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: works as designed

Version

1.1

Component

Code

Created by

🇺🇸United States ttbakiatwoam

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇳🇱Netherlands Geert26

    I encounter this same issue with Oidc 2.2.0 under Drupal 10.
    When I try to logout, that doesn´t work. I had to remove all cookies from the website in my browser to logout.

    The logs have a warning
    type: Access Denied
    location: https://mysite.org/oidc/logout-redirect?check_logged_in=1
    message: Path: /oidc/logout-redirect?check_logged_in=1. Drupal\Core\Http\Exception\CacheableAccessDeniedHttpException: in Drupal\Core\Routing\AccessAwareRouter->checkAccess() (line 112 of /somewhere/drupal/core/lib/Drupal/Core/Routing/AccessAwareRouter.php).

  • 🇦🇺Australia VladimirAus Brisbane, Australia

    @Geert26 can you post the entire stack trace?
    Do you have any other redirect modules or rules?

  • 🇳🇱Netherlands Geert26

    Sorry, but I don´t know how to produce and where to find a stack trace. Although I am a developer, I am not a drupal developer. I tried adding the Devel module, but did not see what extra information that gave me.
    I think the only other interesting modules that I use are 'Content Moderation' and 'External Authentication'.

Production build 0.71.5 2024