diff --git a/administration/authentication/single_sign_on.md b/administration/authentication/single_sign_on.md index 089f195..501649f 100644 --- a/administration/authentication/single_sign_on.md +++ b/administration/authentication/single_sign_on.md @@ -42,3 +42,40 @@ Before you begin, you will need access to your Identity Provider (IdP) — such Once you have completed the SSO configuration in the wizard, please let your Kosli Customer Success representative know. We will then switch your email domain to use SSO and confirm when the migration is complete. + +## Renew the client secret + +An OIDC connection authenticates to your IdP with the Client Secret you entered in the wizard. Most IdPs give client secrets an expiry date, and you should also replace a secret you suspect has been exposed. You update the secret on the existing connection, in the same wizard you used to set it up, without recreating the connection. + +Before you start, you need: + +- Permission in your IdP to manage the Kosli application registration's client secrets. +- A link to the setup wizard. If you no longer have a working link, ask your Kosli Customer Success representative for one. + + + + In the Kosli application registration in your IdP, create a new client secret and copy its value. Leave the old secret in place for now. Most IdPs, such as Azure Entra ID, allow several secrets to be valid at once, so sign-in keeps working while you switch over. + + + Open the wizard link and select **SSO Configuration**. The wizard shows your current connection. + + + Go to the step with the **Client ID** and **Client Secret** fields, paste the new value into **Client Secret**, and leave **Client ID** unchanged. + + + Click through to the **Testing** page, run the test sign-in, and save the configuration. + + + Once a test sign-in with the new secret works, delete the old secret in your IdP. + + + + +Renew the secret before the old one expires. If the secret Kosli holds expires or is deleted in your IdP, nobody in your organization can sign in to Kosli with SSO until you enter a valid secret in the wizard. Set a reminder ahead of the expiry date your IdP shows. + + +SAML connections have no client secret. The equivalent task is renewing your IdP's signing certificate: when it changes, update the IdP metadata in the same way, through **SSO Configuration** in the wizard. + +If sign-in fails after the change, check that you copied the secret's **Value**, not its **Secret ID** (Azure Entra ID shows both). If it still fails, contact your Kosli Customer Success representative. + +This procedure is separate from [rotating Kosli API keys](/tutorials/rotating_api_keys), which applies to service accounts and personal API keys, not to SSO. diff --git a/tutorials/rotating_api_keys.mdx b/tutorials/rotating_api_keys.mdx index 7c9a5f4..6572a41 100644 --- a/tutorials/rotating_api_keys.mdx +++ b/tutorials/rotating_api_keys.mdx @@ -11,7 +11,7 @@ Kosli never stores your API token in plain text. Only a cryptographic hash of th -Personal API keys rotate the same way. Use **Regenerate** on your **Profile** page, or pass `--personal` instead of `--service-account` and `--org` to `kosli rotate api-key`. See [Personal API keys](/user/personal_api_keys#rotate-a-key). +Personal API keys rotate the same way. Use **Regenerate** on your **Profile** page, or pass `--personal` instead of `--service-account` and `--org` to `kosli rotate api-key`. See [Personal API keys](/user/personal_api_keys#rotate-a-key). This page covers Kosli API keys only: to renew the client secret of an OIDC single sign-on connection, see [Renew the client secret](/administration/authentication/single_sign_on#renew-the-client-secret). ## Prerequisites