Client could not be found in edge case login workflow

Created on 8 July 2021, almost 3 years ago
Updated 26 June 2024, 3 days ago

We were seeing an "error, client cannot be found" issue with federated sites using oauth2_server and openid_connect_sso that had been reported and believed to be fixed in 8.x-1.x-dev at one point or another. In Drupal 9.1.8 and PHP 7.4.3, oauth2_server version 2.0.0-beta3 the error could be reproduced by:

  • Log into a federated site as a non-admin user - success
  • Logout of federated site - success
  • Click Login again on the same federated site and use the same username
  • Error is generated from oauth2_server/src/Controller/OAuth2Controller.php: "error: Client could not be found"

Based on what I saw happening ... I double checked that we still had this patch β†’ included in the new version and that looks correct.

I also saw this related issue β†’ and gave that patch a go, which worked for us. Anyone have thoughts on this solution? That previous issue was closed as a duplicate but it looks like the patch never made it in.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States elisseck San Diego

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

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.69.0 2024