bworkx.

Identity & access

Ory for headless identity

Identity APIs that let your product own the login experience.

Prefer to talk? Book a 30-minute call.

Who it is for

  • Product teams that want to own the login and consent experience instead of using a hosted UI.
  • API-first and cloud-native teams comfortable running multiple identity services.
  • Companies building customer or partner identity on OIDC and OAuth2.
  • Engineering teams that need identity primitives rather than a turnkey admin console.

When it is not the right fit

  • Teams that want a ready-made admin UI and a short deployment path.
  • Estates that require a native SAML identity provider as the primary protocol.
  • A simple workforce SSO project with no engineering owner for identity.

Scope

What is included

The scope is written down before work starts. Anything outside it is a change, with a cost and a date.

An architecture covering Kratos, Hydra, Keto, and Oathkeeper, or the subset the product needs.

Custom login, registration, recovery, and consent UI integration.

OAuth2 and OIDC client configuration for the product and partner applications.

Session, token, and consent behaviour aligned to the product's security model.

Policy and authorization design where Keto or Oathkeeper is in scope.

Migration plan for existing users and credentials.

Deployment, backup, upgrade, monitoring, and handover documentation.

Delivery

How an engagement runs

  1. Model the identity

    We define the user types, tenants, credentials, recovery paths, and consent requirements. A headless platform gives you more control and more decisions; we make those decisions explicit.

  2. Architect

    We choose which Ory components are needed and how they connect to the product, the API gateway, and the existing directories. Not every product needs all four services.

  3. Implement

    Kratos, Hydra, Keto, and Oathkeeper are deployed and connected to the product's own UI. The login experience remains yours; the identity primitives are Ory.

  4. Migrate

    Existing users, credentials, and sessions are migrated in stages. Password hashes, MFA enrollment, and external identity links are handled explicitly.

  5. Harden

    We review token lifetimes, redirect URIs, CORS, session security, secrets, rate limits, and audit. Headless identity moves more responsibility into the application, so the boundary is documented.

  6. Hand over

    Your team gets the architecture, the runbook, the upgrade path, and the integration tests. The product team owns the login experience; the platform team owns the identity services.

Headless is a trade-off, not a shortcut

Ory is built for teams that want identity APIs, not an identity UI. Kratos handles users and credentials, Hydra handles OAuth2 and OIDC, Keto handles authorization relationships, and Oathkeeper handles identity-aware proxying.

That gives a product team control over the login experience and the data model. It also moves the login screen, consent text, recovery flow, and session behaviour into the product’s own codebase.

The trade-off is explicit: more control, more integration work, and more operational surface.

When Ory fits

Ory is a strong fit when:

  • The product needs a branded, custom login experience.
  • The team is comfortable with APIs, containers, and Kubernetes.
  • OIDC and OAuth2 are the primary protocols.
  • Identity is part of the product, not a back-office utility.
  • The team wants to own the user experience and the deployment.

It is a weak fit when the requirement is a ready-made admin console, a native SAML identity provider, or a small internal SSO deployment with no engineering owner.

The component boundary

A common mistake is deploying every Ory component because they exist. We start with the product requirement:

  • Kratos for identity and credentials.
  • Hydra for OAuth2/OIDC clients and consent.
  • Keto for relationship-based authorization, where the product needs it.
  • Oathkeeper for identity-aware proxying, where the architecture needs it.

Not every product needs all four. The boundary between Ory and the application’s own authorization model is a design decision, and it should be written down.

Operations and migration

A headless identity platform still needs a database, backup, restore, upgrades, monitoring, and secrets management. The application team also needs integration tests for login, recovery, consent, and token refresh.

Migration is staged. Users, password hashes, MFA enrollment, and external identity links are reviewed before the first cohort moves. The rollback path is defined before the cutover.

What this service is not

It is not a managed Ory Network subscription, a ready-made login UI, or a guarantee that every SAML application will fit. It is implementation and professional services on the self-hosted open-source components.

Related work

See the approach in practice

Lab builds use synthetic data in the bworkx environment. Reference methods describe how the work is scoped and delivered. Neither is a client case study.

Open-source IAM reference architecture

Reference architecture — headless identity, OAuth2/OIDC, deployment, and migration. Not a client engagement.

Read more

Related reading

The IAM assessment checklist

Eight areas to review before choosing an identity product.

Read the article

Questions

Before you ask

Is Ory open source?

The core Ory components are Apache-2.0 licensed. Ory Network is a separate managed offering. We work with the self-hosted open-source components and do not require a managed subscription.

Does Ory provide a login UI?

Ory is headless. It provides the identity APIs, and the product builds the login, registration, recovery, and consent screens. That is the main trade-off: more control, more front-end and integration work.

Does it support SAML?

Ory is strongest with OIDC and OAuth2. SAML support is limited compared with Keycloak or WSO2, particularly when the application estate expects a native SAML identity provider. We will recommend a different anchor when native SAML is a hard requirement.

Is Ory harder to operate than Keycloak?

It can be. A full deployment may involve Kratos, Hydra, Keto, and Oathkeeper, each with its own configuration and health checks. It is a good fit for a product team that wants that control and can operate it.

Can you migrate existing users?

Yes, with a staged plan. Password hashes, MFA enrollment, external identity links, and active sessions need a case-by-case review. We test the migration on a representative cohort before the cutover.

Identity & access

More in this practice

Other services in this practice. Each is scoped separately.

WSO2 Identity Server

Enterprise CIAM and federation on a mature open-source platform — adaptive MFA, consent, provisioning, and complex identity integration.

  • A platform assessment covering user stores, federation, applications, and operating model.
  • Deployment architecture for the runtime, database, clustering, and backup.
  • OIDC, OAuth2, SAML, and WS-Federation integrations for the applications in scope.
  • LDAP, Active Directory, and JDBC user-store configuration with attribute mapping.
See how it works

midPoint identity governance

Joiner-mover-leaver provisioning, access certification, and role management across HR, ERP, directories, and business applications.

  • A governance assessment covering identity sources, target systems, roles, and review evidence.
  • A role and entitlement model aligned to the business, not a flat permission list.
  • Provisioning and deprovisioning connectors for HR, LDAP/AD, ERP, CRM, and other targets.
  • Joiner, mover, and leaver workflows with approvals and exception handling.
See how it works

Zitadel for multi-tenant SaaS

Multi-tenant identity for B2B SaaS: organizations, delegated administration, OIDC/SAML, and API-first automation.

  • A tenant model covering organizations, projects, roles, and delegated administration.
  • OIDC and SAML application configuration for the product and internal tools.
  • Branded login and account experience within the platform’s theming model.
  • Terraform or API automation for tenant and application provisioning.
See how it works

Next step

Start with the situation, not the solution.

Describe what is happening today, what has been tried, and what a good outcome looks like. We will tell you whether this service is the right fit.