Temporal SSO and authorization

How to secure self-hosted Temporal with OIDC sign-on for the Web UI, JWT claims mapped to namespace roles, and SAML and SCIM in Temporal Cloud, with the decisions, build sequence and checks that close each step.

On this page

Why self-hosted Temporal needs SSO and authorization before go-live

A self-hosted Temporal Service ships with the default noopAuthorizer, which allows every API request with no authentication or access control. A platform team that exposes a cluster without changing that default is giving every caller the ability to start, signal, terminate and read workflows in every namespace. Before go-live, the team needs two separate controls in place: single sign-on for people using the Web UI and authorization for every API caller, whether a person, a service or a worker. SSO answers who is logging in to the Web UI. Authorization answers what that identity may do in each namespace. Setting up one does not give you the other.

Authorization in self-hosted Temporal works through a ClaimMapper, which reads claims from a JWT or certificate and turns them into namespace roles, and an Authorizer plugin, which decides whether a request with those roles may proceed. The Web UI can use OIDC single sign-on, but the roles a user receives still depend on the claims your identity provider emits. Several things make this harder than it looks: the claim names and values must be designed in advance, every namespace must map to an owning team, and service accounts for workers need their own claims rather than shared human logins. Confirm with your identity team which claims the provider can issue and how group membership is expressed before writing any mapping.

Temporal Cloud handles the same need through different settings. Its pricing page lists SAML SSO on the pay-as-you-go tier, and SCIM provisioning is included in the Enterprise and Mission Critical support tiers, so the identity configuration sits with the managed service rather than your own ClaimMapper and Authorizer. Ask the vendor to confirm exactly which roles, provisioning behavior and audit options each tier provides before you decide between the two models, because the choice changes where identity work lives for the life of the platform. Temporal pricing lists the current tier details.

How a user login and an API call flow through identity, ClaimMapper and Authorizer

The flow starts in the user's browser, which opens the Temporal Web UI and is redirected to the OIDC provider for single sign-on. After the user signs in, the provider issues a token that the caller presents to the Temporal frontend. Inside the trust boundary, the ClaimMapper reads the token claims and maps them to namespace roles, then the Authorizer decides, per namespace, whether the request is allowed. Check that the Authorizer is configured, because without one the default noopAuthorizer allows every request.

Login and API request path through identity, claim mapping and authorization.

Which Temporal settings and identity parts are involved

Securing a self-hosted Temporal Service touches four layers: the frontend transport, the plugins that decide who is allowed in, the identity provider that issues the tokens, and the Web UI login. Each layer has its own settings, and a gap in any one of them can leave the API open, so review them together before go-live.

Frontend TLS and mTLS settings

The frontend is where clients and workers connect, so it is the first place to enforce identity. Decide which clients must present a certificate, which may only present a token, and how internode traffic is separated from frontend traffic. Confirm that the TLS settings apply to every listener you expose, including any path used by the Web UI. Check that certificate rotation is part of your operations plan, since an expired certificate will stop workers from connecting.

Security docs

ClaimMapper for JWT and certificates

The ClaimMapper turns the identity in a JWT or client certificate into Temporal system and namespace roles. Map each claim to the smallest role that a team needs, and write the mapping down so that a reviewer can trace a namespace permission back to a group in your identity provider. Test with a user who holds only one team's group to confirm they cannot read another namespace.

Authorizer plugin

The Authorizer decides whether an authenticated caller may perform a specific API action. Without one, the default noopAuthorizer allows every API request, so a ClaimMapper alone does not restrict anything. Confirm that your configured Authorizer checks namespace-level permissions for each operation, and test denied calls as well as allowed ones before treating access control as working.

OIDC settings for the Web UI

The Web UI can sign users in through OpenID Connect, which is separate from the API authorization path. Settings include the issuer, client identifier, client secret, scopes and the callback address, and each must match the identity provider registration exactly. Confirm which scopes the UI requests, and that the UI session expires on a schedule your security team accepts.

Identity provider token and claim configuration

The identity provider decides what appears in the token that Temporal reads. Confirm the audience, issuer and signing keys that Temporal validates, and the exact claim name and format that carries group or role membership. Plan for group changes, such as a user leaving a team, to take effect when tokens are refreshed, and document the token lifetime you accept.

Temporal Cloud SAML and SCIM

Temporal Cloud is a separate identity model. Its pricing page lists SAML SSO on pay-as-you-go plans and SCIM with the Enterprise and Mission Critical support tiers, so confirm which tier you need before designing user provisioning. If you move between self-hosted and Cloud, map each group to the equivalent namespace permission on both sides, since the two systems will not share configuration automatically.

Pricing page

Which identity model and authorizer approach fits your organization

This table compares the identity and authorization options for self-hosted Temporal and Temporal Cloud, with the operational cost of each. Read it by matching your callers and team structure to a row, then checking the cost column for what your team will have to maintain after go-live.

ApproachWhen it fitsOperational cost to run
OIDC for the Web UI onlyHuman operators are the only interactive users, and workers and clients are already isolated on internal networksConfigure the OIDC provider and client registration, then review Web UI access when people join or leave; API callers remain unauthenticated unless another control is added
OIDC for the Web UI plus JWT claims for API callersApplications and workers call the frontend with tokens from your identity provider and you want namespace access tied to group membershipMaintain the claim logic in the ClaimMapper, manage signing key rotation and audience settings, and test each claim change against real caller tokens
Claim-based mapping with the built-in ClaimMapperRoles are stable and can be expressed as claims such as a team group per namespaceGroup naming conventions must stay consistent across the identity provider and Temporal config, and drift between them causes silent access gaps
Custom AuthorizerAccess rules depend on more than claims, such as workflow type, task queue or caller identity checks beyond rolesYour team writes, tests and upgrades the Authorizer code with each Temporal server upgrade, and owns its security review
Roles mapped per namespaceTeams own separate namespaces and need clear isolation between production and non-productionMore namespaces mean more role mappings to review and retire, so an access review covers each namespace separately
Roles mapped per team across namespacesA small number of platform groups operate many namespaces with the same permission setFewer mappings to maintain, but a broad team grant can reach namespaces that should stay restricted, so review scope carefully
SAML SSO and SCIM in Temporal CloudYour organization runs Temporal Cloud and wants identity provisioning handled by the managed serviceConfirm with Temporal which SSO and SCIM features apply to your plan, since the pricing page ties SCIM to Enterprise and Mission Critical support tiers

How to configure OIDC, ClaimMapper and Authorizer in order

This sequence secures a self-hosted Temporal Service so that identity from your provider decides which namespaces each team can reach, and it ends with a tested login from one pilot team. Work through the steps in order, because each one depends on the claims and settings produced by the step before it.

  1. Define the namespace and role model

    Before touching any configuration, list every Temporal namespace your teams will use and the access each group needs, such as read-only for operators, worker permissions for the team that runs its workers, and admin rights for the platform team. Write the mapping from identity group to namespace and role in a short table that security and platform engineering both sign off. Done means every namespace has an owner and every role has a named group, and no group is granted access to a namespace it does not need. Note that the default setup allows every API request, so this table is the baseline you will enforce later.

  2. Confirm the identity provider emits the required claims

    Ask the identity team to confirm which OIDC provider will issue tokens for Temporal and which claims it can include, typically a subject, an audience value for the Temporal frontend, and a group or role claim that lists the identity groups from the table above. Decode a sample access token from the provider to see the claim names and their exact format, because the ClaimMapper must match them character for character. Done means you have a decoded sample token that contains the group claim for a test user, and you have recorded the issuer URL, audience and claim name for later steps.

  3. Enable frontend authentication and TLS

    Turn on TLS for the frontend and internode traffic so tokens are never sent in clear text, using the mTLS settings described in the self-hosted security documentation. Confirm that the Temporal services run on hosts that are not reachable from the public internet and that network access is limited to trusted internal networks. Platform engineering owns this step, and it should be verified with a connection test using a client that presents a valid certificate. Done means a client without a trusted certificate is refused, and a client with one connects, so the authentication layer has a secure transport before any claims are checked.

  4. Configure the ClaimMapper

    Set the ClaimMapper to read the group claim from the validated JWT and translate each identity group into the namespace roles defined in step one. Keep the mapping explicit: a group that is not listed should map to no roles at all, so new groups are denied by default. Store the configuration in version control so reviewers can see every change. Done means that decoding a token for a user in an unlisted group shows the claim present, while the mapper returns no namespace roles for that user when you run a test against the frontend.

  5. Configure the Authorizer

    Replace the default noopAuthorizer with an Authorizer that checks each API request against the roles returned by the ClaimMapper. Confirm that it evaluates namespace-scoped operations, such as starting workflows, sending signals and reading history, and that it denies anything outside the user's granted roles. Authorizer behavior is tied to your server version, so check the release notes for the version you run. Done means a user with worker rights in one namespace can poll tasks there and receives a permission error when calling the same operation in a namespace they hold no role for.

  6. Enable OIDC single sign-on for the Web UI

    Register the Web UI as a client with your identity provider, set the redirect URI and the scopes that produce the group claim, and configure the Web UI to use the same issuer and audience values recorded in step two. Confirm with the identity team that the redirect URI matches exactly, since a mismatch is a common failure. Done means a user can sign in through the provider, reach the Web UI, and see only the namespaces their groups allow in the namespace list.

  7. Test with one team's token

    Pick one pilot team with a clearly defined namespace and run the full path: sign in to the Web UI, start a test workflow with an SDK client using that team's token, and attempt the same call against a namespace the team does not own. Decode the token used in the test to confirm the claims match the mapping. Record the results, including the denied call, and have the security team review them before extending access to other teams. Done means the allowed call succeeds, the unmapped call is denied with a permission error, and the log shows both outcomes.

How SAML SSO and SCIM differ in Temporal Cloud

Temporal Cloud handles SAML SSO and SCIM as managed-service controls, separate from the self-hosted ClaimMapper and Authorizer path described above. The supplied pricing information lists SAML SSO on Temporal Cloud's pay-as-you-go plan, which means it is available without a support upgrade. SCIM, the protocol for provisioning and deprovisioning users from your identity provider, is listed as included on the Enterprise and Mission Critical support tiers. Both of those tiers are quoted by sales rather than published, so the price and the exact contents of each tier come from that quote, not from a list. This page does not state SCIM availability on any other tier, and you should not assume it on one.

The distinction matters for design. In a self-hosted cluster, your team maps JWT or certificate claims to namespace roles with a ClaimMapper and enforces them with an Authorizer, and nothing in the Temporal Cloud pricing changes that work. In Temporal Cloud, the identity provider and the cloud control plane take that role, so your team's job shifts toward configuring the SAML connection, deciding who is an admin of the account, and confirming that deprovisioning removes access in the cloud when an employee leaves. Do not reuse your self-hosted claim mappings as a substitute for cloud provisioning, and do not expect a cloud SAML setting to govern a self-hosted cluster you run in your own network.

Before you rely on any of this in a security review, confirm the current entitlements in writing with Temporal: which SAML features are on your plan, whether SCIM is included on the tier you are buying, what the provisioning and deprovisioning behavior is, and how the support response commitments apply. Ask for the answers as part of your quote, and record them alongside your access review evidence. Pricing and entitlements can change, so the pricing page is a starting point rather than a contract.

What drives identity integration effort and how to keep it down

This table lists the factors that expand or shrink Temporal SSO and authorization work, with a practical way to reduce each one. Read each row as a lever: the left column names the driver, the middle column explains why it changes effort, and the right column gives the reduction to plan for before build starts.

DriverWhy it changes effortHow to keep it down
Number of teams and namespacesEach namespace that needs different permissions adds role mappings, test cases and access reviews.Start with a fixed role catalog, such as read, worker and admin, and assign namespaces to teams rather than designing roles per team.
Identity provider claim qualityMissing, inconsistent or multi-valued group claims force custom mapping logic in the ClaimMapper.Choose one claim source of truth, normalize group names in the identity provider, and confirm claim names with a test token before coding.
Group modeling in the identity providerNested groups, renamed groups and per-environment groups multiply the mappings the team must maintain.Model groups by role and namespace in a flat structure, and document which group grants which Temporal role.
Number of SDK clients and service accounts using JWTsEach worker, client application and automation job needs its own token source, audience and expiry handling.Limit service accounts to a small set per namespace, use one token issuer for all of them, and track ownership of each account.
Custom Authorizer logicBusiness rules beyond role checks require code, tests and upgrades that track Temporal server releases.Keep the Authorizer to namespace and operation checks, move business rules into the application, and test it against each server upgrade.
Environments (development, staging, production)Each environment needs its own identity configuration, redirect URLs, keys and test accounts.Use the same role catalog and claim names in every environment, and change only issuer and client settings between them.
Compliance evidence requirementsAssessors often ask for proof of who can access which namespace, how access is granted and how it is removed.Decide the evidence list early, such as role catalog, mapping configuration, access review exports and audit logs, and generate it from the same configuration.

How the identity setup changes by deployment model

A single-node or Docker Compose deployment usually has one fixed hostname for the Web UI, which makes the OIDC setup simple to reason about. The identity provider redirect URI must match the exact scheme, host and port that users open in the browser, so a change from localhost to a DNS name during testing will break sign-in. Because all services share one host, the operator often assumes that access to the UI is the only control that matters. That assumption is wrong for Temporal, since the frontend API accepts requests from any reachable client unless an Authorizer is configured.

  • Callback URL: Register the exact Web UI origin and callback path with the identity provider, and keep a separate registration for any temporary test hostname.
  • Certificate trust: If the identity provider uses a private certificate authority, the Web UI host and any tooling running on it must trust that authority, or token discovery will fail.
  • Reachability: The host can usually reach the identity provider directly, but confirm that the provider's discovery and token endpoints resolve from inside the container network.
  • Frontend exposure: Keep the gRPC frontend port off public networks even on one node, because the Web UI login does not protect direct API calls.
  • Claims mapping: A single host still needs a ClaimMapper and Authorizer so that identity claims translate into namespace roles.

Confirm the exact redirect URI and the reachable endpoints of your identity provider before enabling login on the Web UI.

Hardening access control and handling secrets

Single sign-on only proves who a caller is. The controls in this section decide what that caller can do, how long their credentials stay valid, and where the secrets behind them are kept. Each card covers one control to set and verify before a self-hosted Temporal cluster takes production traffic.

Keep services off the public internet

Temporal services should run on hosts that are not reachable from the public internet, with network access limited to trusted internal networks. Authentication at the Web UI does not protect the gRPC frontend if the port is exposed. Check the security groups, load balancers and ingress rules for the frontend, the Web UI and the database, and confirm that no route from outside the corporate network reaches them.

Deployment guide

Replace the noopAuthorizer default

If no Authorizer is configured, self-hosted Temporal uses the default noopAuthorizer, which allows every API request with no authentication or access control. Treat this default as a gap to close before go-live, not as a setting to tune. Confirm the Authorizer is configured on every frontend instance and test that a caller without a valid role receives a denial.

Security docs

Grant least-privilege namespace roles

Map identity provider groups or JWT claims to the narrowest namespace role that lets each team do its job, such as read-only access for operators and worker-only access for service identities. Avoid mapping broad administrative claims to every engineer. Review the mapping whenever a team creates a new namespace, and document which group owns each role.

Set token lifetimes and rotate signing keys

Keep access token lifetimes short and confirm that the identity provider issues tokens with the audience and issuer that the Temporal ClaimMapper expects. Rotate the signing keys on a schedule and confirm that the frontend picks up the new keys without an outage. Test an expired token, a token with the wrong audience and a token signed with a retired key.

Store client secrets outside configuration files

Client secrets for OIDC applications, worker identities and database credentials should live in a secrets manager or the platform's encrypted secret store, not in Helm values, Docker Compose files or source control. Limit read access to the services that need each secret, and record who can read or rotate them. Rotate any secret that appeared in a repository, log or ticket.

Add mTLS beside JWT checks

Mutual TLS authenticates the calling service at the transport layer, separately from the bearer token. Self-hosted Temporal supports mTLS with separate settings for internode and frontend traffic. Use mTLS for service-to-service links inside the cluster and for workers, and treat it as a complement to JWT checks, not a replacement for role mapping. Confirm which client certificates the frontend accepts and how certificate revocation is handled.

mTLS settings

How to test that access is granted and denied correctly

Test the access model before any team depends on it, because the default self-hosted setting is the opposite of what you want: with no Authorizer configured, Temporal uses the noopAuthorizer, which allows every API request. Start with the negative cases. Call the frontend API directly, without a token, and confirm the request is rejected. Then repeat with a valid token that carries no mapped namespace role, once for each namespace, and confirm the call is denied in every namespace where that user has no role. Finally, sign in as a user with the correct role and confirm that reads and writes succeed only in the namespaces that role grants. Record the identity, the namespace, the operation and the result for each case so the evidence can go to your security reviewers.

Token validation needs its own cases. Using a token that has expired, a token issued for a different audience, a token from an untrusted issuer and a token with a tampered signature, each should fail. Check the audience and issuer values against the configuration your ClaimMapper and identity provider actually use, and confirm with your identity team which claims the provider puts in the token. For the Web UI, test the full browser flow: an unauthenticated visit should redirect to the identity provider, a successful sign-in should land on the expected namespace view, and logout should end the session in both Temporal and the provider. Confirm that a logged-out browser cannot reuse the old session by reloading the page or calling the API with a cookie or token that remains cached.

Decide the failure behavior before go-live. If the identity provider is unavailable, new Web UI sign-ins will fail, and existing workers that authenticate with certificates or service tokens may or may not depend on the same provider, so confirm which of your clients refresh tokens and what happens when they cannot. Test this in a non-production cluster by blocking the provider and observing both human and worker access. Keep a documented break-glass path for operators, such as a small set of named accounts with certificate-based access held outside the identity provider, and test that it works and is audited. Confirm with your security team how break-glass credentials are stored, rotated and removed after use. Do not assume the path works until you have used it in a test.

What to monitor, back up and document after go-live

This table lists the identity and access controls to run after a self-hosted Temporal SSO and authorization setup goes live, with the evidence each one produces. Read each row as a recurring task with an owner, a trigger and a record an auditor can inspect. The main takeaway is that login and authorization decisions need the same ongoing attention as the configuration itself.

Control areaWhat to doEvidence to keep
Authorization denials and login failuresReview denied API calls and failed OIDC logins from the frontend and Web UI, and alert on sudden spikes for one namespace or identityLog exports, alert history and a record of each investigated denial
Token expiry and signing key rotationConfirm the identity provider's token lifetime and signing key rotation schedule, and test that Temporal accepts the rotated keys before old keys are retiredWritten rotation schedule, change tickets and test results from each rotation
Role mapping changesRequire review and approval for any change to ClaimMapper rules, Authorizer settings or identity provider group membership that feeds namespace rolesPull requests or change records with reviewer names and the before and after mapping
Identity provider configuration backupsExport and version the OIDC client settings, redirect URIs, group claims and Temporal server configuration on a fixed scheduleVersioned configuration exports stored outside the Temporal hosts, with restore tests
Claim-to-role matrix for auditorsMaintain a current matrix that maps each identity provider group or JWT claim to the Temporal namespace roles it grants, and review it on a set cadenceSigned matrix document, review dates and the list of owners who approved each mapping
Upgrade regression checkAfter each Temporal minor upgrade, retest ClaimMapper and Authorizer behavior with known test identities before returning the cluster to production useTest cases with expected and actual results, tied to the upgrade record
Default authorizer exposureConfirm that no environment still runs the default noopAuthorizer, which allows every API request, and check this during each reviewConfiguration snapshot per environment showing the active Authorizer

Questions teams ask before configuring Temporal SSO and authorization

Can our team configure Temporal SSO and authorization ourselves?

Yes, if you have engineers who can run Temporal in your own environment and an identity provider administrator who can register an OIDC client. The work is configuration rather than new software, but it touches the Web UI login, the frontend API, JWT validation, claim mapping and namespace permissions, so an error can either lock out operators or leave the API open. Teams that already operate Temporal, know their identity provider's token claims and can test access with real user accounts usually handle it in-house. Teams without that experience should weigh the risk of a misconfigured authorizer, which by default allows every request, before deciding to build it alone.

What drives the cost and effort of Temporal access control?

The main drivers are the number of namespaces, the number of distinct roles people need, how cleanly your identity provider already exposes groups or roles in tokens, and whether workers and services as well as humans authenticate. Effort rises when roles must be designed from scratch, when several identity providers or tenants are involved, or when audit and offboarding expectations are strict. Costs are mostly internal or partner labor for design, configuration, testing and documentation, plus any identity provider licensing you already pay for. Ask any partner for a quote that lists the namespaces in scope, the role model, the identity sources, the test cases and the handover material, since those items set the price.

How long does Temporal SSO and authorization take to set up?

The duration depends on how much of the design is already settled. A team with a documented role model, a registered OIDC application and a test tenant can move through configuration and testing in a short cycle. Timelines grow when role design, group mapping in the identity provider and namespace ownership decisions are still open, because those need agreement from security, platform and application owners. Plan for separate stages: design of roles and claims, configuration in a non-production cluster, negative testing that proves denied requests fail, and a controlled production rollout. Ask for a schedule tied to those stages rather than a single date.

What do our identity and platform teams need to provide?

The identity team needs to provide an OIDC application for the Temporal Web UI, the issuer and audience values, and the token claims that carry group or role membership. The platform team needs to provide the server configuration path, network access for the frontend and Web UI, certificates where mTLS is used, and a way to deploy changes through their normal pipeline. Both teams should agree who owns the mapping from identity groups to Temporal namespace roles and who approves changes to it. Security should review the authorizer design and the audit trail for role changes. Confirm each of these items with your own identity provider and platform setup before the project starts.

Do SAML and SCIM apply to self-hosted Temporal?

Self-hosted Temporal uses OIDC for Web UI single sign-on and JWT claims for API authorization, so SAML and SCIM are not the mechanisms for a self-hosted cluster. SAML SSO and SCIM provisioning are features of Temporal Cloud. If your organization requires SAML for a self-hosted deployment, the usual approach is to federate SAML into your identity provider and have it issue OIDC tokens to Temporal. Confirm with your identity provider whether that bridge fits your existing setup. Also confirm which Temporal Cloud plan includes SCIM, since the pricing page ties it to the Enterprise and Mission Critical support tiers.

Does using Temporal Cloud change the access control approach?

Yes. With Temporal Cloud, Temporal operates the service, so you no longer configure the frontend, ClaimMapper or Authorizer on servers you run. Access is handled through the managed service's identity features, including SAML SSO, with SCIM available on higher support tiers. You still need to design namespace roles, decide who can administer the account, and document offboarding. Managed-service terms, including SLAs and which identity features each plan includes, come from the Temporal pricing page, which is the right place to check current details before comparing options.

What should we verify before going live with Temporal authorization?

Verify that the default no-op authorizer has been replaced, since self-hosted Temporal allows every API request when no authorizer is configured. Test that a user without the right role is denied on each namespace, that expired or unsigned tokens are rejected, and that Web UI login works only through the intended identity provider. Confirm that the Temporal services are reachable only from trusted internal networks, as the deployment guidance recommends. Keep a record of test results, role mappings and approvals so the configuration can be reviewed later by security and compliance teams.

How DeployOpen works on this

DeployOpen scopes, builds and hands over access control for self-hosted Temporal inside your own infrastructure, covering OIDC single sign-on for the Web UI, claim mapping to namespace roles and the Authorizer configuration. Each engagement is fixed-scope, with the identity provider, claims, namespaces and roles agreed in writing before work starts.

How we scope

  • We confirm which identity provider, claims and namespaces the Temporal cluster must serve.
  • We map each team and service account to a named namespace role in a written access matrix.
  • We agree in writing whether Temporal Cloud SAML and SCIM are in or out of the work.

How we build

  • We configure OIDC single sign-on for the Web UI and verify token validation and session behavior.
  • We implement the ClaimMapper and Authorizer so JWT claims grant only the roles defined in the matrix.
  • We test denied, mis-scoped and expired-token requests against the live frontend before sign-off.

How we hand over

  • You receive configuration, the role matrix, and test results showing which requests were allowed and blocked.
  • We document how to add a namespace, change a role mapping and rotate signing keys.
  • We walk your security and platform engineers through the access model and the runbook.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after go-live.
  • Retests cover access changes made when Temporal server versions or identity provider settings change.
  • Support scope for access control is agreed in the written retainer, not assumed by default.

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.