Configuration
Publish the file with php artisan vendor:publish --tag=flowcatalyst-config. Everything below lives
in config/flowcatalyst.php and is read through config('flowcatalyst.<key>'). Defaults are taken
from the file shipped in 0.18.0.
Connection and credentials
Section titled “Connection and credentials”| Key | Env var | Default | Purpose |
|---|---|---|---|
base_url |
FLOWCATALYST_BASE_URL |
https://api.flowcatalyst.io |
Platform URL. Also the OIDC issuer and JWKS source. |
client_id |
FLOWCATALYST_CLIENT_ID |
none | Service-account client id (client_credentials). |
client_secret |
FLOWCATALYST_CLIENT_SECRET |
none | Service-account secret. |
token_url |
FLOWCATALYST_TOKEN_URL |
{base_url}/oauth/token |
Override the token endpoint. |
application_code |
FLOWCATALYST_APP_CODE |
none | Application that owns your definitions; default for flowcatalyst:sync. |
client |
FLOWCATALYST_CLIENT |
none | Default client identifier. |
token_cache.driver |
FLOWCATALYST_TOKEN_CACHE_DRIVER |
file |
Cache store for the service-account access token. |
token_cache.key |
FLOWCATALYST_TOKEN_CACHE_KEY |
flowcatalyst_access_token |
Cache key. |
http.timeout |
FLOWCATALYST_TIMEOUT |
30 |
Request timeout, seconds. |
http.retry_attempts |
FLOWCATALYST_RETRY_ATTEMPTS |
3 |
Total attempts for a transient failure; 1 turns retries off. |
http.retry_delay |
FLOWCATALYST_RETRY_DELAY |
100 |
Base delay in milliseconds, multiplied by the attempt number. |
HTTP 408 and 429 and a connection that was never made are retried for every request. HTTP 502, 503,
504 and a transport failure after the request was sent are retried only for a repeatable request (GET,
HEAD, OPTIONS, PUT, DELETE, and the POSTs the SDK marks repeatable); any other request throws
OutcomeUnknownException and is not sent again. Any other status, including 500, is thrown on the first
attempt. See Control plane.
Webhooks
Section titled “Webhooks”| Key | Env var | Default | Purpose |
|---|---|---|---|
signing_secret |
FLOWCATALYST_SIGNING_SECRET |
none | HMAC secret for inbound deliveries. Validation fails closed when unset. |
webhook_auth_token |
FLOWCATALYST_WEBHOOK_AUTH_TOKEN |
none | Optional second gate: when set, the fc-signature middleware requires this bearer token as well as the signature. |
See Webhooks.
OIDC login (oidc.*)
Section titled “OIDC login (oidc.*)”| Key | Env var | Default |
|---|---|---|
enabled |
FLOWCATALYST_OIDC_ENABLED |
false |
native_login |
FLOWCATALYST_NATIVE_LOGIN |
false |
client_id |
FLOWCATALYST_OIDC_CLIENT_ID |
none |
client_secret |
FLOWCATALYST_OIDC_CLIENT_SECRET |
none (omit for a PKCE-only public client) |
scope |
FLOWCATALYST_OIDC_SCOPE |
openid profile email |
provider |
FLOWCATALYST_OIDC_PROVIDER |
none (an idp_... id) |
client |
FLOWCATALYST_OIDC_CLIENT |
none (client identifier for login branding) |
portal |
FLOWCATALYST_OIDC_PORTAL |
false |
login_route |
FLOWCATALYST_OIDC_LOGIN_ROUTE |
/flowcatalyst/login |
callback_route |
FLOWCATALYST_OIDC_CALLBACK_ROUTE |
/flowcatalyst/callback |
logout_route |
FLOWCATALYST_OIDC_LOGOUT_ROUTE |
/flowcatalyst/logout |
refresh_route |
FLOWCATALYST_OIDC_REFRESH_ROUTE |
/flowcatalyst/refresh |
redirect_after_login |
FLOWCATALYST_REDIRECT_AFTER_LOGIN |
/dashboard |
redirect_after_logout |
FLOWCATALYST_REDIRECT_AFTER_LOGOUT |
/ |
error_redirect |
FLOWCATALYST_ERROR_REDIRECT |
/ |
handler |
FLOWCATALYST_OIDC_HANDLER |
unset: database when native_login is on, otherwise session |
user_model |
FLOWCATALYST_OIDC_USER_MODEL |
App\Models\User |
remember_login |
FLOWCATALYST_OIDC_REMEMBER_LOGIN |
false |
sync_roles |
FLOWCATALYST_OIDC_SYNC_ROLES |
true |
sync_roles_mode |
FLOWCATALYST_OIDC_SYNC_ROLES_MODE |
additive (or replace) |
create_missing_roles |
FLOWCATALYST_OIDC_CREATE_MISSING_ROLES |
false |
roles_guard |
FLOWCATALYST_OIDC_ROLES_GUARD |
web |
sync_role_permissions |
FLOWCATALYST_OIDC_SYNC_ROLE_PERMISSIONS |
true |
role_permissions_cache_ttl |
FLOWCATALYST_OIDC_ROLE_PERMISSIONS_CACHE_TTL |
300 seconds |
permission_resolver |
FLOWCATALYST_OIDC_PERMISSION_RESOLVER |
token (or api_me) |
auto_guest_redirect |
FLOWCATALYST_OIDC_AUTO_GUEST_REDIRECT |
true (only active with native_login) |
single_logout |
FLOWCATALYST_OIDC_SINGLE_LOGOUT |
false |
token_fallback_middleware |
none | [] (middleware names tried by fc.or-passport) |
me_cache_ttl_seconds |
FLOWCATALYST_OIDC_ME_CACHE_TTL |
60 |
me_cache_driver |
FLOWCATALYST_OIDC_ME_CACHE_DRIVER |
default cache store |
session_refresh_leeway_seconds |
FLOWCATALYST_OIDC_SESSION_REFRESH_LEEWAY |
30 |
check_revocation |
FLOWCATALYST_OIDC_CHECK_REVOCATION |
false |
revocation_cache_ttl_seconds |
FLOWCATALYST_OIDC_REVOCATION_CACHE_TTL |
60 (clamped to 5 to 600) |
revocation_cache_driver |
FLOWCATALYST_OIDC_REVOCATION_CACHE_DRIVER |
default cache store |
middleware |
none | ['web'] |
exclude_middleware |
none | [] |
Notes:
single_logout: logout goes through the platform’s end-session endpoint. Theredirect_after_logoutURL is sent aspost_logout_redirect_uriand must be in the OAuth client’s post-logout redirect list on the platform.check_revocation: asks the platform per principal (cached) whether the session is still valid, so revocation bites faster than the access token’s expiry. Off by default because it is an extra HTTP call.session_refresh_leeway_seconds: a session principal is capped to its access token’s expiry and silently refreshed this many seconds before it, so a request at the boundary is not caught out.exclude_middleware: auth middleware is already excluded from the OIDC routes; add names here if a custom middleware still interferes.
Usage is explained in Auth.
Definitions (definitions.*)
Section titled “Definitions (definitions.*)”| Key | Env var | Default | Purpose |
|---|---|---|---|
paths |
none | [app_path('FlowCatalyst')] |
Directories scanned for attributed classes. |
cache_path |
none | storage_path('flowcatalyst') |
Where flowcatalyst:scan caches results. |
application_map |
none | [] |
Namespace prefix to application code (longest prefix wins). |
set_providers |
none | [] |
Classes implementing ProvidesSyncDefinitionSets for programmatic sets. |
seed_spatie |
FLOWCATALYST_SEED_SPATIE |
true |
Mirror synced roles into Spatie tables when installed. |
Scheduled jobs, subscriptions, push
Section titled “Scheduled jobs, subscriptions, push”| Key | Env var | Default | Purpose |
|---|---|---|---|
scheduled_jobs.register_route |
FLOWCATALYST_SCHEDULED_JOBS_ROUTE |
true |
Register the SDK’s firing route. Set false to mount your own, guarded by fc-signature. |
scheduled_jobs.process_url |
FLOWCATALYST_SCHEDULED_JOBS_PROCESS_URL |
derived from APP_URL |
Full URL the platform posts firings to. |
scheduled_jobs.auto_handlers |
FLOWCATALYST_SCHEDULED_JOBS_AUTO_HANDLERS |
true |
Auto-wire #[AsScheduledJob] classes that have handle(array $envelope, callable $log). |
subscriptions.target_base_url |
FLOWCATALYST_SUBSCRIPTION_TARGET_BASE_URL |
none | Base URL prefixed to relative subscription targets at sync. |
push.rules |
none | [] |
Topic rules synced by flowcatalyst:sync --push. |
push.ticket_key |
FLOWCATALYST_PUSH_TICKET_KEY |
none | kid:base64url-seed Ed25519 key for minting tickets. |
push.previous_ticket_keys |
FLOWCATALYST_PUSH_PREVIOUS_TICKET_KEYS |
none | Retired keys still advertised for verification. |
The scheduled-job signature covers the raw request body, so keep the route out of body-mutating middleware groups. See Scheduled jobs.
Outbox (outbox.*)
Section titled “Outbox (outbox.*)”| Key | Env var | Default |
|---|---|---|
enabled |
FLOWCATALYST_OUTBOX_ENABLED |
true |
driver |
FLOWCATALYST_OUTBOX_DRIVER |
database |
connection |
FLOWCATALYST_OUTBOX_CONNECTION |
application default connection |
table |
FLOWCATALYST_OUTBOX_TABLE |
outbox_messages |
tenant_id |
FLOWCATALYST_TENANT_ID |
none |
audit_enabled |
FLOWCATALYST_OUTBOX_AUDIT_ENABLED |
false |
client_code |
FLOWCATALYST_CLIENT_CODE |
none |
client_id |
FLOWCATALYST_OUTBOX_CLIENT_ID |
none |
default_partition |
FLOWCATALYST_DEFAULT_PARTITION |
default |
strict_transactions |
FLOWCATALYST_OUTBOX_STRICT_TRANSACTIONS |
false |
warn_outside_transaction |
FLOWCATALYST_OUTBOX_WARN_OUTSIDE_TRANSACTION |
true |
warn_outside_transaction (0.27.0) controls the warning a database-driver write logs when it is made
outside DB::transaction(...); set it to false to silence it. strict_transactions wins: with it on,
such a write still throws. Outbox rows are stamped in UTC with milliseconds; see
Database.
See Outbox.
Field workers (field.*)
Section titled “Field workers (field.*)”| Key | Env var | Default |
|---|---|---|
app_code |
FLOWCATALYST_FIELD_APP_CODE |
none |
app_base_url |
FLOWCATALYST_FIELD_APP_BASE_URL |
APP_URL |
proof_max_age_seconds |
FLOWCATALYST_FIELD_PROOF_MAX_AGE |
300 |
clock_skew_seconds |
FLOWCATALYST_FIELD_CLOCK_SKEW |
60 |
See Field.