There's supposedly some privileged session that ge...
# general
l
There's supposedly some privileged session that gets set? I think that may not be detected?
m
See here for more info about the privileged session: https://www.ory.sh/docs/kratos/session-management/session-lifespan#privileged-sessions redirect loop could have multiple causes.
When a recovery flow is successfully completed, Ory Kratos redirects the user to the settings page.
What is the required AAL for /settings? this might help, not sure 🤔
Copy code
selfservice:
  flows:
    settings:
      required_aal: aal1
l
It was set to
highest_available
. I set it to aal1 and got the same result. It currently looks like
Copy code
settings:
      ui_url: <https://HOSTNAME/dashboard>
      privileged_session_max_age: 15m
      required_aal: aal1
      after:
       .....webhook snipped
It ends up through the login flow which says An active session was found but it does not fulfill the requested Authenticator Assurance Level. Could this be UI-side?
m
Hmm... hmmmge I figured the problem is that you require aal2 for settings, but you only get aal1 when running the recovery, so it tries to redirect back to get aal2 through your second factor resulting in a redirect loop somehow.
l
Would some other flows matter?
Login for example?
Or could this be the UI not detecting something correct? Session stuff maybe?
Checked, login flow just has ui_url and lifespan
I'll slap the UI session detection thing in a gist tomorrow