PHPackages                             cubear/cwd\_saml\_mapping - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. cubear/cwd\_saml\_mapping

ActiveDrupal-custom-module[Authentication &amp; Authorization](/categories/authentication)

cubear/cwd\_saml\_mapping
=========================

Drupal Custom module to extend functionality of drupal/saml\_sp. Allows for mapping of saml properties into user fields and for automatic role assignment.

v3.0.0(4mo ago)07.2k↓37.5%[5 issues](https://github.com/CornellCustomDev/CD_cwd_saml_mapping/issues)[4 PRs](https://github.com/CornellCustomDev/CD_cwd_saml_mapping/pulls)GPL-3.0-or-laterPHP

Since Aug 28Pushed 2mo ago13 watchersCompare

[ Source](https://github.com/CornellCustomDev/CD_cwd_saml_mapping)[ Packagist](https://packagist.org/packages/cubear/cwd_saml_mapping)[ Docs](https://it.cornell.edu/custom-web)[ RSS](/packages/cubear-cwd-saml-mapping/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (33)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/87ee35f10c98b42d1a0b9c910cade23e3cfa757ca9e36eb07d82fc3d1af5e07b/68747470733a2f2f706f7365722e707567782e6f72672f6375626561722f6377645f73616d6c5f6d617070696e672f762f737461626c65)](https://packagist.org/packages/cubear/cwd_saml_mapping)

INTRODUCTION
------------

[](#introduction)

The cwd\_saml\_mapping module is for use with drupal/saml\_sp, and allows for the following:

- Authentication through multiple IDP's ex. Cornell Test, Weill Test, Cornell Production Shibboleth
- Configuration of which IDP to use in production (test or prod) and hooks all other non prod instance to test Shibboleth
- Auto role assignment via a Saml Role Mapping config entity
- Ability to map saml data into Drupal user fields
- Ability to add redirect per role on login
- Ability to add redirect per role on logout

REQUIREMENTS
------------

[](#requirements)

This module depends on the drupal/saml\_sp module.

INSTALLATION
------------

[](#installation)

`composer require cubear/cwd_saml_mapping`

`drush en cwd_saml_mapping`

CONFIGURATION
-------------

[](#configuration)

- Enable the module as you would any other module
- Configure the global module settings: /admin/config/people/cwd-saml-mapping-config
- Configure the roles you want mapped: /admin/config/people/cwd-saml-mapping-config/saml-role-mapping
- Configure field mapping form saml to Drupal user fields: /admin/config/people/cwd-saml-mapping-config/saml-field-mapping
- Configure login redirect: /admin/config/people/cwd-saml-mapping-config/saml-login-redirect
- Configure logout redirects: /admin/config/people/cwd-saml-mapping-config/saml-logout-redirect

DOCUMENTATION
-------------

[](#documentation)

A whole lot more documentation is available on Confluence: [https://confluence.cornell.edu/display/customdev/SAML\_SP](https://confluence.cornell.edu/display/customdev/SAML_SP)

MAINTAINERS
-----------

[](#maintainers)

Current maintainers for Drupal 10:

- Bill Juda

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance82

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.5% 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 ~41 days

Recently: every ~92 days

Total

22

Last Release

123d ago

Major Versions

v1.1.2 → v2.0.02024-09-17

v2.2.1 → v3.0.02026-01-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e51565a6568627d6c94a17c7c61c487ca5ac865381ea32fa236762ed9c1f206?d=identicon)[judaw](/maintainers/judaw)

---

Top Contributors

[![judaw](https://avatars.githubusercontent.com/u/10635314?v=4)](https://github.com/judaw "judaw (86 commits)")[![alisonjo315](https://avatars.githubusercontent.com/u/2660348?v=4)](https://github.com/alisonjo315 "alisonjo315 (5 commits)")

### Embed Badge

![Health badge](/badges/cubear-cwd-saml-mapping/health.svg)

```
[![Health](https://phpackages.com/badges/cubear-cwd-saml-mapping/health.svg)](https://phpackages.com/packages/cubear-cwd-saml-mapping)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

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