PHPackages                             cirrusidentity/simplesamlphp-module-shib2idpnameid - 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. cirrusidentity/simplesamlphp-module-shib2idpnameid

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

cirrusidentity/simplesamlphp-module-shib2idpnameid
==================================================

Filter to generate generate the PairwiseID, the PersistentNameID (and the value for eduPersonTargetedID) with the same algorithm as Shibboleth IdP does.

v2.1.0(6mo ago)0216LGPL-2.1-onlyPHPCI passing

Since Jan 15Pushed 6mo agoCompare

[ Source](https://github.com/cirrusidentity/simplesamlphp-module-shib2idpnameid)[ Packagist](https://packagist.org/packages/cirrusidentity/simplesamlphp-module-shib2idpnameid)[ Docs](https://eduid.hu)[ RSS](/packages/cirrusidentity-simplesamlphp-module-shib2idpnameid/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (9)Versions (14)Used By (0)

Shib2nameID module for SimpleSAMLphp
====================================

[](#shib2nameid-module-for-simplesamlphp)

This module provides compatibility for organizations migrating from Shibboleth IdP to SimpleSAMLphp by implementing identical algorithms for generating various types of identifiers. It supports PersistentNameID, eduPersonTargetedID ( ePTID), and PairwiseID generation using the same approach as Shibboleth IdP. This ensures that user identifiers remain consistent during and after migration, preventing disruption to existing service integrations and maintaining seamless user access across federated services.

Usage
-----

[](#usage)

You have to use the same `secretsalt` as you did at Shibboleth IdP.

To ensure compatibility of persistent identifiers when migrating from Shibboleth to SimpleSAMLphp, you need to configure the module within the `authproc.idp` section of your IdP configuration.

For generating PersistentNameID, use the following configuration:

```
5 => array(
       'class' => 'shib2idpnameid:PersistentNameID',
       // Required
       'attribute' => 'uid',
       // Optional, defaults to `eduPersonTargetedID
       'attributename' => 'eduPersonTargetedID'
),

```

Alternatively, to generate a targeted ID, you can use:

```
5 => array(
       'class' => 'shib2idpnameid:PersistentNameID2TargetedID',
       // Optional
       'nameId' => true,
       // Optional, defaults to `eduPersonTargetedID`
       'attribute' => 'uid',
),

```

Alternatively, to generate a pairwise ID, you can use:

```
5 => array(
       'class' => 'shib2idpnameid:PairwiseID',
       // Optional
       'scope' => 'example.com,
       // Optional, defaults to `eduPersonTargetedID`
       'attribute' => 'uid',
       // Required, allowed values are sha1, hmac-sha256,
       'algorithm' => 'sha1',
),

```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance66

Regular maintenance activity

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~397 days

Recently: every ~46 days

Total

10

Last Release

199d ago

Major Versions

v1.3 → v2.02025-04-30

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/932934?v=4)[Patrick](/maintainers/pradtke)[@pradtke](https://github.com/pradtke)

---

Top Contributors

[![ioigoume](https://avatars.githubusercontent.com/u/3846025?v=4)](https://github.com/ioigoume "ioigoume (7 commits)")[![pradtke](https://avatars.githubusercontent.com/u/932934?v=4)](https://github.com/pradtke "pradtke (6 commits)")[![northway](https://avatars.githubusercontent.com/u/3431401?v=4)](https://github.com/northway "northway (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![sitya](https://avatars.githubusercontent.com/u/1099191?v=4)](https://github.com/sitya "sitya (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/cirrusidentity-simplesamlphp-module-shib2idpnameid/health.svg)

```
[![Health](https://phpackages.com/badges/cirrusidentity-simplesamlphp-module-shib2idpnameid/health.svg)](https://phpackages.com/packages/cirrusidentity-simplesamlphp-module-shib2idpnameid)
```

###  Alternatives

[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[laragear/two-factor

On-premises 2FA Authentication for out-of-the-box.

339785.3k8](/packages/laragear-two-factor)[web-auth/webauthn-lib

FIDO2/Webauthn Support For PHP

1225.3M72](/packages/web-auth-webauthn-lib)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

50570.7k1](/packages/web-auth-webauthn-framework)[chillerlan/php-authenticator

A generator for counter- and time based 2-factor authentication codes (Google Authenticator). PHP 8.2+

58119.1k2](/packages/chillerlan-php-authenticator)[drupalauth/simplesamlphp-module-drupalauth

A SimpleSAMLphp module adding support for Drupal as the authentication source.

25305.4k1](/packages/drupalauth-simplesamlphp-module-drupalauth)

PHPackages © 2026

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