# CAS

> **Chamilo 2.x 中的狀態**：CAS 設定項目（`cas_activate`、`cas_server`、`cas_server_uri`、`cas_port`、`cas_protocol`、`cas_add_user_activate`）作為 Chamilo 1.x 的遺留內容仍然存在於平台設定中，並且 CAS 仍然作為用戶表單上的可選認證來源顯示——但在 Chamilo 2.x 的安全管道中並未連接 CAS 認證器。通過 CAS 登入目前**無法直接使用**。如果您需要在 Chamilo 2.x 上使用單一登入（SSO），請改用 [OAuth2](/2.x-zh-tw/guan-li-zhi-nan/admin-guide/authentication/oauth2.md)（Azure / Keycloak / Generic）或 [LDAP](/2.x-zh-tw/guan-li-zhi-nan/admin-guide/authentication/ldap.md)。

## CAS 的功能（1.x 行為）

CAS（中央認證服務）是一種常見於大學和研究機構的單一登入協議。在 Chamilo 1.x 中，點擊「使用 CAS 登入」會將用戶重定向到 CAS 伺服器，驗證返回的票據，並根據 CAS 屬性創建或匹配本地帳戶。

## 遷移注意事項

如果您正在升級使用 CAS 的 Chamilo 1.x 門戶網站，請計劃暫時在 OAuth2 或 LDAP 的基礎上重新實現該登入流程，直到 CAS 認證器在未來的 2.x 版本中恢復為止。


---

# 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-zh-tw/guan-li-zhi-nan/admin-guide/authentication/cas.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.
