Auth0 vs Keycloak for HIPAA and healthcare

Auth0 can provide a Business Associate Agreement on eligible plans, while Keycloak is self-hosted and leaves the HIPAA obligations with the organization that runs it. The right choice depends on where patient data may sit and who your team can hold accountable.

On this page

Auth0 vs Keycloak for HIPAA: which side fits which setup

Choose Auth0 when your organization needs a vendor Business Associate Agreement and a managed service is acceptable. Choose self-hosted Keycloak when identity data must stay inside your own infrastructure and your team can carry the HIPAA obligations itself. This page covers only the compliance angle, and the general comparison of the two platforms sits on its own page. The decision turns on three questions: whether your Auth0 plan is eligible for the BAA, which hosting region and deployment model you can use, and who will run and evidence the controls. Auth0's documentation says it is a Business Associate under US HIPAA and HITECH and can provide its BAA on request.

On the Auth0 side, the BAA applies to customers who qualify as a Covered Entity and who provide ePHI as part of the Auth0 user profile, so confirm that your user records will hold only data the agreement covers. The documentation does not state which subscription plans qualify, so ask Auth0 to confirm plan eligibility in writing before you design around it. Hosting is the second gate. Public cloud tenants can be created in Australia, Canada, Europe, Japan, the United Kingdom or the United States, and a tenant name cannot be changed after creation, so settle region and naming before go-live. Auth0's documentation also states that HIPAA compliance is not available on Azure deployments. Auth0 Private Cloud runs on AWS or Azure, so confirm the exact cloud and region in the contract before you accept it as the hosting model.

With self-hosted Keycloak, no vendor signs a BAA for the software, and the administration guide does not address HIPAA. The organization running Keycloak carries the obligations, so your compliance team must map its controls to the Security Rule itself. The documented controls to review include auditing of user events and admin events, two-factor authentication with passkeys, recovery codes and TOTP/HOTP, brute force protection with temporary and permanent lockout, and the per-realm Require SSL setting. Under the Security Rule, Appendix A lists 18 standards with 36 implementation specifications, 14 required and 22 addressable. For each addressable specification, document whether it is reasonable and appropriate and, if it is not, the equivalent measure you chose. Your team also owns the database, backups, log retention and the evidence that these settings stayed in place.

How Auth0 and Keycloak each meet the identity-related safeguards

This table sets out what Auth0 and Keycloak document for the identity-related safeguards an assessor will look at, row by row. Read each cell as a checklist: where a vendor statement is missing, the cell tells you what to confirm before you rely on the platform. The main takeaway is that Auth0 will provide a business associate agreement on request, with conditions to confirm, while Keycloak's guide does not mention HIPAA, so the evidence sits with your team.

SafeguardAuth0Keycloak
Business associate agreementAuth0 says it is a business associate and will provide its BAA on request. Confirm it covers your contract.The Server Administration Guide does not mention HIPAA or a BAA. Your organization carries the HIPAA obligations.
Plan eligibilityThe documentation does not say which plans qualify for the BAA. Confirm plan eligibility with Auth0 in writing.Upstream Keycloak has no plan to qualify for. Confirm vendor terms if you use a supported distribution, such as Red Hat build.
Hosting and data locationTenant region chosen at creation, from six regions. Private Cloud runs on AWS or Azure. HIPAA compliance is not available on Azure deployments.Runs wherever you host it, so data location is set and evidenced by you.
Audit loggingConfirm with Auth0 which log events are retained, for how long, and how you export them for review.Configurable auditing tracks user events and admin events. Confirm how long events are kept and how they reach your log store.
Multi-factor authenticationConfirm which MFA factors and policies your plan includes, and whether they apply to your tenant's login flows.Two-factor options include passkeys, recovery codes, TOTP and HOTP, plus WebAuthn and OTP policy configuration.
Brute force protectionConfirm lockout and attack protection settings for your plan and tenant. Document the thresholds you configure.Documented temporary and permanent lockout. Record the thresholds you set as control evidence.
Transport encryptionConfirm TLS settings and certificate handling for your tenant and any Private Cloud deployment with Auth0.Per-realm Require SSL setting with External requests, None and All requests modes. Confirm which mode each realm uses and why.
Documentation and evidenceAuth0 documentation describes the BAA and Azure exclusion. Ask for the signed BAA and written plan eligibility.Your own configuration records are the evidence: audit settings, MFA policy, lockout thresholds and SSL modes per realm.

What the vendor covers and what your organization still configures

HIPAA places the safeguards on the covered entity or business associate running the system, so the platform choice only sets part of the answer. This section separates what Auth0 and Keycloak document about themselves from the tasks your organization must still configure and evidence. A signed BAA does not make the overall deployment compliant.

What Auth0 documents for HIPAA

Auth0's documentation states that Auth0 is a Business Associate under HIPAA and HITECH and will provide its Business Associate Agreement on request. The BAA is documented as applying to customers that qualify as a Covered Entity and that put ePHI into the Auth0 user profile, so check which of your data flows land there. Two limits matter for your design: HIPAA compliance is not available on Azure deployments, and the documentation does not say which subscription plans qualify for the BAA, so confirm plan eligibility with Auth0 in writing before you build.

Auth0 compliance docs

What Keycloak documents about controls

The Keycloak Server Administration Guide documents auditing of user events and admin events, two-factor options including passkeys, recovery codes and TOTP/HOTP with WebAuthn and OTP policy settings, and brute force protection with temporary and permanent lockout. It also documents a per-realm Require SSL setting with the modes External requests, None and All requests. The sections we checked do not mention HIPAA or a BAA, so the organization running Keycloak carries those obligations.

Keycloak admin guide

Contracts, plan and region

Your organization signs the BAA with the vendor, chooses the plan and tenant region, and records both before any ePHI enters the system. Auth0 public cloud tenants can be created in Australia, Canada, Europe, Japan, the United Kingdom or the United States, and a tenant name cannot be changed after creation, so settle region and naming first. Auth0 Private Cloud can run on Azure, where HIPAA compliance is not available, so hosting choice decides the contract path. For self-hosted Keycloak, the same question applies to any hosting provider you use.

SSO, MFA and admin access

Decide where SSO is enforced, which MFA factors users may register, and who holds administrator rights in your Auth0 tenant or Keycloak realm. Confirm in your tenant which MFA factors your plan allows. In Keycloak, set the realm's Require SSL mode, OTP and WebAuthn policies and brute force lockout values explicitly, and record why you chose them. Review admin accounts on a fixed schedule, and never let staff share an admin login, because shared accounts weaken attribution in the audit trail.

Logs, keys, backups and reviews

Set audit log retention to match your policy, and schedule reviews of the logs so someone reads them. Decide who holds encryption keys and database credentials, and ask Auth0 how it handles keys and what data you can export. Keycloak needs a relational database in production, so the database, its backups and restore tests fall under your safeguards. Run workforce access reviews that compare active accounts with current roles, including former staff and vendor accounts.

Keycloak database guide

How login events and audit evidence flow in each deployment

Clinical staff sign in to a clinical app, which sends the login to either Auth0 or Keycloak. The Auth0 side sits inside a vendor boundary covered by a Business Associate Agreement, on a plan you must confirm with Auth0, and the tenant region should be recorded. The Keycloak side sits inside your own trust boundary, covering the server, database, logs and backups. The assessor reviews the BAA and tenant event records on one side and Keycloak's audit configuration, logs and backup records on the other. Check who holds each record and how long logs are kept.

Login and audit evidence paths for Auth0 and self-hosted Keycloak.

The evidence an assessor asks for and how each side produces it

Auth0's documentation says Auth0 is considered a Business Associate under US HIPAA and HITECH and can provide its Business Associate Agreement on request. That agreement applies to customers who qualify as a Covered Entity and who send ePHI to Auth0 as part of the user profile. Keycloak is software your team runs, so no vendor agreement exists for it. HIPAA obligations stay with your organization, and any cloud or data center provider hosting the deployment is a separate contract to review. See Auth0's data privacy and compliance documentation for the starting point.

  • Plan eligibility: The documentation does not state which subscription plans qualify for the BAA. Ask Auth0 to confirm eligibility in writing for the plan you intend to buy, whether Free, Essentials, Professional, Enterprise or a Private Cloud contract.
  • Azure deployments: Auth0 documents that HIPAA compliance is not available on Azure deployments. Confirm the hosting option and cloud provider before you sign.
  • Attestation reports: Request Auth0's current attestation reports directly from Auth0, and check that the scope and period of each report cover the systems you plan to use.
  • Keycloak evidence: The Keycloak project does not issue an attestation for your deployment. Your evidence is the configuration, logs and records your team produces, plus any BAA your hosting provider signs.
  • PHI mapping: Identify which user profile attributes would hold ePHI, because the Auth0 BAA is tied to ePHI supplied as part of the user profile.

Before the assessment starts, hold a signed BAA, a written plan confirmation and the current attestation reports in one folder, each with its date.

Configuring Keycloak controls an assessor will check

This sequence sets out the Keycloak settings an assessor will ask to see, in the order an organization should configure them. Each step ends with a check and an exported artifact that can go into the evidence file. Retention, encryption and the Auth0 BAA position remain for the organization to confirm in its own environment.

  1. Choose a supported production database

    The platform team selects a relational database for Keycloak before any workforce or patient-facing login goes live. Keycloak needs a relational database in production and supports PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL. The default dev-file database is not suitable for production, so the build must show a supported engine. Record the engine and version in the system inventory, and confirm with the hosting team that backups and encryption at rest for that database meet the organization's own policy. Done when the deployment configuration names the database and version, and the inventory entry matches it.

  2. Set Require SSL to all requests

    The realm administrator sets the per-realm Require SSL option, which offers the modes External requests, None and All requests. Choose All requests so that every connection to the realm, including internal ones, is encrypted in transit. If another mode is kept for a documented reason, that reason goes into the decision log described in the documentation step. Check the result by exporting the realm settings to confirm the mode, then attempting a plain HTTP login to confirm it is refused. Done when the export and the refused plain HTTP attempt are saved with the change ticket.

  3. Enable user and admin event auditing

    The administrator turns on event auditing so that user events and admin events are recorded, including logins and administrative changes, as the Keycloak Server Administration Guide describes. Decide where those events go, whether the realm event store or an external log pipeline, and which roles can read them. The organization must confirm the retention period, access controls on the log store and whether the logs are encrypted in its own environment, because enabling the feature does not settle those. Done when a test login and a test admin change both appear in the chosen store, and the retention period is written into the logging standard.

  4. Set OTP, WebAuthn and passkey policies

    The administrator sets the OTP policy and the WebAuthn policy for the realm, and enables passkeys and recovery codes where the workforce will use them. Keycloak documents two-factor authentication with passkeys, recovery codes and TOTP/HOTP, so the factor choices and policy values must match the access rules in the organization's risk assessment. Test enrollment with a privileged account and with a standard user, then confirm that a login requires the second factor. Done when the policy values are exported, the enrollment results are saved, and the recovery code process is written down for help desk staff.

  5. Enable brute force protection and lockout

    The administrator enables brute force protection and chooses between temporary lockout and permanent lockout, the two modes Keycloak documents. Temporary lockout is usually simpler to run because an administrator can release the account later. Permanent lockout needs a defined unlock procedure, owned by a named role, before it goes live. Test with a deliberate run of failed logins in a non-production realm, then confirm that the account locks and that the unlock step works. Done when the test record shows both the lock and the unlock, and the chosen mode appears in the decision log.

  6. Document each addressable decision

    Under the HIPAA Security Rule, each addressable implementation specification must be assessed for whether it is reasonable and appropriate. If it is not adopted, the reason must be documented, along with an equivalent measure where one is reasonable. Map the settings from the earlier steps to the technical safeguards in 45 CFR 164.312 and to the documentation standards in 164.316. Write one entry per setting with the choice made, the reason, the owner and the evidence file, and date each entry. Done when every setting above has an entry that an assessor can trace from the regulation to the exported configuration.

  7. Repeat the trail for Auth0 tenant settings

    Auth0 settings are configured in the tenant, so the same evidence trail applies to them: MFA policy, lockout configuration, log retention and the change history. Auth0's documentation states that it is a Business Associate under HIPAA and HITECH and can provide its Business Associate Agreement on request. That agreement applies to covered entities that provide ePHI in the user profile, and the documentation states that HIPAA compliance is not available on Azure deployments. The documentation does not say which plans qualify, so confirm plan eligibility with Auth0 and file the signed agreement beside the Keycloak evidence.

Where identity data lives under each option

Under Auth0, the region is chosen when the tenant is created. Public cloud tenants can be created in Australia, Canada, Europe, Japan, the United Kingdom or the United States, and a tenant name cannot be changed later, so make the naming decision deliberately. Auth0 Private Cloud is a dedicated deployment on AWS or Azure for organizations that cannot use the multi-tenant public cloud or need isolation or guaranteed capacity. HIPAA is not available on Azure deployments, so the cloud choice is also a compliance choice. Ask Auth0 in writing where user profiles, logs and backups are stored and processed for the tenant you select, because the region alone does not settle that question.

With Keycloak, the server runs wherever you deploy it: your own cloud account, a data center or an air-gapped network. That makes data location your documented decision, covering the relational database, backups, log stores and any replicas. Keycloak needs a relational database in production, and the supported choices include PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL, so the database engine and its host become part of the data map an assessor will read. The organization running Keycloak carries the HIPAA obligations for it. Write the data flow down once, with each store, its location, who can administer it and which audit events are kept where.

Plan the exit path before the contract is signed. Auth0 documents bulk user exports, and that documentation is the starting point for exit planning and for evidence of data portability. Run an export against a test tenant, time it, and check that the fields you need, such as custom attributes and enrolled authenticators, appear in the output. Confirm with Auth0 in writing whether password hashes and MFA enrollments are included, because an assessor will ask how users would be re-established elsewhere. On the Keycloak side, your team owns the export and backup routine, so schedule it, restore it into a non-production environment and keep the result with the data map.

Questions to answer before hiring help on a HIPAA identity project

How much effort does a Keycloak rollout need compared with confirming an Auth0 BAA?

Confirming an Auth0 BAA is mostly a contract and plan question, while a Keycloak rollout is an engineering project that your organization owns from end to end. Auth0's documentation says Auth0 is considered a Business Associate under HIPAA and HITECH and can provide its BAA on request. That BAA applies to customers who qualify as a Covered Entity and send ePHI in the Auth0 user profile, and the documentation does not say which plans qualify. With Keycloak there is no hosted vendor to sign a BAA with, and the Keycloak Server Administration Guide does not mention HIPAA or a BAA, so the organization running Keycloak carries the obligations for hosting, patching, database backups, audit logs, MFA settings and access reviews. Ask any partner to list each of those tasks in the written scope so the effort is visible before work starts.

What drives the cost of Auth0 compared with Keycloak?

Auth0 costs are mainly a recurring subscription priced by monthly active users, defined as non-internal users who authenticated during a month for a given tenant, with plan tiers (Free, Essentials, Professional and Enterprise) that add features. Auth0's pricing page lists the Free plan at up to 25,000 MAUs, custom database connections start on Professional, and private deployment and a 99.99% SLA are Enterprise only. User growth, the plan Auth0 confirms is eligible for the BAA, and any dedicated deployment all push the bill up. Keycloak is licensed under Apache-2.0, so there is no license fee for the software itself. Its cost sits in infrastructure, a production relational database, staff time to build, patch and upgrade it, and any paid support you choose. Those costs rise with availability targets, the number of environments and the audit evidence you must produce. Ask for each line separately: subscription or license, hosting, database, one-time build, recurring operations and support.

How long does a HIPAA identity project take to deliver?

The timeline comes from the written scope, and a few factors set how long each part takes. The main drivers are the number of applications and their protocols (OIDC, OAuth 2.0 or SAML), the user sources to federate from LDAP or Active Directory or to broker from an external identity provider, the MFA and session policy, the database and high availability design, and the number of clinical and business systems that must be integrated and tested. On the Auth0 side, hosting choice matters: Auth0's documentation states that HIPAA compliance is not available on Azure deployments, so early architecture decisions can change the schedule. DeployOpen's engagements are most often fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ask for a dated plan with milestones, the testing and retest window, and the client review points the schedule depends on.

What does the project need from our security, clinical and IT staff?

The project needs named owners from security, clinical operations and IT before design starts, because each group signs off a different part of the risk. Security owns the mapping to the HIPAA Security Rule, MFA and password policy, brute force lockout settings, the Require SSL setting for each realm, and retention rules for user and admin event logs. Clinical staff confirm which applications and roles touch ePHI, which users need shared or emergency access, and how session timeouts affect clinical workflows. IT owns the directory sources such as Active Directory or LDAP, DNS, certificates, the database platform, backup and restore tests, and the on-call model for sign-in outages. Ask the written scope to name each role, the decisions it covers, the review dates, and the access the partner will need inside your environment.

Can our own team build and run this without outside help?

A capable in-house team can build and run either platform, and the deciding factors are skills, time and continuity for the HIPAA obligations. With Auth0, your team mostly configures applications and connections while Auth0 runs the service, which leaves fewer operational tasks but keeps the contract and plan questions on your side. With Keycloak, your team also runs hosting, the production database, monitoring, backups and upgrades. The Keycloak project said in an October 2024 blog post that it plans four minor releases a year and that breaking changes in a minor release will be opt-in, so the upgrade calendar is steady but still needs staff time. Check that the team has Keycloak administration, OIDC and SAML, database operations, Kubernetes or Linux operations, and security testing skills. Outside help can cover a fixed build, and a retainer can cover upgrades and continuous testing afterward.

Which Auth0 deployment, region and data fields affect HIPAA scope?

The main scope decisions are which Auth0 deployment you use, which region holds the tenant, and which fields hold PHI. Auth0's documentation states that HIPAA compliance is not available on Azure deployments, and Auth0 Private Cloud is a dedicated managed deployment on AWS or Azure, so any private option needs its cloud and BAA coverage confirmed in writing. Public cloud tenants can be created in Australia, Canada, Europe, Japan, the United Kingdom or the United States, and a tenant name cannot be changed after creation, so choose region and naming before anything is built. The BAA reaches ePHI in the Auth0 user profile only for customers that qualify as a Covered Entity, so limit profile fields to what the sign-in flow needs and document each field that holds PHI. Ask Auth0 to confirm in writing which plan, region and deployment carry the BAA.

What evidence will an assessor ask for from an identity platform?

An assessor will ask for records that show access is controlled, logged, reviewed and recoverable, plus the documented reasoning behind each decision. The Security Rule requires covered entities and business associates to protect electronic PHI, and for each addressable specification the organization must assess whether it is reasonable and appropriate. If it is not, the organization must document why and apply an equivalent alternative where that is reasonable. For identity, expect to show MFA configuration exports, brute force lockout settings, the realm SSL setting, user and admin event audit settings and log retention, access review records, backup and restore test results, upgrade change records, and the signed Auth0 BAA with plan confirmation. DeployOpen prepares systems, controls and evidence for compliance assessments, while independent auditors and certification bodies issue audit reports, attestations and certifications.

What does an implementation partner deliver for HIPAA readiness on identity?

DeployOpen plans, implements, customizes, integrates, hardens, backs up, upgrades, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. It also prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications, so those remain the work of independent auditors and certification bodies. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Security testing of applications, APIs, cloud and infrastructure can be scoped separately from the build. Ask any partner, DeployOpen included, for a written list of deliverables, the evidence each one produces, who signs off on each item, what the client must provide, and which items continue under a retainer.

How DeployOpen helps prepare, implement and evidence the setup

If you choose self-hosted Keycloak, DeployOpen plans, implements, integrates, hardens, documents and supports it inside your own cloud accounts, data centers or air-gapped networks. The work is scoped so your compliance and security teams can review the identity setup, its controls and its evidence. DeployOpen prepares systems and evidence for compliance assessments but does not issue audit reports, attestations or certifications.

How we scope

  • The written scope lists which Security Rule safeguards the Keycloak work covers, such as access control and audit controls.
  • Fixed-scope engagements agree deliverables, timelines and responsibilities in writing before any work starts.
  • The scope separates what DeployOpen configures from HIPAA obligations your organization keeps, such as risk analysis and policies.

How we build

  • Keycloak is configured with the realm, OIDC or SAML clients, brokering and LDAP or Active Directory federation you choose.
  • Passkeys, recovery codes, TOTP, brute force lockout and Require SSL are configured and tested.
  • Admin event and user event auditing is enabled and routed to the log destination your security team chooses.

How we hand over

  • A written configuration record lists realms, clients, identity providers, MFA policies and audit settings as deployed.
  • Database backup and restore steps are written and tested with your team, using a production database Keycloak supports.
  • Evidence packs map each setting to the safeguard it supports, for your assessor to review.

How we support

  • Retainers can cover upgrades, continuous testing and ongoing support after handover.
  • Keycloak's release cadence and breaking-change policy are reviewed with your team before each planned upgrade.
  • Your compliance lead should confirm which HIPAA obligations sit with you, since Keycloak's guide does not map them.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.