Skip to content
@p2-inc

Phase Two, Inc.

Making Keycloak Easy, Hosted Keycloak, Enterprise Keycloak Support

Phase Two Logo Phase Two Logo

Hosted Keycloak, plus the extensions that make it work for SaaS.

Website • Docs • Pricing • Blog • Contact

Phase Two builds on Keycloak, one of the most widely used open source identity and access management systems in the world. Our open source extensions add multi-tenancy, passwordless login, audit logging and webhooks, a self-service admin portal, and more — and we run all of it for you as a managed service.

Tip

Run Keycloak in our cloud, no setup needed. Every Phase Two cluster comes with all of our extensions built in. Try it free with your own cluster →

🤖 Build with AI agents

Keycloak Skills (launch post) teach Claude Code, Cursor and Codex how to configure Keycloak and Phase Two: passwordless login (magic link, email OTP, passkeys), organization-restricted login, corporate SSO by email domain, social and enterprise identity providers, and cluster provisioning. They connect to our hosted MCP server, so your agent can check its work against your live deployment.

# Install the skills (connects to our hosted MCP server)
claude plugin marketplace add p2-inc/keycloak-skills
claude plugin install phasetwo@keycloak-skills
# Or connect to the MCP server directly
claude mcp add --transport http keycloak https://mcp.phasetwo.io/mcp

Our extensions stars

Multi-tenancy and SSO

  • Organizations — Single-realm multi-tenancy and role delegation via API.
  • IdP Wizards — Identity provider setup wizards so organization admins can configure their own SSO.
  • Admin Portal — User self-management for their account and organizations.

Authentication

  • Magic Link — Passwordless authentication with links sent by email, plus email OTP.
  • Native Apps — Native login screens for iOS, Android, React Native and Flutter apps, without a browser or web view.
  • Atomic Auth Flows — Config as code to safely update authentication flows.

Events and email

  • Events — Audit logging for compliance and webhooks for user and system activity.
  • Transactional Email — Send Keycloak's email through a transactional email provider.

Look and feel

  • Themes — Easy login UI and email customization, plus Admin UI additions for managing our extensions directly from Keycloak.

Operations

  • Redis Cache — Replace Keycloak's Infinispan distributed caches with Redis or Valkey.
  • KMS — Keep realm signing keys in a cloud KMS instead of in the database.

Migration

🐳 Run it yourself

🛠️ Tools

💜 Community

We sponsor Keycloakify, the open source toolkit for building Keycloak login, account and email themes with React. Its official shadcn/ui + Tailwind starter is a ready-made place to begin.

👋 Come visit

Pinned Loading

  1. keycloak-orgs keycloak-orgs Public

    Single realm, multi-tenancy for SaaS apps

    Java 546 101

  2. keycloak-events keycloak-events Public

    Useful Keycloak event listener implementations and utilities.

    Java 317 53

  3. keycloak-magic-link keycloak-magic-link Public

    Magic Link Authentication for Keycloak

    Java 435 121

  4. phasetwo-containers phasetwo-containers Public

    Docker image for Phase Two Keycloak distribution

    Shell 103 26

  5. keycloak-skills keycloak-skills Public

    Agent Skills for Keycloak and Phase Two: Claude Code, Cursor and Codex plugins for passwordless login, SSO, organizations and cluster setup

    Python 5 2

  6. native-apps native-apps Public

    Native mobile SDKs for Keycloak auth (without the browser). Implementation of IETF draft OAuth 2.0 for First-Party Applications

    Swift 3 1

Repositories

Showing 10 of 47 repositories
  • phasetwo-docs Public

    docusaurus repo for phasetwo.io public website and documentation

    p2-inc/phasetwo-docs's past year of commit activity
    MDX 4 16 5 2 Updated Nov 29, 2026
  • native-apps Public

    Native mobile SDKs for Keycloak auth (without the browser). Implementation of IETF draft OAuth 2.0 for First-Party Applications

    p2-inc/native-apps's past year of commit activity
    Swift 3 Apache-2.0 1 0 3 Updated Nov 27, 2026
  • terraform-provider-phasetwo Public

    Terraform provider for Phase Two hosted Keycloak clusters and realms

    p2-inc/terraform-provider-phasetwo's past year of commit activity
    Go 0 MPL-2.0 0 1 1 Updated Nov 27, 2026
  • keycloak-kms Public

    Keeps Keycloak's realm signing keys in a cloud KMS instead of in the database

    p2-inc/keycloak-kms's past year of commit activity
    Java 0 0 1 0 Updated Nov 27, 2026
  • keycloak-magic-link Public

    Magic Link Authentication for Keycloak

    p2-inc/keycloak-magic-link's past year of commit activity
    Java 435 121 8 (2 issues need help) 5 Updated Nov 27, 2026
  • phasetwo-sdk-generator Public

    Generator for Phase Two SDK libraries

    p2-inc/phasetwo-sdk-generator's past year of commit activity
    Shell 0 Apache-2.0 0 1 6 Updated Nov 26, 2026
  • phasetwo-containers Public

    Docker image for Phase Two Keycloak distribution

    p2-inc/phasetwo-containers's past year of commit activity
    Shell 103 26 2 0 Updated Nov 26, 2026
  • keycloak-themes Public

    Themes and theme utilities meant for simple theme customization without deploying a packaged theme

    p2-inc/keycloak-themes's past year of commit activity
    TypeScript 61 22 7 (1 issue needs help) 0 Updated Nov 25, 2026
  • oss-parent Public Forked from xgp/oss-parent

    Parent pom for oss projects

    p2-inc/oss-parent's past year of commit activity
    0 3 0 3 Updated Nov 25, 2026
  • keycloak-account-v1 Public

    Java Resources and FTL templates for Keycloak theme v1

    p2-inc/keycloak-account-v1's past year of commit activity
    Java 19 13 1 0 Updated Nov 24, 2026