Back to architecture

You manage

Identity & Authentication

Your IdP, your users, your policies—Coder just connects

How it works

Coder delegates authentication entirely to your identity provider. Users sign in via your IdP. Coder has no separate user database.

Supported providers

Okta

Enterprise SSO

Microsoft Entra

Azure AD

Google

Workspace

Ping Identity

Enterprise

Auth0

Okta platform

Keycloak

Open source

Any OIDC

Standard

Any SAML

2.0 compatible

Note: Any OIDC or SAML 2.0 compatible identity provider works with Coder.

Authentication flow

With standard OIDC/SAML, no passwords are stored in Coder. 1. User visits Coder. 2. Redirects to IdP. 3. User authenticates. 4. Token returned. 5. Coder session created.

What’s stored where

Your IdP stores

  • Credentials

    Passwords, MFA tokens

  • User attributes

    Email, name, groups

  • Auth policies

    MFA, conditional access

  • Sessions

    SSO session state

Coder stores

  • User record

    Synced from IdP

  • Group memberships

    For workspace access

  • Coder roles

    Template admin, auditor, etc.

  • Audit logs

    Who did what, when

User provisioning

Just-in-time (JIT)

Users are automatically created in Coder when they first sign in via your IdP. No manual provisioning needed.

  • Simplest setup, works with all IdPs

SCIM

Sync users and groups from your IdP. Instant deprovision when users leave. Supports Okta, Azure AD, and others.

  • Enterprise-grade, automated lifecycle

Groups and RBAC

Map IdP groups to Coder roles. Users inherit permissions based on their group membership.

Custom roles and fine-grained RBAC. Create custom roles with granular permissions. Control who can create workspaces, manage templates, and access audit logs.

Enforced by your IdP

MFA is handled by your IdP. Conditional access policies are enforced before Coder sees the user. If your IdP requires MFA, Coder users must use MFA.

Examples of IdP policies

  • Require MFA for all users

  • Block access from untrusted locations

  • Enforce device compliance

  • Time-based access restrictions

What Coder sees

  • Coder only receives a validated token after your IdP has enforced all policies. If the user fails MFA or conditional access, they never reach Coder.

FAQs

Does Coder store passwords?
No. Coder never sees or stores passwords. Authentication is handled entirely by your IdP. Coder only receives a validated token after successful authentication.
What happens when a user leaves the company?
Can we enforce MFA for Coder access?
How do group memberships sync?
Can we use multiple IdPs?