oauth2-proxy got error failed to verify token: oidc: id token issued by a different provider due to lang path

Created on 30 May 2025, 8 days ago

I use oauth2-proxy as a client, after configuring and login on Drupal login page, the oauth2/callbak path on the oauth2-proxy client says 500 error as below:

could not verify id_token: failed to verify token: oidc: id token issued by a different provider, expected "https://drupal.mycompany.com/" got "https://drupal.mycompany.com/en"
Request ID: ecefd315-2ca9-4e56-a12b-79de31aa04f3

Then I configure the oauth2-proxy as below (added language path "en"):

      OAUTH2_PROXY_OIDC_ISSUER_URL: https://drupal.mycompany.com/en
      OAUTH2_PROXY_LOGIN_URL: https://corpusman.shisu.edu.cn/oauth/zh-hans/authorize
      OAUTH2_PROXY_REDEEM_URL: https://corpusman.shisu.edu.cn/oauth/zh-hans/token
      OAUTH2_PROXY_OIDC_JWKS_URL: https://drupal.mycompany.com/en/oauth/jwks
      OAUTH2_PROXY_PROFILE_URL: https://drupal.mycompany.com/en/oauth/userinfo

Still no luck, the error exists the same.

💬 Support request
Status

Active

Version

5.2

Component

OpenID Connect

Created by

🇨🇳China fishfree

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

Comments & Activities

Production build 0.71.5 2024