concrete/src/Api/OAuth/Server/IdTokenResponse.php
protected function getExtraParams(AccessTokenEntityInterface $accessToken)
    {
        $params = parent::getExtraParams($accessToken);

        // If this is an OIDC request, pack a new id token into it
        if ($this->isOidcRequest($accessToken->getScopes())) {
            $user = $this->userInfoRepository->getByID($accessToken->getUserIdentifier());

            if ($user) {
                $params['id_token'] = (string) $this->createIdToken($accessToken, $this->claimFactory->createFromUserInfo($user));
            }
        }

        return $params;
    }
protected function getExtraParams(AccessTokenEntityInterface $accessToken)
    {
        $params = parent::getExtraParams($accessToken);

        // If this is an OIDC request, pack a new id token into it
        if ($this->isOidcRequest($accessToken->getScopes())) {
            $user = $this->userInfoRepository->getByID($accessToken->getUserIdentifier());

            if ($user) {
                $params['id_token'] = (string) $this->createIdToken($accessToken, $this->claimFactory->createFromUserInfo($user));
            }
        }

        return $params;
    }
protected function getExtraParams ( AccessTokenEntityInterface $ accessToken ) { $ params = parent :: getExtraParams ( $ accessToken ) ; // If this is an OIDC request, pack a new id token into it if ( $ this -> isOidcRequest ( $ accessToken -> getScopes ( ) ) ) { $ user = $ this -> userInfoRepository -> getByID ( $ accessToken -> getUserIdentifier ( ) ) ; if ( $ user ) { $ params [ 'id_token' ] = ( string ) $ this -> createIdToken ( $ accessToken , $ this -> claimFactory -> createFromUserInfo ( $ user ) ) ; } } return $ params ; }
Get the extra params to include
If this is an OIDC request we include the ID token

@param \League\OAuth2\Server\Entities\AccessTokenEntityInterface $accessToken

@return array
Get the extra params to include If this is an OIDC request we include the ID token