Skip to main content

Service key

The JSON file you download for an app. See Create an app for how to get it.

FieldRequiredDescription
client_idyesOAuth client identifier of the app
client_secretyesThe service-key secret. Never commit or ship it
token_uriyesToken endpoint, https://auth.<domain>/oauth/token
issuerfor verify and URL derivationExpected iss of tokens, https://auth.<domain>
auth_urifor beginFlowAuthorization endpoint, <issuer>/oauth/authorize
jwks_urifor verifyPublic keys, <issuer>/oauth/.well-known/jwks.json
cloud_stacknoBase domain override, e.g. scenid.cloud or scenid-cloud.local:8080
sslnofalse = 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​

EnvironmentRecommendation
Local devFile outside version control, listed in .gitignore
CISecret variable, SCENID_SERVICE_KEY as JSON text
Containers, serverlessSecret manager, mounted as file or env variable