You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Settings class: `AuthSettings`. Both fields are required — no defaults. Only needed when using
213
+
Settings class: `AuthSettings`. All fields are optional with defaults unless `enabled=True`, which
214
+
activates several cross-field requirements. Only needed when using
214
215
`aignostics_foundry_core.api.auth` dependencies.
215
216
216
-
| Variable | Required | Description |
217
-
|---|---|---|
218
-
|`{PREFIX}AUTH_INTERNAL_ORG_ID`| yes | Auth0 organization ID identifying the internal org (used by `require_internal`). |
219
-
|`{PREFIX}AUTH_AUTH0_ROLE_CLAIM`| yes | JWT claim name containing the user's role (e.g. `https://myapp.example.com/roles`). |
217
+
| Variable | Required | Default | Description |
218
+
|---|---|---|---|
219
+
|`{PREFIX}AUTH_ENABLED`| no |`false`| Enable Auth0 authentication. When `true`, several other fields become required. |
220
+
|`{PREFIX}AUTH_SESSION_ENABLED`| when enabled |`false`| Enable session cookies. Required when `AUTH_ENABLED=true`. |
221
+
|`{PREFIX}AUTH_SESSION_SECRET`| when session enabled |`""`| Secret to sign session cookies. Required when `AUTH_SESSION_ENABLED=true`. |
222
+
|`{PREFIX}AUTH_SESSION_EXPIRATION`| no |`86400`| Session cookie expiration in seconds (range: 61–31536000). |
223
+
|`{PREFIX}AUTH_DOMAIN`| when enabled |`""`| Auth0 domain (e.g. `myapp.eu.auth0.com`). Required when `AUTH_ENABLED=true`. |
224
+
|`{PREFIX}AUTH_CLIENT_ID`| when enabled |`""`| Auth0 client ID (max 32 chars). Required when `AUTH_ENABLED=true`. |
225
+
|`{PREFIX}AUTH_CLIENT_SECRET`| when enabled |`""`| Auth0 client secret (64 chars). Required when `AUTH_ENABLED=true`. |
226
+
|`{PREFIX}AUTH_INTERNAL_ORG_ID`| when enabled |`""`| Auth0 organization ID identifying the internal org (used by `require_internal`). Required when `AUTH_ENABLED=true`. |
227
+
|`{PREFIX}AUTH_ROLE_CLAIM`| when enabled |`""`| JWT claim name containing the user's role (e.g. `https://myapp.example.com/roles`). Required when `AUTH_ENABLED=true`. |
0 commit comments