Fix Drupal Oauth2-Server OpenID Connect - missing $kid
Budget: $30 – $250 USD
Need help resolving this issue:
https://www.drupal.org/project/oauth2_server/issues/2288237#comment-14687988
I am trying to log into Drupal using OIDC from a 3rd party system, when authenticating, it cannot verify my key.
So I need someone to fix it based on this suggestion:
https://stackoverflow.com/questions/55427950/oauth-openid-connect-how-do-i-select-a-key-from-a-jwk-if-the-token-doesnt-have
"The JWT token will contain 'alg' header and similar the JWKS has 'use' and 'alg' parameters. Instead of looping all the keys in the JWKS, you can compare JWT 'alg' header and JWKS alg to find out which key to use. In case if you have more than one key which matches both 'use' and 'alg' parameters in JWKS, loop only these matching keys to verify the token."
https://www.drupal.org/project/oauth2_server/issues/2288237#comment-14687988
I am trying to log into Drupal using OIDC from a 3rd party system, when authenticating, it cannot verify my key.
So I need someone to fix it based on this suggestion:
https://stackoverflow.com/questions/55427950/oauth-openid-connect-how-do-i-select-a-key-from-a-jwk-if-the-token-doesnt-have
"The JWT token will contain 'alg' header and similar the JWKS has 'use' and 'alg' parameters. Instead of looping all the keys in the JWKS, you can compare JWT 'alg' header and JWKS alg to find out which key to use. In case if you have more than one key which matches both 'use' and 'alg' parameters in JWKS, loop only these matching keys to verify the token."