API v2: OpenID Connect Configurationยถ
OpenID Connect related endpoints help to create, modify, list and delete OpenID Connect configurations.
Data Structuresยถ
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Read-only, unique object Identifier. |
|
|
string |
yes |
Case-insensitive, unique name of the configuration. |
|
boolean |
yes |
Enabling configuration. |
|
string |
Bind address. |
|
|
string |
yes |
This URL is specific for every Identity Provider and allows identifying one for correct configuration. |
|
string |
yes |
Client id available after the registration on selected provider. |
|
string |
yes |
Client secret available after the registration on selected provider. Protected. |
|
string |
Username mapping is useful when users name has different naming convention. |
|
|
string |
Email mapping is useful when users name has different naming convention. |
|
|
datetime |
Read-only. Timestamp of creation. |
|
|
datetime |
Read-only. Timestamp of modification. |
|
|
boolean |
Read-only. |
Retrieve Available Attributes of the OpenIDModelยถ
Request
Method |
|
Path |
|
To check allowed methods, available URL parameters and possible responses please refer to the API Overview section.
Get Existing OpenID Connect Configurations Listยถ
Request
Method |
|
Path |
|
Example Request
GET /api/v2/oidc`
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/oidc'
Response
{
"result": "success",
"oidc": [
{
"id": "9124292845052624897",
"name": "OKTA",
"enabled": true,
"bind_to": "0.0.0.0",
"configuration_url": "https:\/\/okta.com",
"client_id": "1234567",
"created_at": "2024-06-19 07:51:42.988336-07",
"modified_at": "2024-06-19 07:51:42.988336-07"
}
]
}
Get Existing OpenID Connect Configuration by IDยถ
Request
Method |
|
Path |
|
Example Request
GET /api/v2/oidc/<id>`
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/oidc/9124292845052624897'
Response
{
"result": "success",
"oidc": [
{
"id": "9124292845052624897",
"name": "OKTA",
"enabled": true,
"bind_to": "0.0.0.0",
"configuration_url": "https:\/\/okta.com",
"client_id": "1234567",
"created_at": "2024-06-19 07:51:42.988336-07",
"modified_at": "2024-06-19 07:51:42.988336-07"
}
]
}
Defining OpenID Connect Configurationยถ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request
POST /api/v2/oidc`
curl -s -k -X POST \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
'https://10.0.214.98/api/v2/oidc' \
-d'{"name": "OKTA","enabled": true,"configuration_url":"https:\/\/okta.com","client_id":"1234567","client_secret":"Secret"}'
Response
{
"result": "success",
"oidc": {
"id": "9124292845052624898"
}
}
Modify OpenID Connect Configurationยถ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request
PATCH /api/v2/oidc/<id>`
curl -s -k -X PATCH \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
'https://10.0.214.98/api/v2/oidc/9124292845052624898' \
-d'{"client_id":"1234567","client_secret":"Secret"}'
Response
{
"result": "success",
"oidc": {
"id": "9124292845052624898"
}
}
Deleting OpenID Connect Configurationยถ
Request
Method |
|
Path |
|
Example Request
DELETE /api/v2/oidc/<id>`
curl -s -k -X DELETE \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/oidc/9124292845052624897'
Response
{
"result": "success"
}