Docs/Get started

Provisioning

Provisioning takes two steps on the managed service. First you put Thoryn on a domain by creating your workspace. Then you register the client application that signs users in.

A tenant is your isolated part of the platform, also called your workspace. An application is an OAuth 2.0 and OIDC client: the app whose users sign in through Thoryn.

Thoryn is in early access. We set up your workspace and your first application together with you. Get in touch to start.

Step 1: Put Thoryn on a domain

Choose a name for your workspace. We create your tenant with that name. Every later configuration step happens inside this workspace, isolated from every other tenant.

The workspace name becomes your own hostname and OIDC issuer: https://<name>.auth.…. The same host serves your users' sign-in screens. The name must be a lower-case DNS label (letters, digits and hyphens, 3 to 63 characters) that is not yet taken. Reserved platform names such as login, account, admin, api and www cannot be used.

Step 2: Register a client

Register the application your users sign in to. You need:

  • a display name, for example My First App;
  • one or more redirect URIs, where Thoryn returns the user after sign-in. For example https://app.example.com/login/oauth2/code/thoryn, or http://localhost:8080/login/oauth2/code/thoryn for local development;
  • a client type: confidential for a server-side app (you get a secret), or public for a SPA or native app (no secret, PKCE required);
  • the scopes to grant: at least openid, plus profile, email and offline_access as needed.

You receive a clientId and, for a confidential client, a clientSecret. The secret is shown exactly once. Store it right away. If you lose it, rotate it.

The registration is done with POST /api/v1/applications. Field details, client types and redirect URI rules are in Integrate an application.

Your first sign-in

Your app now has everything it needs. Fetch /.well-known/openid-configuration from your workspace issuer and use the endpoints it lists. Then run the authorization request, the token exchange and UserInfo with the clientId and the secret or PKCE verifier. The exact requests are in Integrate an application.

Security notes

  • Every request is limited to your own workspace. Access to another tenant's data returns 404.
  • Client secrets are shown once and stored only as a hash.
  • Every configuration change writes a tamper-evident row in your workspace's audit trail.