Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Shib2nameID modul for SimpleSAMLphp

This modul can generate PersistentNameID (and the value for eduPersonTargetedID) with the same algorithm as Shibboleth IdP does. You would need this module if you migrate your IdP from Shibboleth to SimpleSAMLphp, and don't want the ePTID values to be changed.
This module can generate PersistentNameID (and the value for eduPersonTargetedID) with the same algorithm as Shibboleth
IdP does. You would need this module if you migrate your IdP from Shibboleth to SimpleSAMLphp, and don't want the ePTID
values to be changed.

## Usage
You have to use the same `secretsalt` as you did at Shibboleth IdP.
Expand All @@ -9,6 +11,7 @@ Put into the `authproc.idp` section:
```
5 => array(
'class' => 'shib2idpnameid:PersistentNameID',
// Required only when PersistentNameID2TargetedID class is used
'nameId' => true,
'attribute' => 'uid',
'attributename' => 'eduPersonTargetedID'
Expand Down
41 changes: 39 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,46 @@
}
],
"require": {
"simplesamlphp/composer-module-installer": "^1.1"
"simplesamlphp/composer-module-installer": "^1.1",
"simplesamlphp/simplesamlphp": "^v2.3"
},
"require-dev": {
"phpunit/phpunit": "^8.5"
"simplesamlphp/simplesamlphp-test-framework": "^1.7",
"phpunit/phpunit": "^10",
"vimeo/psalm": "^5",
"squizlabs/php_codesniffer": "^3.7",
"friendsofphp/php-cs-fixer": "^3",
"rector/rector": "^0.18.3"
},
"autoload": {
"psr-4": {
"SimpleSAML\\Module\\authoauth2\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Test\\SimpleSAML\\": "tests/src/"
}
},
"config": {
"allow-plugins": {
"simplesamlphp/composer-module-installer": true,
"dealerdirect/phpcodesniffer-composer-installer": false,
"simplesamlphp/composer-xmlprovider-installer": false,
"phpstan/extension-installer": true
}
},
"scripts": {
"pre-commit": [
"vendor/bin/phpunit --no-coverage --testdox",
"vendor/bin/phpcs -p",
"vendor/bin/psalm --no-cache"
],
"tests": [
"vendor/bin/phpunit --no-coverage"
],
"fix-cs": [
"php vendor/bin/phpcbf"
]
}
}
Loading