Skip to content

Create Authentication Configuration

Request

Configure an authentication method for the organization — an external Identity Provider (OIDC or SAML) or built-in (password-based) authentication. Returns the created resource with its assigned authentication configuration ID.

Operation ID: auth_create_configuration

Security
BearerAuth
Bodyapplication/jsonrequired
fullnamestringrequired

Display name for the configuration, used on authentication screens. Note: To avoid confusion this name must be unique, however it cannot be used as an identifier in API calls.

configCreateOidcConfiguration (object) or CreateSamlConfiguration (object) or CreateBuiltInConfiguration (object)(CreateIdPConfiguration)required
One of:

Configuration for an OpenID Connect (OIDC) compliant Identity Provider.

statestring or null(AuthConfigurationState)

Whether the configuration is enabled or disabled. Defaults to enabled when omitted.

Enum:"enabled""disabled"
curl
curl -i -X POST \
  https://api.synqly.com/v1/auth/configurations \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "fullname": "string",
    "config": {
      "issuer_url": "string",
      "client_id": "string",
      "client_secret": "string"
    }
  }'

Responses

Bodyapplication/json
resultobject(AuthConfiguration)required

Authentication configuration for an Organization. Each configuration describes a single way members can sign in: an external Identity Provider (OIDC or SAML), or the built-in (password-based) authentication method. For external Identity Providers it also describes how to map identities from the IdP to Member accounts of the Organization.

Response
{ "result": { "id": "string", "fullname": "string", "state": "enabled", "identity_provider": { … }, "name": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } }