OpenID Connect Configuration

OpenID Connect related endpoints help to create, modify, list and delete OpenID Connect configurations.


Data Structures

OpenIDModel

Attribute

Type

Required

Description

id

string

Read-only. Uniqueness is required.

name

string

yes

Name of the configuration. Case-insensitive. Uniqueness is required.

enabled

boolean; Default value true

yes

Enabling configuration.

bind_to

string

Bind address.

configuration_url

string

yes

This URL is specific for every Identity Provider and allows identifying one for correct configuration. Either the address of the discovery document, or the issuer address alone - in the latter case /.well-known/openid-configuration is appended automatically.

client_id

string

yes

Client id available after the registration on selected provider.

client_secret

string

yes

Client secret available after the registration on selected provider. Protected.

scope

string

Custom OIDC scope(s) appended to the base scopes (openid, profile, email) on the authorization request. Space-separated list; leave empty to send only the base scopes.

fudo_domain

string

The domain used to identify the user on Fudo. It is not a part of the user’s UPN — when set, it only narrows the match to users with that Fudo domain.

username_mapping

string

Username mapping is useful when users name has different naming convention.

email_mapping

string

Email mapping is useful when users name has different naming convention.

scope

string

Custom OIDC scope(s) appended to the base scopes (openid, profile, email) on the authorization request. Space-separated list; leave empty to send only the base scopes. Leading, trailing and repeated spaces are rejected.

tls_ca_certificate

string

TLS CA certificate that signed the certificate of the server. Format: x509-ca-certificate.

tls_certificate

string

TLS certificate of the server. Format: x509-certificate.

created_at

datetime

Read-only. Timestamp of creation.

modified_at

datetime

Read-only. Timestamp of modification.

removed

boolean

Read-only.

Retrieve Available Attributes of the OpenIDModel

Request

Method

GET

Path

/api/v2/objspec/oidc

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

GET

Path

/api/v2/oidc

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

GET

Path

/api/v2/oidc/<id>

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

POST

Path

/api/v2/oidc

Headers

Content-Type: Application/json

Body

OpenIDModel

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

PATCH

Path

/api/v2/oidc/<id>

Headers

Content-Type: Application/json

Body

OpenIDModel

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

DELETE

Path

/api/v2/oidc/<id>

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"
}