# 認証

Chamiloは、組み込みのユーザー名/パスワードシステムからエンタープライズ向けのシングルサインオンソリューションまで、複数の認証方法をサポートしています。

## 設定ファイル

すべての外部認証方法は、`config/authentication.yaml` で設定されます。テンプレートは `config/authentication.dist.yaml` に提供されています。一般的な構造は以下の通りです：

```yaml
parameters:
  authentication:
    <access_url_id>:
      <auth_method>:
        <provider_name>:
          <config_key>: <value>
```

ファイルを編集した後、キャッシュをクリアしてウォームアップしてください：

```bash
php bin/console cache:clear
php bin/console cache:warmup
```

キャッシュが更新されると、ログインページに外部ログインボタンが表示されます。

## サポートされている方法

* [**OAuth2**](/2.x-ja/gaido-1/admin-guide/authentication/oauth2.md) — Azure AD、Keycloak、Facebook、および汎用のOAuth2プロバイダ
* [**LDAP**](/2.x-ja/gaido-1/admin-guide/authentication/ldap.md) — LDAPまたはActive Directoryサーバーに対する認証
* [**CAS**](/2.x-ja/gaido-1/admin-guide/authentication/cas.md) — 中央認証サービス（レガシー、2.xでは機能しない）
* [**SCIM**](/2.x-ja/gaido-1/admin-guide/authentication/scim.md) — 外部アイデンティティプロバイダからの自動ユーザー提供
* [**SSO設定**](/2.x-ja/gaido-1/admin-guide/authentication/sso-configuration.md) — トラブルシューティングおよびクロスメソッドの注意事項

## デフォルトの認証

デフォルトでは、Chamiloは独自の内部システムを使用します — ユーザーはChamiloデータベースに保存されたユーザー名とパスワードでログインします。外部メソッドは追加的なものであり、標準のログインフォームは設定されたプロバイダと並行して利用可能です。

## さらなる参考情報

完全なパラメータリファレンスや高度なシナリオについては、[外部認証設定のWikiページ](https://github.com/chamilo/chamilo-lms/wiki/External-Authentication-configuration) を参照してください。


---

# 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://docs.chamilo.org/2.x-ja/gaido-1/admin-guide/authentication.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.
