Skip to content

Update Authentication Configuration

Request

Update the authentication configuration by ID. This is a full replacement of the configuration. The updated_at field is used for optimistic locking to prevent concurrent updates.

Operation ID: auth_update_configuration

Security
BearerAuth
Path
configurationIdstring(Id)required
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.

configUpdateOidcConfiguration (object) or UpdateSamlConfiguration (object) or UpdateBuiltInConfiguration (object)(UpdateIdPConfiguration)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"
updated_atstring or null, (date-time)

Used for optimistic locking to prevent concurrent updates.

curl
curl -i -X PUT \
  'https://api.synqly.com/v1/auth/configurations/{configurationId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "fullname": "string",
    "config": {
      "issuer_url": "string",
      "client_id": "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" } }