Ory Kratos: Headless Identity and User Management
Ory Kratos handles identity for applications you are building, and deliberately gives you no login page.
Headless is the defining choice
Kratos exposes APIs for registration, login, logout, account verification, password recovery, profile updates and multi-factor. It renders nothing. You build the UI and call the flows.
That is the opposite of Authelia or Keycloak, which provide login pages and expect to own that part of the experience. Which approach is right depends entirely on whether you want control of the interface or want the problem to go away.
For a product where sign-up is part of the brand, headless is the right answer. For putting authentication in front of an internal tool, it is far too much work and a forward-auth proxy is the correct choice.
Identity schemas
Users are defined by a JSON Schema you supply rather than a fixed model, so the traits stored on an identity are yours to decide. That flexibility is real and it means more upfront design than a system with a fixed user table.
The Ory stack
Kratos is identity. The surrounding projects split other concerns: Hydra for OAuth 2 and OpenID Connect provider duties, Keto for permissions, Oathkeeper for an identity-aware proxy.
Composing them gives a complete system and is a genuine amount of integration work. Running Kratos alone for user management, with your application handling authorisation, is the common and more manageable starting point.
Operational notes
It is a Go service backed by PostgreSQL, CockroachDB or MySQL, so it fits the deployment patterns in our Docker Compose guide and our PostgreSQL guide covers the database side.
Self-hosting is fully supported, and the project is developed alongside a commercial cloud offering, which is worth knowing when reading the documentation: some guidance assumes the hosted product.
Operational caution
Account recovery is where identity systems leak. Configure the recovery and verification flows deliberately, use a real mail path rather than the development logger, and test what happens when someone recovers an account with multi-factor enabled.
License
Ory Kratos is released under the Apache License 2.0.