network icon indicating copy to clipboard operation
network copied to clipboard

Configure session after Registration via code in Console

Open Benehiko opened this issue 2 years ago • 3 comments

Preflight checklist

Ory Network Project

No response

Describe your problem

Enabling login/registration with the one-time code method won't enable the session hook after registration inside the console. It is also not clear what "sign in after registration" configures inside the console and if this only relates to the password method or other methods as well.

Describe your ideal solution

Configure the session hook after the registration via code method inside the console.

It is still possible to configure this value using the Ory CLI.

ory patch project <project-id> --replace '/services/identity/config/selfservice/flows/registration/after/code/hooks=[{"hook": "session"}]'

Add to docs

https://www.ory.sh/docs/identities/sign-in/actions#log-in-users-after-registration https://www.ory.sh/docs/kratos/passwordless/one-time-code

Workarounds or alternatives

None

Version

latest

Additional Context

No response

Benehiko avatar Sep 25 '23 15:09 Benehiko

Is this still the case?

aeneasr avatar Oct 05 '23 12:10 aeneasr

Yes, this is just a console change that needs to happen

Benehiko avatar Oct 05 '23 13:10 Benehiko

Still the case, it works using CLI.

Thanks for your work, Ory is very easy to use otherwise

QuentinLCS avatar Feb 13 '24 17:02 QuentinLCS