PHPackages                             lafayettecollege/moodle-auth\_casattras - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. lafayettecollege/moodle-auth\_casattras

ActiveMoodle-auth

lafayettecollege/moodle-auth\_casattras
=======================================

This is an authentication plugin for Moodle that authenticates users via a Central Authentication Service (CAS) server.

v5.0.2(1mo ago)12116[11 issues](https://github.com/LafColITS/Moodle-auth_casattras/issues)[1 PRs](https://github.com/LafColITS/Moodle-auth_casattras/pulls)GPL-3.0-or-laterPHPCI passing

Since Jul 24Pushed 1mo ago4 watchersCompare

[ Source](https://github.com/LafColITS/Moodle-auth_casattras)[ Packagist](https://packagist.org/packages/lafayettecollege/moodle-auth_casattras)[ RSS](/packages/lafayettecollege-moodle-auth-casattras/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (8)Used By (0)

CAS server (SSO) with user-attribute release
============================================

[](#cas-server-sso-with-user-attribute-release)

[![Moodle Plugin CI](https://github.com/LafColITS/Moodle-auth_casattras/workflows/Moodle%20Plugin%20CI/badge.svg)](https://github.com/LafColITS/Moodle-auth_casattras/workflows/Moodle%20Plugin%20CI/badge.svg)

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
------------

[](#requirements)

- Moodle 4.1 (build 2022111800 or later)
- A CAS server that supports attribute-release via one of...
    1. The SAML 1.1 protocol
    2. The CAS 2.0 protocol with the serviceValidate JSP customized to include attributes
    3. The CAS 3.0 protocol

Installation
------------

[](#installation)

1. Download the source for this authentication module and place it in `moodle/auth/casattras/`. This can be accomplished with

    ```
         cd /path/to/my/moodle/
         git clone https://github.com/middlebury/Moodle-auth_casattras.git auth/casattras

    ```
2. Log into Moodle as a site adminstrator. You should be prompted to run a database update to install the plugin.
3. 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
-------------

[](#configuration)

1. Log into Moodle as a site administrator.
2. If you don't already, make sure that you have a **manual** authentication-type admin account that you can log in with.
3. Log in with the **manual** authentication-type admin account to ensure that you won't get locked out while changing around authentication settings.
4. In Moodle, go to *Site Administration* -&gt; *Plugins* -&gt; *Authentication* -&gt; *Manage Authentication*
5. Edit the settings for **CAS server (SSO) with user-attribute release** to fit your CAS server.
6. If configuring CAS server certificate validation, enter the CA-cert path for the "Certificate path" field.
7. Edit the "Data Mapping" fields to match the user-attributes returned by your CAS server.
8. Save the configuration.
9. 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.
10. Enable the **CAS server (SSO) with user-attribute release** authentication type.

Migration
---------

[](#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
------

[](#author)

Charles Fulton () Adam Franco

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance72

Regular maintenance activity

Popularity12

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 63.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~729 days

Recently: every ~845 days

Total

7

Last Release

46d ago

Major Versions

1.3.8 → v5.0.22026-07-15

PHP version history (2 changes)1.3.3PHP &gt;=5.0.0

1.3.5PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ef434bc036124ba911b2fdea03980e1867faaddd675e86184cdc2b18d210a66?d=identicon)[lafayettecollege](/maintainers/lafayettecollege)

---

Top Contributors

[![mackensen](https://avatars.githubusercontent.com/u/553370?v=4)](https://github.com/mackensen "mackensen (57 commits)")[![adamfranco](https://avatars.githubusercontent.com/u/25242?v=4)](https://github.com/adamfranco "adamfranco (31 commits)")[![jogemu](https://avatars.githubusercontent.com/u/40940803?v=4)](https://github.com/jogemu "jogemu (1 commits)")[![nkokkos](https://avatars.githubusercontent.com/u/38037?v=4)](https://github.com/nkokkos "nkokkos (1 commits)")

### Embed Badge

![Health badge](/badges/lafayettecollege-moodle-auth-casattras/health.svg)

```
[![Health](https://phpackages.com/badges/lafayettecollege-moodle-auth-casattras/health.svg)](https://phpackages.com/packages/lafayettecollege-moodle-auth-casattras)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.8k10](/packages/helsingborg-stad-municipio)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7691.4M4](/packages/wp-media-wp-rocket)[october/rain

October Rain Library

1611.7M109](/packages/october-rain)[drupal/recommended-project

Project template for Drupal projects with a relocated document root

1623.0M1](/packages/drupal-recommended-project)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45945.2k1](/packages/pressbooks-pressbooks)[mediawiki/maps

Adds various mapping features to MediaWiki

84157.7k3](/packages/mediawiki-maps)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
