You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix OIDC client authentication for POST method after f7e8726
Remove the `proxy_pass_request_body off` directive, which unintentionally broke
OIDC client authentication using the POST body method (`client_secret_post`).
Previously, when `$oidc_client_auth_method` was set to "client_secret_post"
the `generateTokenRequestParams()` function correctly formatted the POST
request and sent it via `r.subrequest` to the internal `/_token` location.
However, the `proxy_pass_request_body off` directive caused the POST request
to reach `$oidc_token_endpoint` with a valid Content-Length header but an
empty body. This led to a timeout as the OP token endpoint closed the connection.
Users encountered the error: "NGINX / OpenID Connect login failure."
This commit restores functionality by ensuring the request body is passed
to the token endpoint while retaining header exclusion to prevent CORS issues.
0 commit comments