Settings Sso Oidc
Operations about OIDC SSO settings
Retrieve the current OIDC SSO configuration, including every field exposed in the UI. The client secret is redacted on read and is never echoed back in plaintext. Requires the oidc:manage scope and the OIDC feature to be licensed.
Operation successful.
The client ID issued when registering n8n with the OIDC provider.
n8n-clientThe client secret issued when registering n8n with the OIDC provider. Redacted on read when set; never echoed back in plaintext.
**hidden**The OIDC provider's well-known discovery endpoint.
https://accounts.google.com/.well-known/openid-configurationWhether OIDC single sign-on is enabled.
falseThe prompt parameter to use when authenticating with the OIDC provider.
select_accountPossible values: ACR values to include in the authorization request (acr_values parameter), in order of preference.
["mfa","pwd"]Additional scopes to request, space separated. n8n always requests openid, profile and email.
groups rolesWhether the identity provider must assert that the user's email address is verified before the login is accepted. When disabled, only an explicit negative assertion is rejected.
falseWhether signing out of n8n also ends the session at the OIDC provider via RP-Initiated Logout. When disabled, sign-out is local to n8n only.
falseUnauthorized
Forbidden
GET /api/v1/settings/sso/oidc HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
"clientId": "n8n-client",
"clientSecret": "**hidden**",
"discoveryEndpoint": "https://accounts.google.com/.well-known/openid-configuration",
"loginEnabled": false,
"prompt": "select_account",
"authenticationContextClassReference": [
"mfa",
"pwd"
],
"additionalScopes": "groups roles",
"emailVerifiedRequired": false,
"rpInitiatedLogoutEnabled": false
}Set the OIDC SSO configuration. The update takes effect exactly as it would from the UI, using the same validation. clientId, clientSecret and discoveryEndpoint are required; submit the redacted client secret sentinel to keep the stored secret unchanged. Requires the oidc:manage scope and the OIDC feature to be licensed. The client secret is redacted in the response. When the configuration is managed declaratively (via environment variables), the write is rejected with 409 and no changes are made.
Full OIDC SSO configuration to set. This is a full replacement: every writable field must be provided. Partial updates are rejected. Submit the redacted secret sentinel for clientSecret to keep the stored secret unchanged.
The client ID issued when registering n8n with the OIDC provider.
n8n-clientThe client secret issued when registering n8n with the OIDC provider. Submit the redacted sentinel value returned on read to keep the stored secret unchanged.
my-client-secretThe OIDC provider's well-known discovery endpoint.
https://accounts.google.com/.well-known/openid-configurationWhether OIDC single sign-on is enabled.
falseThe prompt parameter to use when authenticating.
select_accountPossible values: ACR values to include in the authorization request (acr_values parameter), in order of preference. Use an empty array when unused.
["mfa","pwd"]Additional scopes to request, space separated. n8n always requests openid, profile and email. Use an empty string when unused.
groups rolesWhether the identity provider must assert that the user's email address is verified before the login is accepted. When disabled, only an explicit negative assertion is rejected.
falseWhether signing out of n8n also ends the session at the OIDC provider via RP-Initiated Logout. When disabled, sign-out is local to n8n only.
falseOperation successful.
The client ID issued when registering n8n with the OIDC provider.
n8n-clientThe client secret issued when registering n8n with the OIDC provider. Redacted on read when set; never echoed back in plaintext.
**hidden**The OIDC provider's well-known discovery endpoint.
https://accounts.google.com/.well-known/openid-configurationWhether OIDC single sign-on is enabled.
falseThe prompt parameter to use when authenticating with the OIDC provider.
select_accountPossible values: ACR values to include in the authorization request (acr_values parameter), in order of preference.
["mfa","pwd"]Additional scopes to request, space separated. n8n always requests openid, profile and email.
groups rolesWhether the identity provider must assert that the user's email address is verified before the login is accepted. When disabled, only an explicit negative assertion is rejected.
falseWhether signing out of n8n also ends the session at the OIDC provider via RP-Initiated Logout. When disabled, sign-out is local to n8n only.
falseThe request is invalid or provides malformed data.
Unauthorized
Forbidden
Conflict
Unsupported media type.
PUT /api/v1/settings/sso/oidc HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 338
{
"clientId": "n8n-client",
"clientSecret": "my-client-secret",
"discoveryEndpoint": "https://accounts.google.com/.well-known/openid-configuration",
"loginEnabled": false,
"prompt": "select_account",
"authenticationContextClassReference": [
"mfa",
"pwd"
],
"additionalScopes": "groups roles",
"emailVerifiedRequired": false,
"rpInitiatedLogoutEnabled": false
}{
"clientId": "n8n-client",
"clientSecret": "**hidden**",
"discoveryEndpoint": "https://accounts.google.com/.well-known/openid-configuration",
"loginEnabled": false,
"prompt": "select_account",
"authenticationContextClassReference": [
"mfa",
"pwd"
],
"additionalScopes": "groups roles",
"emailVerifiedRequired": false,
"rpInitiatedLogoutEnabled": false
}Last updated
Was this helpful?