Configuration
Cratis AuthProxy is configured entirely through the Cratis:AuthProxy section of appsettings.json
(or equivalent environment variables using the Cratis__AuthProxy__ prefix).
{ "Cratis": { "AuthProxy": { "Authentication": { ... }, "Authorization": { ... }, "Admission": { ... }, "TenantResolutions": [ ... ], "TenantVerification": { ... }, "Tenants": { ... }, "Services": { ... }, "Session": { ... }, "SignIn": { ... }, "OnBehalf": { ... }, "Logout": { ... }, "Ingress": { ... }, "Invite": { ... }, "Link": { ... }, "Management": { ... }, "GrpcListener": { ... }, "BackendTls": { ... }, "Profile": "Default", "Dpop": { ... }, "CredentialBinding": { ... }, "SearchIndexing": { ... }, "ActivityTimeout": "00:05:00", "PagesPath": "", "DataProtectionKeysPath": "", "DataProtection": { ... } } }}| Topic | Description |
|---|---|
| Authentication | OIDC providers, OAuth 2.0 providers such as GitHub, JWT Bearer configuration, and bearer routes for access tokens from an external authorization server. |
| Identity Token Exchange | Exchanging allow-listed external issuer tokens for tenant-bound Identity tokens on bearer routes. |
| Application Configuration Contract | Starting AuthProxy from a Screenplay model’s provider list and a Cratis environment’s values, including secrets from mounted files and the application’s Ante. |
| Authorization | Requiring a claim — a role, a group, a GitHub organization or team — before any request is forwarded. |
| Admission | Answering nothing at all until a caller presents a capability your own verifier admits, for a deployment whose existence is not meant to be discoverable. |
| On-behalf Sessions | Letting a support person or agent act on behalf of one user in one tenant, for one issue, while the application confirms a live grant. |
| Tenancy | How the auth proxy resolves the current tenant from each request, and how to verify tenant existence. |
| Credential Binding | Binding AuthProxy-issued credentials to a trusted resource and environment through CredentialBinding. |
| Tenant Selection Page | How selection-based tenant resolution works and how to build/override select-tenant.html. |
| Data Protection Keys | Sharing the key ring that encrypts sessions and tokens between replicas: a file system, Azure Blob Storage or Redis, with optional Azure Key Vault key protection. |
| Trusted Proxies | Which callers may speak for the client through X-Forwarded-For and X-Forwarded-Proto, and how many hops to follow. |
| Denied Paths | Refusing configured public-host path prefixes before routing or authentication. |
| DPoP Proof Verification | Opt-in OAuth-only route proof verification with trusted public origins, nonces and a fleet-shared Redis replay store. |
| Backend TLS | Client certificates, private CA trust and required HTTPS for backend connections (BackendTls), and the deployment Profile (Default, or LocalDevelopment on developer machines only). |
| Services | Routing requests to backend and frontend services, and the idle timeout that applies to proxied requests, WebSockets and SSE streams. |
| gRPC Services | Forwarding gRPC calls to a gRPC backend, including the opt-in HTTP/2-only GrpcListener behind an ingress that terminates TLS. |
| One Proxy, Several Hosts | Giving each application its own host behind one AuthProxy and one sign-in, with a shared session cookie and a single identity-provider callback. |
| Telemetry | OpenTelemetry traces and metrics, exported only when an OTLP endpoint is configured. |
| Management Listener | An opt-in private listener carrying liveness and readiness endpoints, so a probe tests more than “a process accepted a socket”. |
| Code Sign-in | Signing people in with a one-time code AuthProxy issues and the application delivers (Type: Code). |
| Credential Linking | Letting a signed-in user link another identity-provider login to their account (Link). |
| Search-Index Exclusion | Asking search engines to keep AuthProxy hosts out of their indexes (SearchIndexing). |
| Lobby | Invite and registration flows that hand users off to the lobby experience. |
| Well-Known Pages | Built-in HTML pages (provider selection, errors, tenant not found) and how to override them via a mounted volume. |