Hi! Can I use Kratos so that only SSO login is all...
# talk-kratos
t
Hi! Can I use Kratos so that only SSO login is allowed. I.e. user registration would be completely disabled? I’m looking for a solution which would implement user sessions with cookies and only allow OAuth2 authorization code flow based logins.
b
Maybe implement a hook that reject requests on
on password registration
? https://www.ory.sh/docs/kratos/hooks/configure-hooks#trigger-precedence Don't have too much experience implementing hooks so YMMV
t
Right, thanks for the idea 👍 . I think I’m looking for behaviour close to what the https://github.com/oauth2-proxy/oauth2-proxy project provides, i.e. the user could directly log in with the IDP without any separate signup/registration step.