-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SSP-2035_authoauth2_module_switch_to_routes_and_controllers (#96)
* Symfony routes+Controller for callback and logout * Remove obsolete endpoints and handlers * Fix php styling.Fix error handling. * add missing optional configuration in README.md * Move from array() to [] notation. Add orcid2name.php attribute map. * improve routing service * Update phpunit.xml configuration * Update README to allow testing with v2.3.2 ssp docker image * Switch to cachedir from tempdir since tempdir is deprecated in ssp 2.3 * Update base test ssp2 config file to be ssp 2.3 default * decribe OIDC logout testing in README * Support both new and old routes --------- Co-authored-by: Patrick Radtke <patrick@cirrusidentity.com>
- Loading branch information
Showing
76 changed files
with
2,119 additions
and
1,503 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<?php | ||
|
||
$attributemap = array( | ||
declare(strict_types=1); | ||
|
||
$attributemap = [ | ||
'amazon.name' => ['cn', 'displayName'], | ||
'amazon.email' => 'mail', | ||
'amazon.user_id' => 'uid', | ||
); | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<?php | ||
|
||
$attributemap = array( | ||
declare(strict_types=1); | ||
|
||
$attributemap = [ | ||
'apple.name.firstName' => 'givenName', | ||
'apple.name.lastName' => 'sn', | ||
'apple.email' => 'mail', | ||
'apple.sub' => 'uid', | ||
// apple.isPrivateEmail : There is no common name for this attribute | ||
); | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<?php | ||
$attributemap = array( | ||
|
||
declare(strict_types=1); | ||
$attributemap = [ | ||
|
||
'bitbucket.display_name' => 'displayName', | ||
'bitbucket.account_id' => 'uid', | ||
'bitbucket.email' => 'mail', | ||
); | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<?php | ||
|
||
$attributemap = array( | ||
declare(strict_types=1); | ||
|
||
$attributemap = [ | ||
'facebook.first_name' => 'givenName', | ||
'facebook.last_name' => 'sn', | ||
'facebook.name' => ['cn', 'displayName'], | ||
'facebook.email' => 'mail', | ||
'facebook.id' => 'uid', | ||
); | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
<?php | ||
$attributemap = array( | ||
|
||
declare(strict_types=1); | ||
|
||
$attributemap = [ | ||
'linkedin.firstName' => 'givenName', | ||
'linkedin.lastName' => 'sn', | ||
'linkedin.id' => 'uid', // any b64 character | ||
'linkedin.emailAddress' => 'mail', | ||
|
||
); | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
<?php | ||
|
||
$attributemap = array( | ||
declare(strict_types=1); | ||
|
||
$attributemap = [ | ||
'microsoft.displayName' => 'displayName', | ||
'microsoft.id' => 'uid', | ||
'microsoft.mail' => 'mail', | ||
'microsoft.surname' => 'sn', | ||
'microsoft.givenName' => 'givenName', | ||
'microsoft.name' => 'cn', | ||
); | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
<?php | ||
|
||
$attributemap = array( | ||
declare(strict_types=1); | ||
|
||
$attributemap = [ | ||
// http://openid.net/specs/openid-connect-core-1_0.html#Claims | ||
'oidc.sub' => 'uid', | ||
'oidc.family_name' => 'sn', | ||
'oidc.given_name' => 'givenName', | ||
'oidc.name' => 'cn', | ||
'oidc.preferred_username' => 'displayName', | ||
'oidc.email' => 'mail', | ||
); | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
$attributemap = [ | ||
// http://openid.net/specs/openid-connect-core-1_0.html#Claims | ||
'orcid.id' => 'eduPersonOrcid', // URI with a 16-digit number | ||
'orcid.sub' => 'uid', | ||
'orcid.family_name' => 'sn', | ||
'orcid.given_name' => 'givenName', | ||
'orcid.name' => 'cn', | ||
'orcid.preferred_username' => 'displayName', | ||
'orcid.email' => 'mail', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.