API v2: OpenID Connect Users Assignmentยถ
User related OpenID Connect endpoints help to create, modify, list and delete OpenID Connect configurations assignment to Users.
Data Structuresยถ
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Read-only. Protected. Unique identifier. |
|
|
string |
yes |
Immutable. Uniqueness is required in the combination of attribute |
|
string |
yes |
Immutable. Uniqueness is required in the combination of attribute |
|
string |
yes |
OpenID Connect sub claim. |
|
string |
Read-only. Expensive to use. |
|
|
string |
Read-only. Expensive to use. |
|
|
string |
Read-only. Expensive to use. |
|
|
string |
Read-only. Expensive to use. |
|
|
string |
Read-only. Expensive to use. |
|
|
string |
Read-only. Expensive to use. |
|
|
datetime |
Read-only. Timestamp of creation. |
|
|
datetime |
Read-only. Timestamp of modification. |
|
|
boolean |
Read-only. |
|
|
boolean |
Read-only; expensive to use; if |
|
|
boolean |
Read-only; expensive to use; if |
Retrieve Available Attributes of the UserOpenIDModelยถ
Request
Method |
|
Path |
|
To check allowed methods, available URL parameters and possible responses please refer to the API Overview section.
Get the List of Existing OpenID Connect Configuration Assignments to Usersยถ
Request
Method |
|
Path |
|
Example Request
GET /api/v2/user/oidc`
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/user/oidc'
Response
{
"result": "success",
"user_oidc": [
{
"user_id": "9124292845052624898",
"oidc_id": "9124292845052624898",
"oidc_sub": "John",
"user_name": "User_1",
"user_domain": "zw.local",
"user_email": "user@fudosecurity.com",
"user_role": "operator",
"oidc_name": "OKTA2",
"created_at": "2024-06-19 08:39:55.351137-07",
"modified_at": "2024-06-19 08:39:55.351137-07",
"builtin": false,
"hidden": false
}
]
}
Get Existing OpenID Connect Configuration Assigned to Userยถ
Request
Method |
|
Path |
|
Example Request
GET /api/v2/user/<id>/oidc/<id>`
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/user/9124292845052624898/oidc/9124292845052624898'
Response
{
"result": "success",
"user_oidc": [
{
"user_id": "9124292845052624898",
"oidc_id": "9124292845052624898",
"oidc_sub": "John",
"user_name": "User_1",
"user_domain": "zw.local",
"user_email": "user@fudosecurity.com",
"user_role": "operator",
"oidc_name": "OKTA2",
"created_at": "2024-06-19 08:39:55.351137-07",
"modified_at": "2024-06-19 08:39:55.351137-07",
"builtin": false,
"hidden": false
}
]
}
Defining OpenID Connect Configuration Assignment to Userยถ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request
POST /api/v2/user/oidc`
curl -s -k -X POST \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
'https://10.0.214.98/api/v2/user/oidc' \
-d'{"user_id":"9124292845052624898","oidc_id":"9124292845052624898","oidc_sub":"John"}'
Response
{
"result": "success"
}
Modify OpenID Connect Configuration Assignment to Userยถ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request
PATCH /api/v2/user/<id>/oidc/<id>`
curl -s -k -X PATCH \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
'https://10.0.214.98/api/v2/user/9124292845052624898/oidc/9124292845052624898' \
-d'{"oidc_sub":"JohnD"}'
Response
{
"result": "success"
}
Deleting OpenID Connect Configuration Assignment to Userยถ
Request
Method |
|
Path |
|
Example Request
DELETE /api/v2/user/<id>/oidc/<id>`
curl -s -k -X DELETE \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/user/9124292845052624800/oidc/9124292845052624897'
Response
{
"result": "success"
}