> For the complete documentation index, see [llms.txt](https://docs.k9.io/key9-identity/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.k9.io/key9-identity/web/marketplace/gitbook.md).

# GitBook

[GitBook documentation can be found here.](https://docs.gitbook.com/account-management/sso-and-saml)

You must be an **organization admin** to enable SSO for your GitBook organization.

1. Sign in to your **GitBook console**.
2. In the GitBook console, click **Settings** (In the sidebar) and then **Organization settings**.
3. In the **Organization Settings**, click **SSO** (In the sidebar).
4. Click the **Register Identity Provider** button
5. Enter **Key9 Identity** into the **Which identity provider are you connecting to?** field and click **Next**.
6. Copy and paste the URLs from your GitBook to Key9 **Setup Items**:
   1. **ACS URL**
   2. **Entity ID**
7. You can map the **Parameters**, in Key9, now or later
8. Click the **Create Application** in **Key9**.

After you have created your Key9 application, click the **SSO** tab in the side navigation, and copy the following information to GitBook:

1. Copy the Key9 **ACS (Consumer) URL** url to the **Identity provider single sign-on URL** field.
2. Copy the Key9 **Audience (Metadata)** url to the **Identity provider issuer (entityID)** field.
3. Upload the Key9 **X.509 Certificate** to the **X.509 Certificate** field.

(To view and download the x509 certificate in Key9, select **View Certificate Details** from the **Certificate Options** dropdown menu, then click the download icon.)

Click the **Save and Enable** button in GitBook

\-------------------

By default, applications are not active upon creation. Active applications are immediately available to assign groups. Applications should only be activated when you have configured the Service Provider (SP).
