ory / network

Ory runs a global end-to-end security infrastructure for humans, robots, and servers. We build and use open source software.
Apache License 2.0
80 stars 6 forks source link

Ory Network login results in infinite login loop #334

Closed pudo closed 1 year ago

pudo commented 1 year ago

Preflight checklist

Ory Network Project

https://friendly-wright-dwvyo7y5ff.projects.oryapis.com/

Describe the bug

When I log in to my app via OAuth using Ory, I end up in an endless verification loop, i.e. the dialog

"Confirm it's you To authenticate XXX Please confirm this action by verifying that it is you."

Just keeps being shown.

Flushing cookies did not help.

Reproducing the bug

Steps to reproduce:

Relevant log output

No response

Relevant configuration

No response

Version

hosted

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

Ory Network

Additional Context

No response

aeneasr commented 1 year ago

Hi there, sorry to hear that you have troubles. Thank you for the reproducible case. As far as I can tell, the issue appears that the /account route in your app is always initiating login, even if a valid session is available.

Screenshot 2023-09-01 at 13 05 13 Screenshot 2023-09-01 at 13 06 15

You can see that the required session cookies are available:

Screenshot 2023-09-01 at 13 08 10

It's probably some misconfiguration or bug in the code handling the authentication session.

pudo commented 1 year ago

Heya! Absolutely my bad, there was a cookie mixup. Have a nice weekend!