POST
/
api
/
v1
/
oidc
Create OIDC provider
curl --request POST \
  --url http://localhost:8080/api/v1/oidc \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "enabled": true,
  "client_id": "<string>",
  "client_secret": "<string>",
  "provider": "google",
  "provider_url": "<string>"
}'
{
  "success": true,
  "data": {
    "id": 123,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "name": "<string>",
    "enabled": true,
    "client_id": "<string>",
    "client_secret": "<string>",
    "provider": "<string>",
    "provider_url": "<string>",
    "redirect_uri": "<string>",
    "logo_url": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Basic authentication using base64 encoded API key and secret. Format: Authorization: Basic <base64(api_key:api_secret)>

Body

application/json

OIDC provider configuration

The body is of type object.

Response

200
application/json

OIDC provider created successfully

The response is of type object.