Application environments (TenancyEngine)
OAuth clients and runtime endpoints per stage — Development, Staging, and Production. Each environment has its own client ID, redirect URIs, and optional webhook URL.
Console: Application workspace → Environments (/applications/:id/environments)
Add an environment
Choose the environment kind, client ID, authority URL, and optional API base URL. Redirect and post-logout URIs can be edited after creation.
Server OAuth secret
Rotate server secret issues a new confidential client secret for backend services. The plain secret is shown once — store it immediately.
This server client is for your own backend's sign-in flows. It cannot use the client_credentials grant: a token request for it returns unauthorized_client. For your backend calling TenancyEngine, use an organization API key. For a customer's server calling your API, issue a machine credential (see below).
API permissions
The permissions your own API accepts from customers' machine credentials, for example yourapp.accounts.read. Keys must start with your application slug and can never be a platform or sign-in scope. Customers can only be given permissions from this list. Deactivate stops new tokens that include the permission; it can be reactivated later. Needs Configure applications to change.
Credentials themselves are issued per customer on the tenant's Environment access tab. The full integration guide, including how your API verifies tokens with the .NET SDK, is in Customer machine access.
Public OAuth clients
Use Public OAuth clients (in Manage for the environment) to register a desktop, command-line or browser app that signs in with PKCE. A public client has no secret: it is identified by the client id shown after you register it, plus the exact redirect URIs you list. You need the permission to configure the application (organization administrators have it).
- Select Register public client.
- Enter a client name and one sign-in redirect URI per line. Sign-out redirect URIs are optional.
- Select Register client. The client id appears once at the top and stays in the list; use the copy button to take it into your app.
Accepted redirect URIs:
https://addresses.- A loopback address for a local app:
http://127.0.0.1:<port>/pathorhttp://[::1]:<port>/path. Register it without a port (http://127.0.0.1/path) and the app may listen on any free port; register it with a port and only that port is accepted. The path must match what you registered. - A private app scheme such as
com.example.app://auth/callback.
Not accepted: wildcards, fragments (#), embedded user names or passwords, localhost, and plain http to any other host. Fix the highlighted line and the button works again.
Edit changes the name and redirect URIs in place. Revoke stops the client from signing anyone in; it cannot be undone, so register a new client to restore access. Every register, edit and revoke is written to the audit log.
Loopback redirects are accepted on every environment because native apps cannot use anything else (RFC 8252). The TenancyEngine SDK is what limits their use: it refuses loopback sign-in outside local development, so a production build of your app only signs in over https.
Compare environments
Below the environment cards, Compare environments lays Development, Staging and Production side by side: whether each is set up, its sign-in and sign-out return addresses, event address, customer email mode, custom domains, and how many features and plans each has. Rows that differ between environments are shaded.
Above the table, a short list says what to fix before Production is ready, each with a link to the place where you fix it. Production is held up by a missing or turned-off environment, no return address or one that points to a local or non-secure address, an event address that is not secure, email that is not set to Live, or features and plans that exist earlier but have not been promoted. The view only reads. Promote changes from Features and Offerings.
Active flag
Disable an environment to block new token issuance without deleting configuration. Parent application lifecycle still gates tenant access.
Related
- Application settings — lifecycle and defaults
- Application features — contract per environment