Service key
The JSON file you download for an app. See Create an app for how to get it.
| Field | Required | Description |
|---|---|---|
client_id | yes | OAuth client identifier of the app |
client_secret | yes | The service-key secret. Never commit or ship it |
token_uri | yes | Token endpoint, https://auth.<domain>/oauth/token |
issuer | for verify and URL derivation | Expected iss of tokens, https://auth.<domain> |
auth_uri | for beginFlow | Authorization endpoint, <issuer>/oauth/authorize |
jwks_uri | for verify | Public keys, <issuer>/oauth/.well-known/jwks.json |
cloud_stack | no | Base domain override, e.g. scenid.cloud or scenid-cloud.local:8080 |
ssl | no | false = use http (local development). Default true |
service-key.json
{
"client_id": "5b8c1f0e-9a41-4d0b-9f5f-0c1a2b3c4d5e",
"client_secret": "<64 hex characters>",
"issuer": "https://auth.scenid.cloud",
"auth_uri": "https://auth.scenid.cloud/oauth/authorize",
"token_uri": "https://auth.scenid.cloud/oauth/token",
"jwks_uri": "https://auth.scenid.cloud/oauth/.well-known/jwks.json",
"cloud_stack": "scenid.cloud"
}
Rotate the key
Generating a new service key in the admin UI invalidates the previous one immediately. Deploy the new file before you generate it, or accept a short outage.
Storing it
| Environment | Recommendation |
|---|---|
| Local dev | File outside version control, listed in .gitignore |
| CI | Secret variable, SCENID_SERVICE_KEY as JSON text |
| Containers, serverless | Secret manager, mounted as file or env variable |