enable_app_auth
Provision per-app OIDC auth + auto-publish OF_AUTH_* into env.
M1 flow:
Verify caller owns the app
Service.enable() creates realm + client (stub mode by default)
App.auth block persisted (NO client_secret — that's in env only)
Publish OF_AUTH_ISSUER + OF_AUTH_CLIENT_ID + OF_AUTH_CLIENT_SECRET + OF_AUTH_JWKS_URL via the producer API
Return {realm, client_id, issuer_url, jwks_url, env_published, env_keys}. When OPENFACTORY_AUTH_PRODUCER_TOKEN is unset, returns client_secret + env_payload inline (one-shot — discard after use).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app_id": "<app_id>"
},
"name": "enable_app_auth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | App ID (UUID from create_app). | |
| api_key | No | MCP API key | |
| providers | No | OIDC sub-providers to enable. Default ['password']. Valid: password, google, github. | |
| session_token | No | Session token |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||