Skip to content
TesseraDocs
MenuConnect your app

Connect your app

Tessera speaks standard OpenID Connect and OAuth 2.1, so any certified OIDC library signs people in to your app with no Tessera SDK.

View as Markdown

On this page

Tessera speaks standard OpenID Connect and OAuth 2.1, so any certified OIDC library signs people in to your app with no Tessera SDK.

No SDK required

Your app needs three values. Give them to the OIDC library you already use.

Value Where it comes from Example
Issuer Your realm's address https://login.kurthlabs.com/realms/acme
Client ID The app you registered acme-web
Client secret Shown once when the app is created (confidential apps only) kept in .env.local, never in code

A plain sign-in needs no resource parameter and no other Tessera-specific setting. The library reads everything else (endpoints, signing keys, supported features) from the issuer's discovery document at <issuer>/.well-known/openid-configuration. See The sign-in flow for each request and response.

A realm can also have its own login domain. Then the issuer is that domain with no path, for example https://login.acme.example. Always copy the issuer from your app's settings or from tessera init, and never build it by hand.

The shortest path

  1. Run tessera init in your project. It registers the app, writes the three values to an env file and prints working code for your stack.
  2. Or follow a quickstart: Next.js, SvelteKit, Express, Go, Python.
  3. Protecting an MCP server instead? Read Protect an MCP server.
  4. Moving off another sign-in (Google, Auth0, Clerk, Firebase, Cognito or your own passwords)? Read Switch to Tessera from your current sign-in.

What you still decide

  • Client type. Public (browser or mobile, no secret) or confidential (server, has a secret). See Client types.
  • Sign-out. Ending your own session is not the same as ending the person's Tessera session. See Logout.
  • Events. Webhooks tell your backend when a user is created, disabled or deleted. See Webhooks.

Helper libraries

Go and TypeScript helper libraries for the parts that are easy to get wrong (validating access tokens in an API, back-channel logout tokens, webhook signatures) are planned and not published yet. You never need them to sign people in. Helper libraries shows how to do each job today with standard libraries.

Reference