Drupal 9 compatible and claims error

Created on 15 March 2022, over 2 years ago
Updated 6 February 2023, over 1 year ago

Problem/Motivation

We are considering to use this module so need to port it into Drupal 9
core_version_requirement: ^8 || ^9

Error when claims:

The website encountered an unexpected error. Please try again later.

OutOfBoundsException: Requested claim is not configured in Lcobucci\JWT\Token->getClaim() (line 175 of /var/www/html/vendor/lcobucci/jwt/src/Token.php).
Drupal\oauth2_jwt_sso\Authentication\Provider\OAuth2JwtSSOProvider->tokenAuthUser(Object) (Line: 77)
Drupal\oauth2_jwt_sso\Controller\OAuth2JwtSSOController->authcodeLogin(Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 564)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
πŸ“Œ Task
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡»πŸ‡³Vietnam phthlaap

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.

  • πŸ‡ΊπŸ‡¦Ukraine ipinchuk

    Hi everyone,

    I get composer errors when I try to install this module. Seems like it related to this issue:

     Problem 1
        - drupal/oauth2_jwt_sso dev-1.x requires drupal/core ^8.3.7 -> found drupal/core[8.3.7, ..., 8.9.20] but the package is fixed to 9.5.3 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
        - drupal/oauth2_jwt_sso 1.x-dev is an alias of drupal/oauth2_jwt_sso dev-1.x and thus requires it to be installed too.
        - Root composer.json requires drupal/oauth2_jwt_sso 1.x-dev@dev -> satisfiable by drupal/oauth2_jwt_sso[1.x-dev (alias of dev-1.x)].

    Thanks!

Production build 0.69.0 2024