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.2(1mo ago)0216LGPL-2.1-onlyPHPCI passing

Since Jan 15Pushed 1mo 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 today

READMEChangelog (2)Dependencies (27)Versions (17)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

50

—

FairBetter than 95% of packages

Maintenance94

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity71

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

Recently: every ~97 days

Total

12

Last Release

32d 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 (8 commits)")[![pradtke](https://avatars.githubusercontent.com/u/932934?v=4)](https://github.com/pradtke "pradtke (7 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)")[![tmerritt8](https://avatars.githubusercontent.com/u/193960711?v=4)](https://github.com/tmerritt8 "tmerritt8 (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

[spomky-labs/otphp

A PHP library for generating one time passwords according to RFC 4226 (HOTP Algorithm) and the RFC 6238 (TOTP Algorithm) and compatible with Google Authenticator

1.5k50.3M169](/packages/spomky-labs-otphp)[simplesamlphp/simplesamlphp

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

1.1k13.0M218](/packages/simplesamlphp-simplesamlphp)[web-auth/webauthn-lib

FIDO2/Webauthn Support For PHP

12310.5M135](/packages/web-auth-webauthn-lib)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

515100.5k3](/packages/web-auth-webauthn-framework)[simplesamlphp/simplesamlphp-module-oidc

A SimpleSAMLphp module adding support for the OpenID Connect protocol

5018.2k1](/packages/simplesamlphp-simplesamlphp-module-oidc)[descope/descope-php

Descope SDK for PHP

4223.8k](/packages/descope-descope-php)

PHPackages © 2026

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