> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/zh/zhan-dian-fang-wen/adaptive-content/enabling-adaptive-content/authenticated-access.md).

# 通过身份验证访问

GitBook 提供开箱即用的解决方案来保护你的文档。Auth0、Okta、Azure AD 和 AWS Cognito 的集成可让你安装一个集成，在访问已发布站点之前强制显示登录界面。

根据你使用的身份验证访问方式，你仍需要根据所使用的集成再配置一些内容，以便将正确的数据发送到 GitBook。

前往相关指南，查看有关使用身份验证访问设置自适应内容的完整说明。

如果你使用自己的认证流程， [设置自定义后端](/docs/documentation/zh/zhan-dian-fang-wen/authenticated-access/setting-up-a-custom-backend.md) 涵盖登录、回退重定向和登出。

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="image">封面图</th><th data-hidden data-type="image">封面图（深色）</th><th data-hidden data-type="image">封面图（深色）</th><th data-hidden data-type="image">封面图（深色）</th><th data-hidden data-type="image">封面图（深色）</th><th data-hidden data-card-cover-dark data-type="image">封面图（深色）</th></tr></thead><tbody><tr><td><strong>设置 Auth0</strong></td><td>为 Auth0 配置身份验证访问和自适应内容。</td><td><a href="/pages/dd42bec36b5b3651f9fcd783c7c172425515ba48">/pages/dd42bec36b5b3651f9fcd783c7c172425515ba48</a></td><td><a href="/files/fe411cd7b5b6b414363538bf8d6b2140cc5a483d">/files/fe411cd7b5b6b414363538bf8d6b2140cc5a483d</a></td><td><a href="/files/6983a3a4332a07a59d8be9d727a090e6880c3e7a">/files/6983a3a4332a07a59d8be9d727a090e6880c3e7a</a></td><td></td><td></td><td></td><td></td></tr><tr><td><strong>设置 Azure AD</strong></td><td>为 Azure AD 配置身份验证访问和自适应内容。</td><td><a href="/pages/9b49ff6b4473990ff074ecfdae22076841370f10">/pages/9b49ff6b4473990ff074ecfdae22076841370f10</a></td><td><a href="/files/bd6f801d7c66c970c15efe45b627cc38c3bd496a">/files/bd6f801d7c66c970c15efe45b627cc38c3bd496a</a></td><td></td><td><a href="/files/82aa837187ce1ecd997f95dad535c167134a35f3">/files/82aa837187ce1ecd997f95dad535c167134a35f3</a></td><td></td><td></td><td></td></tr><tr><td><strong>设置 AWS Cognito</strong></td><td>为 AWS Cognito 配置身份验证访问和自适应内容。</td><td><a href="/pages/ea057120ffdec4920b6dbd2f76f29d7bbb5e71eb">/pages/ea057120ffdec4920b6dbd2f76f29d7bbb5e71eb</a></td><td><a href="/files/a048e882fd83c6977b103ea04562ae79c60488dd">/files/a048e882fd83c6977b103ea04562ae79c60488dd</a></td><td></td><td></td><td><a href="/files/7e1c7a79212b2e7bc27d45ce9ff66b95bc4fad57">/files/7e1c7a79212b2e7bc27d45ce9ff66b95bc4fad57</a></td><td></td><td></td></tr><tr><td><strong>设置 Okta</strong></td><td>为 Okta 配置身份验证访问和自适应内容。</td><td><a href="/pages/505923ad6c84f3f8ac64399b6a7ef1af0462c578">/pages/505923ad6c84f3f8ac64399b6a7ef1af0462c578</a></td><td><a href="/files/4733a6f7c2622b0ecd67d4409bcc19ea918d8f82">/files/4733a6f7c2622b0ecd67d4409bcc19ea918d8f82</a></td><td></td><td></td><td></td><td><a href="/files/7f8ee692d635a42e0d2642b1f79d50a503aa181b">/files/7f8ee692d635a42e0d2642b1f79d50a503aa181b</a></td><td></td></tr><tr><td><strong>设置自定义后端</strong></td><td>为自定义后端配置身份验证访问和自适应内容。</td><td><a href="/pages/7a588abedeab58885b67e37e68b8426afabf11aa">/pages/7a588abedeab58885b67e37e68b8426afabf11aa</a></td><td><a href="/files/418dbc7204626acc7fa85f7edd763f2953ef0921">/files/418dbc7204626acc7fa85f7edd763f2953ef0921</a></td><td></td><td></td><td></td><td></td><td><a href="/files/4b39363f985561dc4d5396f30df8df211a221ae0">/files/4b39363f985561dc4d5396f30df8df211a221ae0</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://gitbook.com/docs/documentation/zh/zhan-dian-fang-wen/adaptive-content/enabling-adaptive-content/authenticated-access.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
