# Enabling authenticated access

To protect your docs behind a sign-in screen, you’ll need to first enable authenticated access for your site.

### Enable authenticated access

Head to your [site’s settings](/docs/docs-site/site-settings.md), and choose **Authenticated access** from your site’s audience settings. Once selected, you’ll see a few options you’ll need to continue configuring your site. You’ll also see a generated "**Private key**", which you’ll need at a later point in the authenticated access setup.

### Choose an authentication method

Depending on your setup, we have integrations and guides on setting up authenticated access for different tools.

Head to the relevant guide to continue setting up authenticated access for your site.

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-cover data-type="image">Cover image</th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover-dark data-type="image">Cover image (dark)</th></tr></thead><tbody><tr><td>Setting up Auth0</td><td><a href="/files/gLopKD4HiKNlvhgvyriF">/files/gLopKD4HiKNlvhgvyriF</a></td><td><a href="/pages/R83a8Qh2WeO7IV5QLQpp">/pages/R83a8Qh2WeO7IV5QLQpp</a></td><td><a href="/files/4Gm6ZsEYHJiikjjQG6xM">/files/4Gm6ZsEYHJiikjjQG6xM</a></td></tr><tr><td>Setting up Azure AD</td><td><a href="/files/za4aHvr2NRbfbdpEJ0q0">/files/za4aHvr2NRbfbdpEJ0q0</a></td><td><a href="/pages/bExJU6ah6xJ85CGUxXpW">/pages/bExJU6ah6xJ85CGUxXpW</a></td><td><a href="/files/i99ytQBwFy39Xmd922zg">/files/i99ytQBwFy39Xmd922zg</a></td></tr><tr><td>Setting up Okta</td><td><a href="/files/sDfnjrOdPzbgBJcFAIw6">/files/sDfnjrOdPzbgBJcFAIw6</a></td><td><a href="/pages/hIfRqIeX6S7SMk12buNt">/pages/hIfRqIeX6S7SMk12buNt</a></td><td><a href="/files/YZKI5GDRbOvPCNV2JBky">/files/YZKI5GDRbOvPCNV2JBky</a></td></tr><tr><td>Setting up AWS Cognito</td><td><a href="/files/8V36WDKt7ynoizwxbSD1">/files/8V36WDKt7ynoizwxbSD1</a></td><td><a href="/pages/PyRnT9Rl3B2XzMHTrNEY">/pages/PyRnT9Rl3B2XzMHTrNEY</a></td><td><a href="/files/YyDsrlH2cjqkb1UZycdR">/files/YyDsrlH2cjqkb1UZycdR</a></td></tr><tr><td>Setting up OIDC</td><td><a href="/files/7tvUt0D1Lt2xH021tyBj">/files/7tvUt0D1Lt2xH021tyBj</a></td><td><a href="/pages/tGPdipCjrVfRiibfR2kc">/pages/tGPdipCjrVfRiibfR2kc</a></td><td><a href="/files/an2wBPnTxg9LoioO6FWs">/files/an2wBPnTxg9LoioO6FWs</a></td></tr><tr><td>Setting up a custom backend</td><td><a href="/files/1dEAlQu1ERR5BQPCGZT3">/files/1dEAlQu1ERR5BQPCGZT3</a></td><td><a href="/pages/1Z06lRawG4maeQOYXHnm">/pages/1Z06lRawG4maeQOYXHnm</a></td><td><a href="/files/h5zjuSICVyqGmyjhPcN4">/files/h5zjuSICVyqGmyjhPcN4</a></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gitbook.com/docs/site-access/authenticated-access/enabling-authenticated-access.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
