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.
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.
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.
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.
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 staff can step into a customer view from the console to see what the customer sees. This starts on Growth.
Register your app in the console and copy its slug.
Point your OpenID Connect library at the issuer and sign in with PKCE.
Create a workspace for each new customer from your backend.
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.
// 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.
});// A new customer signs up: give them their own workspace.
var tenant = await te.CreateTenantAsync("my-app",
new CreateTenantRequest(body.CompanyName, body.Slug), ct);No. TenancyEngine is the identity provider. Your app needs an OpenID Connect client pointed at https://auth.saasruntime.com.
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.
Yes. Starter is free and includes sign-in, one app, and up to five customer workspaces in Production.
One app and up to five customer workspaces. Upgrade when you need more.
Request access