lafayettecollege/moodle-auth_casattras
Composer 安装命令:
composer require lafayettecollege/moodle-auth_casattras
包简介
This is an authentication plugin for Moodle that authenticates users via a Central Authentication Service (CAS) server.
README 文档
README
This is an authentication plugin for Moodle that authenticates users via a Central Authentication Service (CAS) server and populates the Moodle user-account's attributes from user-attributes included in the CAS response.
This method does not make use of LDAP for user-attribute lookup, allowing its use in situations where there is no LDAP server that includes user information, or there are multiple LDAP servers that include user information.
This authentication method makes use of the attributes returned by the phpCAS library's phpCAS::getAttributes() function and which are often returned from modern CAS servers.
Requirements
- Moodle 4.1 (build 2022111800 or later)
- A CAS server that supports attribute-release via one of...
- The SAML 1.1 protocol
- The CAS 2.0 protocol with the serviceValidate JSP customized to include attributes
- The CAS 3.0 protocol
Installation
-
Download the source for this authentication module and place it in
moodle/auth/casattras/. This can be accomplished withcd /path/to/my/moodle/ git clone https://github.com/middlebury/Moodle-auth_casattras.git auth/casattras -
Log into Moodle as a site adminstrator. You should be prompted to run a database update to install the plugin.
-
If you are going to configure SSL certificate validation of the CAS server (to prevent man-in-the-middle attacks on the login response) then save the certificate-authority certificate (CA-cert) to the filesystem where it is readable by Moodle and note its path.
Configuration
- Log into Moodle as a site administrator.
- If you don't already, make sure that you have a manual authentication-type admin account that you can log in with.
- Log in with the manual authentication-type admin account to ensure that you won't get locked out while changing around authentication settings.
- In Moodle, go to Site Administration -> Plugins -> Authentication -> Manage Authentication
- Edit the settings for CAS server (SSO) with user-attribute release to fit your CAS server.
- If configuring CAS server certificate validation, enter the CA-cert path for the "Certificate path" field.
- Edit the "Data Mapping" fields to match the user-attributes returned by your CAS server.
- Save the configuration.
- Disable the built-in CAS server (SSO) authentication type. This authentication plugin uses a newer version of phpCAS which would conflict with the built-in CAS server (SSO) authentication type, so both cannot be enabled at the same time.
- Enable the CAS server (SSO) with user-attribute release authentication type.
Migration
The following sample database query would migrate users from the cas authentication method to casattras:
UPDATE mdl_user SET auth='casattras' WHERE auth='cas';
Author
Charles Fulton (fultonc@lafayette.edu) Adam Franco
lafayettecollege/moodle-auth_casattras 适用场景与选型建议
lafayettecollege/moodle-auth_casattras 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 12, 最近一次更新时间为 2026 年 07 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 lafayettecollege/moodle-auth_casattras 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 lafayettecollege/moodle-auth_casattras 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 lafayettecollege/moodle-auth_casattras 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This module allows drag & drop grouping of items in a GridField
Adds text size controls and text-to-speech controls to Flarum discussion content.
Native Blade date, datetime, and date range pickers.
Symfony and Flysystem integration for the maintained KCFinder continuation.
Laravel integration for the maintained KCFinder continuation.
PHPStan rules shared across KnpLabs organization projects
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2026-07-15