> For the complete documentation index, see [llms.txt](https://docs.connect.century.tech/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.
> 
> An issuer change removes the linked IdP accounts of the provider. The users, their memberships and their sessions stay.



## 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. The host is in lower case and the URL is in its normal form.

- **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. The SSO provider operations are in preview and by invitation only: an organisation that is not in the preview gets this response.

### 404
SSO provider not found.

### 422
OIDC discovery failed for the issuer. The response gives no cause. The causes are: the discovery document is not found or is not valid, the `issuer` in the document is different, an endpoint in the document is not `https://`, or the host of the issuer is not public or has no address. To find the cause, open `{issuer}/.well-known/openid-configuration` in a browser. A temporary DNS failure also gives this response, so you can send the request again.

### 501
Not available in this environment.

### 502
The SSO service is not available.


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