---
title: Tessera
summary: Sign-in for the apps and agents you build: OpenID Connect, OAuth 2.1 and MCP authorization.
order: 0
---
Sign-in for the apps and agents you build: OpenID Connect, OAuth 2.1 and MCP authorization.

[Tessera](https://tessera.kurthlabs.ai) is the product; this is its documentation.

## Start here

- [Your first sign-in](/docs/start/first-sign-in.md): This page takes you from a Tessera invite to a working sign-in in your own app.
- [Tell your agent](/docs/start/tell-your-agent.md): You can ask your coding agent to add Tessera sign-in to your app with one sentence.
- [What is Tessera](/docs/start/what-is-tessera.md): Tessera is a sign-in service for the apps and agents you build, using standard OpenID Connect and OAuth 2.1.

## Concepts

- [Workspaces](/docs/concepts/workspaces.md): A workspace is your team's account with Tessera, and it owns the realms you create.
- [Realms](/docs/concepts/realms.md): A realm is one set of users, apps, keys and sign-in pages.
- [Apps](/docs/concepts/apps.md): An app is an OAuth client in a realm: the web app, API, agent or MCP server that asks Tessera to sign people in.
- [Roles and permissions](/docs/concepts/roles-and-permissions.md): Tessera puts a person's roles and permissions into their tokens, so your app can decide what they may do without calling back.
- [Sign-in methods](/docs/concepts/sign-in-methods.md): A realm decides how its people prove who they are, and Tessera enforces the choice on the server.
- [Themes](/docs/concepts/themes.md): A theme is the look of a realm's sign-in pages, emails and account pages.
- [Domains](/docs/concepts/domains.md): A realm can sign people in on your own address, such as login.example.com, instead of the shared Tessera address.

## Connect an app

- [Connect your app](/docs/connect/overview.md): Tessera speaks standard OpenID Connect and OAuth 2.1, so any certified OIDC library signs people in to your app with no Tessera SDK.
- [The sign-in flow](/docs/connect/sign-in-flow.md): Tessera uses the OAuth authorization code flow with PKCE (S256); this page shows each request and response, so you can check what your OIDC library sends.
- [Client types](/docs/connect/client-types.md): A client is the registration of your app in a realm; its type decides how it proves who it is and which settings you can change.
- [Logout](/docs/connect/logout.md): Signing out has two parts: ending your app's own session, and ending the person's Tessera session so their other apps sign out too.
- [Webhooks](/docs/connect/webhooks.md): A webhook subscription makes Tessera POST a signed JSON message to your server whenever a matching event happens in a realm, such as a user being created or disabled.
- [Helper libraries](/docs/connect/helpers.md): Sign-in itself is plain OpenID Connect, so use any certified library for it (the quickstarts use Auth.js, openid-client, go-oidc and Authlib). You need more only when your code has to check Tessera...

## Agents

- [Agents overview](/docs/agents/overview.md): Tessera gives software that acts without a person at the keyboard its own identity, so every token says who is acting and for whom, and you can narrow, limit and stop it.
- [Agent identities](/docs/agents/identities.md): How to create a service account, a delegated agent, or a whole fleet of agents, and what each one gets.
- [Acting for a person](/docs/agents/acting-for-a-person.md): How an agent gets a token that says "this person, acted for by this agent", and how agents pass a smaller token to other agents.
- [Workload identity](/docs/agents/workload-identity.md): How a CI job, a pod or a cloud service gets a short-lived Tessera token with no client secret, by proving where it runs.
- [Get and refresh tokens in code](/docs/agents/token-source.md): How an agent or backend job gets an access token, keeps it, and renews it, with plain HTTP and the standard library of your language.
- [Protect an MCP server](/docs/agents/protect-an-mcp-server.md): How to make an MCP server accept Tessera access tokens, how MCP clients find Tessera and register themselves, and how tokens stay bound to your server.
- [Revocation and the kill switch](/docs/agents/revocation-and-kill-switch.md): How to stop one agent, one app or every agent in a realm right now, and how your own servers find out within seconds.
- [Quotas and usage](/docs/agents/quotas-and-usage.md): How Tessera limits how fast an agent or client can ask for tokens, how to set those limits, and how to see what each agent was issued.

## Make it yours

- [Make it match your brand](/docs/customize/themes.md): This page shows how to change the look of your sign-in pages and emails.
- [Login domains](/docs/customize/login-domains.md): A login domain lets people sign in on your own address, such as login.example.com, with your DNS provider of choice.
- [Invites](/docs/customize/invites.md): An invite is a one-time link that lets a person join a workspace or a realm, optionally with roles already attached.
- [Sign-up agreements](/docs/customize/agreements.md): Sign-up agreements let a realm ask people to accept your terms and privacy policy, and keep a record of who accepted which version.

## Reference

- [Endpoints](/docs/reference/endpoints.md): Every protocol endpoint a Tessera realm serves, with its method, how it is authenticated and the parameters that matter.
- [Token claims](/docs/reference/claims.md): The claims in Tessera's ID tokens, access tokens and userinfo answer, and what each one means.
- [Error codes](/docs/reference/error-codes.md): Every failure Tessera reports has a stable code, an HTTP status, a cause and a fix, and the full list is published at /errors.
- [Webhook events](/docs/reference/webhook-events.md): The event types a webhook subscription can receive, when each one fires, and what its payload holds.
- [The tessera CLI](/docs/reference/cli.md): The tessera command-line tool registers apps, manages access and invites, and runs your realm from a terminal or a script.

## For agents

- [Reading these docs](/docs/for-agents/reading-these-docs.md): Every page of these docs is available as plain text, so a coding agent or a script can read it without scraping.
- [Setup steps](/docs/for-agents/setup-steps.md): These are the steps for adding Tessera sign-in to a project, written so that a person or a coding agent can follow them the same way.

## Quickstarts

- [Express with openid-client](/docs/quickstart/express.md): Sign users in to an Express app with Tessera, using the standard openid-client library and PKCE.
- [Go with go-oidc](/docs/quickstart/go.md): Sign users in to a Go web app with Tessera, using coreos/go-oidc and golang.org/x/oauth2 with PKCE.
- [Protect your MCP server](/docs/quickstart/mcp-server.md): Make your MCP server an OAuth 2.1 resource server that accepts Tessera access tokens. MCP clients (coding agents, Claude, Cursor) find Tessera from your server's metadata, sign the user in, and cal...
- [Next.js with Auth.js](/docs/quickstart/nextjs.md): Sign users in to a Next.js app with Tessera. About five minutes, three small files.
- [Python with Authlib](/docs/quickstart/python.md): Sign users in to a Flask app with Tessera, using Authlib and PKCE.
- [Switch to Tessera from your current sign-in](/docs/quickstart/replace-google.md): Keep your app, your pages, your sessions and your users, and point sign-in at Tessera. Auth.js is shown (Next.js; SvelteKit uses the same provider object), and the pattern is the same for any OpenI...
- [SvelteKit with Auth.js](/docs/quickstart/sveltekit.md): Sign users in to a SvelteKit app with Tessera. Two small files.
- [Switch to Tessera from your current sign-in](/docs/quickstart/switch-sign-in.md): Keep your app, your pages, your sessions and your users, and point sign-in at Tessera. Auth.js is shown (Next.js; SvelteKit uses the same provider object), and the pattern is the same for any OpenI...

## Error codes

- [Error codes](/errors/index.md): Every code Tessera reports: its HTTP status, cause and fix.
- [Access denied](/errors/access_denied.md): Code: accessdenied
- [Access token invalid](/errors/access_token_invalid.md): Code: accesstokeninvalid
- [acr_values not supported](/errors/acr_values_unsupported.md): Code: acrvaluesunsupported
- [App changed since it was read](/errors/app_changed.md): Code: appchanged
- [App clients are fixed for an app-scoped admin](/errors/app_clients_locked.md): Code: appclientslocked
- [App not found](/errors/app_not_found.md): Code: appnotfound
- [Assertion invalid](/errors/assertion_invalid.md): Code: assertioninvalid
- [Assertion replayed](/errors/assertion_replayed.md): Code: assertionreplayed
- [Assertion issuer not trusted](/errors/assertion_untrusted.md): Code: assertionuntrusted
- [Audience is not a valid API address](/errors/audience_invalid.md): Code: audienceinvalid
- [Audience not allowed for an app-scoped admin](/errors/audience_not_allowed.md): Code: audiencenotallowed
- 90 more in the menu
