ory / kratos

The most scalable and customizable identity server on the market. Replace your Homegrown, Auth0, Okta, Firebase with better UX and DX. Has all the tablestakes: Passkeys, Social Sign In, Multi-Factor Auth, SMS, SAML, TOTP, and more. Written in Go, cloud native, headless, API-first. Available as a service on Ory Network and for self-hosters.
https://www.ory.sh/?utm_source=github&utm_medium=banner&utm_campaign=kratos
Apache License 2.0
11.24k stars 963 forks source link

Enable session action after verification #3160

Open hugotiburtino opened 1 year ago

hugotiburtino commented 1 year ago

Preflight checklist

Describe your problem

Currently, the session hook is only supported at the registration flow.

session | Signs in the user immediately after they create an account. | For use only with the after registration flow. To use it, you must define secrets for secret rotation.

Source: https://www.ory.sh/docs/kratos/hooks/configure-hooks#available-actions

Now, it's user friendly if, after clicking the verification link or entering the one time code, the user gets automatically logged in.

Describe your ideal solution

Support also the session action in the verification flow.

Workarounds or alternatives

Actually, it would be even better if the verification flow automatically worked that way, without need of configuration: one thing less to configure and be aware of, and users would be happier.

Version

0.11.1

Additional Context

No response

hugotiburtino commented 1 year ago

I know I know "PRs are welcome". Well, give me some hints, maybe a similar PR, and I can give a try...

vinay2897 commented 8 months ago

This feature will be very helpful. Also I think we should consider adding the ability to modify identity during verification flow

exsemt commented 2 months ago

hey, when can we get this, we need this standard workflow!

mick912 commented 16 hours ago

Hello, any info that this will be added?