# 認証済みアクセス

認証付きアクセスを使用すると、コンテンツを公開しながら、閲覧したい訪問者に認証を求めることができます。有効にすると、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/saitoakusesu/authenticated-access/enabling-authenticated-access.md) サイトの保護されたアクセスの設定を開始するには


---

# 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/documentation/ja-gitbook-documentation/saitoakusesu/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.
