hydra icon indicating copy to clipboard operation
hydra copied to clipboard

Not able to perform simultaneous auth flows with the same client

Open jcasey214 opened this issue 1 year ago • 1 comments

Preflight checklist

Ory Network Project

No response

Describe the bug

Hydra does not support simultaneous auth flows for the same client in the same browser.

Reproducing the bug

  • Initiate the hydra OIDC flow for the same client in two or more tabs of the same browser
  • Attempt to complete login in any except the last tab that initiated the flow
  • Error: request_forbidden reason:The CSRF value from the token does not match the CSRF value from the data store.

Relevant log output

No response

Relevant configuration

No response

Version

v2.2.0

On which operating system are you observing this issue?

None

In which environment are you deploying?

None

Additional Context

I have an app that provides access to multiple services with the same OIDC identity and I would like to utilize hydra as my OIDC provider to login to that application. Our users may have multiple tabs open attempting to access different service providers through our application. Ideally, all logins could succeed.

Based on some of the comments on the pr that enabled simultaneous logins for different clients, it seems like your team was open to a CSRF cookie change that would enable simultaneous logins for the same client in the same browser. We could attempt to work on this if you are still open to it.

jcasey214 avatar Apr 11 '24 18:04 jcasey214

Due to security concerns we can currently not allow this flow. We could however implement a more graceful way of dealing with this by restarting the flow if such an error occurs.

aeneasr avatar Feb 13 '25 16:02 aeneasr