-
|
Hi I am using openid-client v6.8.1 with Express.js v5.2.1 and Passport.js v0.7.0 (all latest). Everything works great when I authenticate against Keycloak! However, if I configure any of "Identity Providers" in Keycloak (either social login such as Bitbucket or another OIDC provider such as Auth0), I am getting 401 during "last leg" redirect. Here is the annotated application log/flow of 2 scenarios (successful one and failure one) Scenario A) - log in using Keycloak credentials
Scenario B) - log in using Keycloak's identity provider integration via Auth0
From what I am observing, it seem to me that in case of indentity provider flows, the call to application callback URL is missing session cookie (somehow) and this is why Strategyis not getting code_verifier in stateData causing it fail. So far I tried several integrations (Bittbucket, Auth0, Microsoft) - they are triggering this issue. What am I missing here? Z.... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Clearly the way your sessions are set up prevents from cookies to be sent with the final redirect from an idp. You're setting them to strict or have them somehow else misconfigured. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you @panva ! That was it! |
Beta Was this translation helpful? Give feedback.
Clearly the way your sessions are set up prevents from cookies to be sent with the final redirect from an idp. You're setting them to strict or have them somehow else misconfigured.