Get OIDC auth settings
GET/api/admin/auth/oidc/settings
Returns the current settings for OIDC Authentication
Responses
- 200
- 400
- 401
- 403
oidcSettingsResponseSchema
- application/json
- Schema
- Example (from schema)
Schema
Whether to enable or disable OpenID Connect for this instance
Possible values: [true]
truehttps://myoidchost.azure.com/.well-known/openid-configurationThe OIDC client ID of this application.
FB87266D-CDDB-4BCF-BB1F-8392FD0EDC1BShared secret from OpenID server. Used to authenticate login requests
qjcVfeFjEfoYAF3AEsX2IMUWYuUzAbXOAuto create users based on email addresses from login tokens
Support Single sign out when user clicks logout in Unleash. If true user is signed out of all OpenID Connect sessions against the clientId they may have active
Default role granted to users auto-created from email. Only relevant if autoCreate is true
Possible values: [Viewer, Editor, Admin]
Assign this root role to auto created users. Should be a role ID and takes precedence over defaultRootRole.
2Comma separated list of email domains that are automatically approved for an account in the server. Only relevant if autoCreate is true
getunleash.io,getunleash.aiAuthentication Context Class Reference, used to request extra values in the acr claim returned from the server. If multiple values are required, they should be space separated. Consult the OIDC reference for more information
urn:okta:loa:2fa:any phrThe signing algorithm used to sign our token. Refer to the JWT signatures documentation for more information.
Possible values: [RS256, RS384, RS512]
RS256Should we enable group syncing. Refer to the documentation Group syncing
falseSpecifies the path in the OIDC token response to read which groups the user belongs to from.
groupsWhen enabled Unleash will also request the 'groups' scope as part of the login request.
false{
"enabled": true,
"discoverUrl": "https://myoidchost.azure.com/.well-known/openid-configuration",
"clientId": "FB87266D-CDDB-4BCF-BB1F-8392FD0EDC1B",
"secret": "qjcVfeFjEfoYAF3AEsX2IMUWYuUzAbXO",
"autoCreate": true,
"enableSingleSignOut": true,
"defaultRootRole": "Viewer",
"defaultRootRoleId": 2,
"emailDomains": "getunleash.io,getunleash.ai",
"acrValues": "urn:okta:loa:2fa:any phr",
"idTokenSigningAlgorithm": "RS256",
"enableGroupSyncing": false,
"groupJsonPath": "groups",
"addGroupsScope": false
}
The request data does not match what we expect.
- application/json
- Schema
- Example (from schema)
Schema
The ID of the error instance
9c40958a-daac-400e-98fb-3bb438567008The name of the error kind
ValidationErrorA description of what went wrong.
The request payload you provided doesn't conform to the schema. The .parameters property should be object. You sent [].{
"id": "9c40958a-daac-400e-98fb-3bb438567008",
"name": "ValidationError",
"message": "The request payload you provided doesn't conform to the schema. The .parameters property should be object. You sent []."
}
Authorization information is missing or invalid. Provide a valid API token as the authorization header, e.g. authorization:*.*.my-admin-token.
- application/json
- Schema
- Example (from schema)
Schema
The ID of the error instance
9c40958a-daac-400e-98fb-3bb438567008The name of the error kind
AuthenticationRequiredA description of what went wrong.
You must log in to use Unleash. Your request had no authorization header, so we could not authorize you. Try logging in at /auth/simple/login.{
"id": "9c40958a-daac-400e-98fb-3bb438567008",
"name": "AuthenticationRequired",
"message": "You must log in to use Unleash. Your request had no authorization header, so we could not authorize you. Try logging in at /auth/simple/login."
}
The provided user credentials are valid, but the user does not have the necessary permissions to perform this operation
- application/json
- Schema
- Example (from schema)
Schema
The ID of the error instance
9c40958a-daac-400e-98fb-3bb438567008The name of the error kind
NoAccessErrorA description of what went wrong.
You need the "UPDATE_ADDON" permission to perform this action in the "development" environment.{
"id": "9c40958a-daac-400e-98fb-3bb438567008",
"name": "NoAccessError",
"message": "You need the \"UPDATE_ADDON\" permission to perform this action in the \"development\" environment."
}