Sign-in and organizations

Customer sign-in and a workspace for every customer

Your app signs people in with standard OpenID Connect. Each of your customers gets its own workspace with its own members, and every sign-in tells your app which workspace the person is working in.

Sign-in on every plan. Customer workspaces: 5 on Starter, 50 on Growth, unlimited on Scale.

What you get

Standard OpenID Connect

Authorization code flow with PKCE, refresh tokens, and a discovery document at /.well-known/openid-configuration. Any OpenID Connect library works. Your app is a public client, so there is no client secret to store.

MFA and passkeys

The people who use your product can protect their sign-in with an authenticator app, a code sent by email, or a code sent by text message, and they can sign in with a passkey.

A workspace for every customer

Create a workspace from your backend when a customer signs up, and let people invite their teammates. Each workspace has its own members, roles, and plan.

Support access when you need it

Support staff can step into a customer view from the console to see what the customer sees. This starts on Growth.

How it works

1

Register your app in the console and copy its slug.

2

Point your OpenID Connect library at the issuer and sign in with PKCE.

3

Create a workspace for each new customer from your backend.

In your code

These calls come from the TenancyEngine.Sdk package on NuGet. Every capability is also a REST API, so any language that can make an HTTPS request can use it.

Sign people in (ASP.NET Core)
// dotnet add package Microsoft.AspNetCore.Authentication.OpenIdConnect
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Authentication.OpenIdConnect;
using TenancyEngine.Sdk.Oidc;

builder.Services
    .AddAuthentication(options =>
    {
        options.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme;
        options.DefaultChallengeScheme = OpenIdConnectDefaults.AuthenticationScheme;
    })
    .AddCookie()
    .AddOpenIdConnect(options =>
    {
        options.Authority = "https://auth.saasruntime.com";
        options.ClientId = "my-app"; // from the console, or RuntimeContext.ClientId
        options.ResponseType = TenancyEngineOidcContract.ResponseType;
        options.UsePkce = TenancyEngineOidcContract.RequiresPkce;
        options.CallbackPath = TenancyEngineOidcContract.CallbackPath;
        options.SignedOutCallbackPath = TenancyEngineOidcContract.SignedOutCallbackPath;
        options.Scope.Clear();
        foreach (var scope in TenancyEngineOidcContract.Scopes)
            options.Scope.Add(scope);
        options.MapInboundClaims = false; // keep "sub" as "sub"
        options.SaveTokens = true;
        // No ClientSecret: the sign-in client is a public client that uses PKCE.
    });
Create a workspace for a new customer
// A new customer signs up: give them their own workspace.
var tenant = await te.CreateTenantAsync("my-app",
    new CreateTenantRequest(body.CompanyName, body.Slug), ct);

What to know before you build on it

  • SAML single sign-on is not available. If your first customers require it, use a specialist identity vendor for that part. SCIM 2.0 directory sync is available.
  • Starter runs in Production only. Separate development and staging environments start on Growth.
  • The SDK is for .NET today. Other languages call the REST API.

Questions developers ask

Do I have to run an identity server?

No. TenancyEngine is the identity provider. Your app needs an OpenID Connect client pointed at https://auth.saasruntime.com.

Which OpenID Connect settings does my app use?

The authorization code flow with PKCE (S256) and no client secret. The default callback path is /signin-oidc, and the scopes are openid, profile, email, and api.

Is there a free tier?

Yes. Starter is free and includes sign-in, one app, and up to five customer workspaces in Production.

Try it on the free Starter plan

One app and up to five customer workspaces. Upgrade when you need more.

Request access