> 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/ja-gitbook-documentation/gong-kai/site-audience/authenticated-access.md).

# 認証済みアクセス

認証付きアクセスを使うと、コンテンツを公開しつつ、閲覧したい訪問者には認証を求めることができます。有効にすると、GitBook はコンテンツへのアクセス権を誰に付与するかを認証プロバイダーに任せます。

<figure><img src="/files/5660ff83574bfd59f6893e34cd613d59817d0796" alt="A screenshot showing a login screen for docs behind authenticated access"><figcaption><p>公開したドキュメントにサインインを追加します。</p></figcaption></figure>

### ユースケース

認証付きアクセスの一般的なユースケースには、次のようなものがあります。

* 有料顧客、見込み客、またはパートナーのみがアクセスできるべき機密性の高い製品ドキュメントを公開すること。
* 自社の従業員のみがアクセスできるべき社内ナレッジベースのコンテンツを公開すること。

### 仕組み

認証付きアクセスを設定する際に選べる方法は 2 つあります。

1. 当社の認証連携のいずれかをインストールすること — 現在、Okta、Azure、Auth0 をサポートしています。私たちは **強く推奨します** このオプションは、当社がサポートしている認証プロバイダーを使用している場合におすすめです。
2. 認証を処理する独自のサーバーを作成してホストします。さまざまな技術を使用できますが、どのソリューションを選ぶかの実装と保守はあなた次第です。

### 組み込みのログイン／ログアウト URL

GitBook は、公開サイトでのサインインとサインアウト用の組み込み URL を提供します。

* `<publishedSiteURL>/~gitbook/auth/login`
* `<publishedSiteURL>/~gitbook/auth/logout`

ログイン URL は、サイトのヘッダーリンクなど、サインイン用リンクを置きたい場所ならどこでも使用できます。

訪問者がログイン URL を開くと、GitBook はそのサイトに設定された認証バックエンドへリダイレクトします。これは、連携バックエンドとカスタムバックエンドの両方で機能します。

GitBook はさらに `location` 訪問者が最初に開いたページと一致するクエリパラメータを追加します。バックエンドはその値を使って、サインイン後に同じページへ戻すことができます。

ログアウト URL を使って、訪問者を GitBook セッションからサインアウトさせます。

次へ移動します [認証済みアクセスを有効にする](/docs/documentation/ja-gitbook-documentation/gong-kai/site-audience/authenticated-access/enabling-authenticated-access.md) サイトの保護されたアクセスの設定を始めるには


---

# 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/ja-gitbook-documentation/gong-kai/site-audience/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.
