> For the complete documentation index, see [llms.txt](https://docs.connect.century.tech/draft/llms.txt)

# Update SSO Provider

> PATCH /sso-providers/{providerId}
> 
> Change the issuer, the client ID, the client secret or the scopes of an SSO provider. Send only the fields that change. When you send an issuer, CENTURY reads its discovery document again. The domain and the provider ID cannot change: to use a different domain, delete the provider and create a new one.



## Servers
- Production: https://connect.century.tech/api/v1 (Production)


## Authentication methods
- Api key


## Parameters

### Path parameters

- **providerId** (string)
  SSO provider ID. CENTURY makes it from the domain of the provider, and it does not change. It has lower case letters, digits and single hyphens only.



### Body: application/json (object)

- **issuer** (string(uri))
  The OIDC issuer of the identity provider. It must be an HTTPS URL, and it must be the same as the `issuer` in the discovery document at `{issuer}/.well-known/openid-configuration`. The host must be a public DNS name, not an IP address. The URL must have no user name, port, query or fragment.

- **clientId** (string)
  The client ID that the identity provider gave to CENTURY.

- **clientSecret** (string)
  The client secret that the identity provider gave to CENTURY. It is write-only: no response contains it.

- **scopes** (array[string])
  The OIDC scopes that CENTURY requests at sign-in. The list must include `openid`. If you omit the field, the scopes of the provider do not change.



## Responses
### 200
SSO provider updated successfully.

#### Body: application/json (object)
- **ssoProvider** (object)


### 400
Invalid request.

### 401
Invalid authentication credentials

### 403
Not authorised to access this resource

### 404
SSO provider not found.

### 422
OIDC discovery validation failed.


[Powered by Bump.sh](https://bump.sh)
