Skip to main content

Set OIDC settings

POST 

<your-unleash-url>/api/admin/auth/oidc/settings

Configure OpenID Connect as a login provider for Unleash.

Request

Responses

oidcSettingsResponseSchema

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L '<your-unleash-url>/api/admin/auth/oidc/settings' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <Authorization>' \
-d '{
"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
}'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Body required
{
  "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
}
ResponseClear

Click the Send API Request button above and see the response here!