Commit a7f905f9 authored by Jacob Priddy's avatar Jacob Priddy 👌
Browse files

get saml login working again

parent 15067a3c
Pipeline #5439 failed with stages
in 2 minutes and 15 seconds
docker-compose.yml
simplesamlphp-1.18.5.bak
......@@ -81,7 +81,7 @@ $config = [
//'remember.username.enabled' => false,
//'remember.username.checked' => false,
'jacob.priddy:you thought this was my real password, didn\'t ya' => [
'jacob.priddy:password' => [
'first_name' => ['Jacob'],
'last_name' => ['Priddy'],
'emplid' => ['9876543'],
......
<?php
$attributemap = [
'sn' => 'urn:mace:dir:attribute-def:sn',
'telephoneNumber' => 'urn:mace:dir:attribute-def:telephoneNumber',
'facsimileTelephoneNumber' => 'urn:mace:dir:attribute-def:facsimileTelephoneNumber',
'postalAddress' => 'urn:mace:dir:attribute-def:postalAddress',
'givenName' => 'urn:mace:dir:attribute-def:givenName',
'homePhone' => 'urn:mace:dir:attribute-def:homePhone',
'homePostalAddress' => 'urn:mace:dir:attribute-def:homePostalAddress',
'mail' => 'urn:mace:dir:attribute-def:mail',
'mobile' => 'urn:mace:dir:attribute-def:mobile',
'preferredLanguage' => 'urn:mace:dir:attribute-def:preferredLanguage',
'eduPersonPrincipalName' => 'urn:mace:dir:attribute-def:eduPersonPrincipalName',
'eduPersonAffiliation' => 'urn:mace:dir:attribute-def:eduPersonAffiliation',
'eduPersonScopedAffiliation' => 'urn:mace:dir:attribute-def:eduPersonScopedAffiliation',
'eduPersonEntitlement' => 'urn:mace:dir:attribute-def:eduPersonEntitlement',
'eduPersonOrgDN' => 'urn:mace:dir:attribute-def:eduPersonOrgDN',
'eduPersonOrgUnitDN' => 'urn:mace:dir:attribute-def:eduPersonOrgUnitDN',
];
namespace ScopedSimpleSamlPHP;
$attributemap = ['sn' => 'urn:mace:dir:attribute-def:sn', 'telephoneNumber' => 'urn:mace:dir:attribute-def:telephoneNumber', 'facsimileTelephoneNumber' => 'urn:mace:dir:attribute-def:facsimileTelephoneNumber', 'postalAddress' => 'urn:mace:dir:attribute-def:postalAddress', 'givenName' => 'urn:mace:dir:attribute-def:givenName', 'homePhone' => 'urn:mace:dir:attribute-def:homePhone', 'homePostalAddress' => 'urn:mace:dir:attribute-def:homePostalAddress', 'mail' => 'urn:mace:dir:attribute-def:mail', 'mobile' => 'urn:mace:dir:attribute-def:mobile', 'preferredLanguage' => 'urn:mace:dir:attribute-def:preferredLanguage', 'eduPersonPrincipalName' => 'urn:mace:dir:attribute-def:eduPersonPrincipalName', 'eduPersonAffiliation' => 'urn:mace:dir:attribute-def:eduPersonAffiliation', 'eduPersonScopedAffiliation' => 'urn:mace:dir:attribute-def:eduPersonScopedAffiliation', 'eduPersonEntitlement' => 'urn:mace:dir:attribute-def:eduPersonEntitlement', 'eduPersonOrgDN' => 'urn:mace:dir:attribute-def:eduPersonOrgDN', 'eduPersonOrgUnitDN' => 'urn:mace:dir:attribute-def:eduPersonOrgUnitDN'];
<?php
namespace ScopedSimpleSamlPHP;
/**
* This file provides translations from the schac namespace to the old, deprecated namespace provided by TERENA.
*/
if (!defined('SCHAC_OLD_NS')) {
define('SCHAC_OLD_NS', 'urn:mace:terena.org:attribute-def:');
if (!\defined('SCHAC_OLD_NS')) {
\define('SCHAC_OLD_NS', 'urn:mace:terena.org:attribute-def:');
}
if (!defined('SCHAC_NEW_NS')) {
define('SCHAC_NEW_NS', 'urn:schac:attribute-def:');
if (!\defined('SCHAC_NEW_NS')) {
\define('SCHAC_NEW_NS', 'urn:schac:attribute-def:');
}
$attributemap = [
SCHAC_NEW_NS.'schacCountryOfCitizenship' => SCHAC_OLD_NS.'schacCountryOfCitizenship',
SCHAC_NEW_NS.'schacCountryOfResidence' => SCHAC_OLD_NS.'schacCountryOfResidence',
SCHAC_NEW_NS.'schacDateOfBirth' => SCHAC_OLD_NS.'schacDateOfBirth',
SCHAC_NEW_NS.'schacExpiryDate' => SCHAC_OLD_NS.'schacExpiryDate',
SCHAC_NEW_NS.'schacGender' => SCHAC_OLD_NS.'schacGender',
SCHAC_NEW_NS.'schacHomeOrganization' => SCHAC_OLD_NS.'schacHomeOrganization',
SCHAC_NEW_NS.'schacHomeOrganizationType' => SCHAC_OLD_NS.'schacHomeOrganizationType',
SCHAC_NEW_NS.'schacMotherTongue' => SCHAC_OLD_NS.'schacMotherTongue',
SCHAC_NEW_NS.'schacPersonalPosition' => SCHAC_OLD_NS.'schacPersonalPosition',
SCHAC_NEW_NS.'schacPersonalTitle' => SCHAC_OLD_NS.'schacPersonalTitle',
SCHAC_NEW_NS.'schacPersonalUniqueCode' => SCHAC_OLD_NS.'schacPersonalUniqueCode',
SCHAC_NEW_NS.'schacPersonalUniqueID' => SCHAC_OLD_NS.'schacPersonalUniqueID',
SCHAC_NEW_NS.'schacPlaceOfBirth' => SCHAC_OLD_NS.'schacPlaceOfBirth',
SCHAC_NEW_NS.'schacProjectMembership' => SCHAC_OLD_NS.'schacProjectMembership',
SCHAC_NEW_NS.'schacProjectSpecificRole' => SCHAC_OLD_NS.'schacProjectSpecificRole',
SCHAC_NEW_NS.'schacSn1' => SCHAC_OLD_NS.'schacSn1',
SCHAC_NEW_NS.'schacSn2' => SCHAC_OLD_NS.'schacSn2',
SCHAC_NEW_NS.'schacUserPresenceID' => SCHAC_OLD_NS.'schacUserPresenceID',
SCHAC_NEW_NS.'schacUserPrivateAttribute' => SCHAC_OLD_NS.'schacUserPrivateAttribute',
SCHAC_NEW_NS.'schacUserStatus' => SCHAC_OLD_NS.'schacUserStatus',
SCHAC_NEW_NS.'schacYearOfBirth' => SCHAC_OLD_NS.'schacYearOfBirth',
];
$attributemap = [\SCHAC_NEW_NS . 'schacCountryOfCitizenship' => \SCHAC_OLD_NS . 'schacCountryOfCitizenship', \SCHAC_NEW_NS . 'schacCountryOfResidence' => \SCHAC_OLD_NS . 'schacCountryOfResidence', \SCHAC_NEW_NS . 'schacDateOfBirth' => \SCHAC_OLD_NS . 'schacDateOfBirth', \SCHAC_NEW_NS . 'schacExpiryDate' => \SCHAC_OLD_NS . 'schacExpiryDate', \SCHAC_NEW_NS . 'schacGender' => \SCHAC_OLD_NS . 'schacGender', \SCHAC_NEW_NS . 'schacHomeOrganization' => \SCHAC_OLD_NS . 'schacHomeOrganization', \SCHAC_NEW_NS . 'schacHomeOrganizationType' => \SCHAC_OLD_NS . 'schacHomeOrganizationType', \SCHAC_NEW_NS . 'schacMotherTongue' => \SCHAC_OLD_NS . 'schacMotherTongue', \SCHAC_NEW_NS . 'schacPersonalPosition' => \SCHAC_OLD_NS . 'schacPersonalPosition', \SCHAC_NEW_NS . 'schacPersonalTitle' => \SCHAC_OLD_NS . 'schacPersonalTitle', \SCHAC_NEW_NS . 'schacPersonalUniqueCode' => \SCHAC_OLD_NS . 'schacPersonalUniqueCode', \SCHAC_NEW_NS . 'schacPersonalUniqueID' => \SCHAC_OLD_NS . 'schacPersonalUniqueID', \SCHAC_NEW_NS . 'schacPlaceOfBirth' => \SCHAC_OLD_NS . 'schacPlaceOfBirth', \SCHAC_NEW_NS . 'schacProjectMembership' => \SCHAC_OLD_NS . 'schacProjectMembership', \SCHAC_NEW_NS . 'schacProjectSpecificRole' => \SCHAC_OLD_NS . 'schacProjectSpecificRole', \SCHAC_NEW_NS . 'schacSn1' => \SCHAC_OLD_NS . 'schacSn1', \SCHAC_NEW_NS . 'schacSn2' => \SCHAC_OLD_NS . 'schacSn2', \SCHAC_NEW_NS . 'schacUserPresenceID' => \SCHAC_OLD_NS . 'schacUserPresenceID', \SCHAC_NEW_NS . 'schacUserPrivateAttribute' => \SCHAC_OLD_NS . 'schacUserPrivateAttribute', \SCHAC_NEW_NS . 'schacUserStatus' => \SCHAC_OLD_NS . 'schacUserStatus', \SCHAC_NEW_NS . 'schacYearOfBirth' => \SCHAC_OLD_NS . 'schacYearOfBirth'];
<?php
$attributemap = [
// Generated Facebook Attributes
'facebook_user' => 'eduPersonPrincipalName', // username OR uid @ facebook.com
'facebook_targetedID' => 'eduPersonTargetedID', // http://facebook.com!uid
'facebook_cn' => 'cn', // duplicate of displayName
namespace ScopedSimpleSamlPHP;
$attributemap = [
// Generated Facebook Attributes
'facebook_user' => 'eduPersonPrincipalName',
// username OR uid @ facebook.com
'facebook_targetedID' => 'eduPersonTargetedID',
// http://facebook.com!uid
'facebook_cn' => 'cn',
// duplicate of displayName
// Attributes Returned by Facebook
'facebook.first_name' => 'givenName',
'facebook.last_name' => 'sn',
'facebook.name' => 'displayName', // or 'cn'
'facebook.email' => 'mail',
'facebook.username' => 'uid', // facebook username (maybe blank)
'facebook.first_name' => 'givenName',
'facebook.last_name' => 'sn',
'facebook.name' => 'displayName',
// or 'cn'
'facebook.email' => 'mail',
'facebook.username' => 'uid',
// facebook username (maybe blank)
'facebook.profile_url' => 'labeledURI',
'facebook.locale' => 'preferredLanguage',
'facebook.about_me' => 'description',
'facebook.locale' => 'preferredLanguage',
'facebook.about_me' => 'description',
];
<?php
$attributemap = [
'mobile' => 'urn:mace:dir:attribute-def:mobile',
'displayName' => 'urn:oid:2.16.840.1.113730.3.1.241',
];
namespace ScopedSimpleSamlPHP;
$attributemap = ['mobile' => 'urn:mace:dir:attribute-def:mobile', 'displayName' => 'urn:oid:2.16.840.1.113730.3.1.241'];
<?php
$attributemap = [
namespace ScopedSimpleSamlPHP;
$attributemap = [
// See http://developer.linkedin.com/docs/DOC-1061 for LinkedIn Profile fields.
// NB: JSON response requires the conversion of field names from hyphened to camelCase.
// For instance, first-name becomes firstName.
// Generated LinkedIn Attributes
'linkedin_user' => 'eduPersonPrincipalName', // id @ linkedin.com
'linkedin_targetedID' => 'eduPersonTargetedID', // http://linkedin.com!id
'linkedin_user' => 'eduPersonPrincipalName',
// id @ linkedin.com
'linkedin_targetedID' => 'eduPersonTargetedID',
// http://linkedin.com!id
// Attributes Returned by LinkedIn
'linkedin.firstName' => 'givenName',
'linkedin.lastName' => 'sn',
'linkedin.id' => 'uid', // alpha + mixed case user id
'linkedin.headline' => 'title',
'linkedin.summary' => 'description',
'linkedin.firstName' => 'givenName',
'linkedin.lastName' => 'sn',
'linkedin.id' => 'uid',
// alpha + mixed case user id
'linkedin.headline' => 'title',
'linkedin.summary' => 'description',
];
<?php // Maps AD LDAP to Claims from http://msdn.microsoft.com/en-us/library/hh159803.aspx
$attributemap = [
'c' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country',
'givenName' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname',
'mail' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress',
'memberOf' => 'http://schemas.microsoft.com/ws/2008/06/identity/claims/role',
'postalcode' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/postalcode',
'uid' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name',
'sn' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname',
'st' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/stateorprovince',
'streetaddress' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/streetaddress',
'telephonenumber' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/otherphone',
];
<?php
namespace ScopedSimpleSamlPHP;
// Maps AD LDAP to Claims from http://msdn.microsoft.com/en-us/library/hh159803.aspx
$attributemap = ['c' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country', 'givenName' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname', 'mail' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress', 'memberOf' => 'http://schemas.microsoft.com/ws/2008/06/identity/claims/role', 'postalcode' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/postalcode', 'uid' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name', 'sn' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname', 'st' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/stateorprovince', 'streetaddress' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/streetaddress', 'telephonenumber' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/otherphone'];
<?php
namespace ScopedSimpleSamlPHP;
/**
* This file provides translations from the deprecated schac namespace provided by TERENA, to the new namespace.
*/
if (!defined('SCHAC_OLD_NS')) {
define('SCHAC_OLD_NS', 'urn:mace:terena.org:attribute-def:');
if (!\defined('SCHAC_OLD_NS')) {
\define('SCHAC_OLD_NS', 'urn:mace:terena.org:attribute-def:');
}
if (!defined('SCHAC_NEW_NS')) {
define('SCHAC_NEW_NS', 'urn:schac:attribute-def:');
if (!\defined('SCHAC_NEW_NS')) {
\define('SCHAC_NEW_NS', 'urn:schac:attribute-def:');
}
$attributemap = [
SCHAC_OLD_NS.'schacCountryOfCitizenship' => SCHAC_NEW_NS.'schacCountryOfCitizenship',
SCHAC_OLD_NS.'schacCountryOfResidence' => SCHAC_NEW_NS.'schacCountryOfResidence',
SCHAC_OLD_NS.'schacDateOfBirth' => SCHAC_NEW_NS.'schacDateOfBirth',
SCHAC_OLD_NS.'schacExpiryDate' => SCHAC_NEW_NS.'schacExpiryDate',
SCHAC_OLD_NS.'schacGender' => SCHAC_NEW_NS.'schacGender',
SCHAC_OLD_NS.'schacHomeOrganization' => SCHAC_NEW_NS.'schacHomeOrganization',
SCHAC_OLD_NS.'schacHomeOrganizationType' => SCHAC_NEW_NS.'schacHomeOrganizationType',
SCHAC_OLD_NS.'schacMotherTongue' => SCHAC_NEW_NS.'schacMotherTongue',
SCHAC_OLD_NS.'schacPersonalPosition' => SCHAC_NEW_NS.'schacPersonalPosition',
SCHAC_OLD_NS.'schacPersonalTitle' => SCHAC_NEW_NS.'schacPersonalTitle',
SCHAC_OLD_NS.'schacPersonalUniqueCode' => SCHAC_NEW_NS.'schacPersonalUniqueCode',
SCHAC_OLD_NS.'schacPersonalUniqueID' => SCHAC_NEW_NS.'schacPersonalUniqueID',
SCHAC_OLD_NS.'schacPlaceOfBirth' => SCHAC_NEW_NS.'schacPlaceOfBirth',
SCHAC_OLD_NS.'schacProjectMembership' => SCHAC_NEW_NS.'schacProjectMembership',
SCHAC_OLD_NS.'schacProjectSpecificRole' => SCHAC_NEW_NS.'schacProjectSpecificRole',
SCHAC_OLD_NS.'schacSn1' => SCHAC_NEW_NS.'schacSn1',
SCHAC_OLD_NS.'schacSn2' => SCHAC_NEW_NS.'schacSn2',
SCHAC_OLD_NS.'schacUserPresenceID' => SCHAC_NEW_NS.'schacUserPresenceID',
SCHAC_OLD_NS.'schacUserPrivateAttribute' => SCHAC_NEW_NS.'schacUserPrivateAttribute',
SCHAC_OLD_NS.'schacUserStatus' => SCHAC_NEW_NS.'schacUserStatus',
SCHAC_OLD_NS.'schacYearOfBirth' => SCHAC_NEW_NS.'schacYearOfBirth',
];
$attributemap = [\SCHAC_OLD_NS . 'schacCountryOfCitizenship' => \SCHAC_NEW_NS . 'schacCountryOfCitizenship', \SCHAC_OLD_NS . 'schacCountryOfResidence' => \SCHAC_NEW_NS . 'schacCountryOfResidence', \SCHAC_OLD_NS . 'schacDateOfBirth' => \SCHAC_NEW_NS . 'schacDateOfBirth', \SCHAC_OLD_NS . 'schacExpiryDate' => \SCHAC_NEW_NS . 'schacExpiryDate', \SCHAC_OLD_NS . 'schacGender' => \SCHAC_NEW_NS . 'schacGender', \SCHAC_OLD_NS . 'schacHomeOrganization' => \SCHAC_NEW_NS . 'schacHomeOrganization', \SCHAC_OLD_NS . 'schacHomeOrganizationType' => \SCHAC_NEW_NS . 'schacHomeOrganizationType', \SCHAC_OLD_NS . 'schacMotherTongue' => \SCHAC_NEW_NS . 'schacMotherTongue', \SCHAC_OLD_NS . 'schacPersonalPosition' => \SCHAC_NEW_NS . 'schacPersonalPosition', \SCHAC_OLD_NS . 'schacPersonalTitle' => \SCHAC_NEW_NS . 'schacPersonalTitle', \SCHAC_OLD_NS . 'schacPersonalUniqueCode' => \SCHAC_NEW_NS . 'schacPersonalUniqueCode', \SCHAC_OLD_NS . 'schacPersonalUniqueID' => \SCHAC_NEW_NS . 'schacPersonalUniqueID', \SCHAC_OLD_NS . 'schacPlaceOfBirth' => \SCHAC_NEW_NS . 'schacPlaceOfBirth', \SCHAC_OLD_NS . 'schacProjectMembership' => \SCHAC_NEW_NS . 'schacProjectMembership', \SCHAC_OLD_NS . 'schacProjectSpecificRole' => \SCHAC_NEW_NS . 'schacProjectSpecificRole', \SCHAC_OLD_NS . 'schacSn1' => \SCHAC_NEW_NS . 'schacSn1', \SCHAC_OLD_NS . 'schacSn2' => \SCHAC_NEW_NS . 'schacSn2', \SCHAC_OLD_NS . 'schacUserPresenceID' => \SCHAC_NEW_NS . 'schacUserPresenceID', \SCHAC_OLD_NS . 'schacUserPrivateAttribute' => \SCHAC_NEW_NS . 'schacUserPrivateAttribute', \SCHAC_OLD_NS . 'schacUserStatus' => \SCHAC_NEW_NS . 'schacUserStatus', \SCHAC_OLD_NS . 'schacYearOfBirth' => \SCHAC_NEW_NS . 'schacYearOfBirth'];
<?php
$attributemap = [
'urn:oid:0.9.2342.19200300.100.1.41' => 'mobile',
'urn:oid:1.3.6.1.4.1.5923.1.1.1.6' => 'eduPersonPrincipalName',
'urn:oid:0.9.2342.19200300.100.1.3' => 'mail',
'urn:oid:2.5.4.3' => 'cn',
'urn:oid:2.16.840.1.113730.3.1.241' => 'displayName',
'urn:oid:2.5.4.4' => 'sn',
'urn:oid:2.5.4.42' => 'givenName',
'urn:oid:2.16.756.1.2.5.1.1.1' => 'eduPerson',
];
namespace ScopedSimpleSamlPHP;
$attributemap = ['urn:oid:0.9.2342.19200300.100.1.41' => 'mobile', 'urn:oid:1.3.6.1.4.1.5923.1.1.1.6' => 'eduPersonPrincipalName', 'urn:oid:0.9.2342.19200300.100.1.3' => 'mail', 'urn:oid:2.5.4.3' => 'cn', 'urn:oid:2.16.840.1.113730.3.1.241' => 'displayName', 'urn:oid:2.5.4.4' => 'sn', 'urn:oid:2.5.4.42' => 'givenName', 'urn:oid:2.16.756.1.2.5.1.1.1' => 'eduPerson'];
<?php
$attributemap = [
'urn:oid:0.9.2342.19200300.100.1.1' => 'uid',
'urn:oid:0.9.2342.19200300.100.1.10' => 'manager',
'urn:oid:0.9.2342.19200300.100.1.11' => 'documentIdentifier',
'urn:oid:0.9.2342.19200300.100.1.12' => 'documentTitle',
'urn:oid:0.9.2342.19200300.100.1.13' => 'documentVersion',
'urn:oid:0.9.2342.19200300.100.1.14' => 'documentAuthor',
'urn:oid:0.9.2342.19200300.100.1.15' => 'documentLocation',
'urn:oid:0.9.2342.19200300.100.1.2' => 'textEncodedORAddress',
'urn:oid:0.9.2342.19200300.100.1.20' => 'homePhone',
'urn:oid:0.9.2342.19200300.100.1.21' => 'secretary',
'urn:oid:0.9.2342.19200300.100.1.22' => 'otherMailbox',
'urn:oid:0.9.2342.19200300.100.1.25' => 'dc',
'urn:oid:0.9.2342.19200300.100.1.26' => 'aRecord',
'urn:oid:0.9.2342.19200300.100.1.27' => 'mDRecord',
'urn:oid:0.9.2342.19200300.100.1.28' => 'mXRecord',
'urn:oid:0.9.2342.19200300.100.1.29' => 'nSRecord',
'urn:oid:0.9.2342.19200300.100.1.3' => 'mail',
'urn:oid:0.9.2342.19200300.100.1.30' => 'sOARecord',
'urn:oid:0.9.2342.19200300.100.1.31' => 'cNAMERecord',
'urn:oid:0.9.2342.19200300.100.1.37' => 'associatedDomain',
'urn:oid:0.9.2342.19200300.100.1.38' => 'associatedName',
'urn:oid:0.9.2342.19200300.100.1.39' => 'homePostalAddress',
'urn:oid:0.9.2342.19200300.100.1.4' => 'info',
'urn:oid:0.9.2342.19200300.100.1.40' => 'personalTitle',
'urn:oid:0.9.2342.19200300.100.1.41' => 'mobile',
'urn:oid:0.9.2342.19200300.100.1.42' => 'pager',
'urn:oid:0.9.2342.19200300.100.1.43' => 'co',
'urn:oid:0.9.2342.19200300.100.1.44' => 'uniqueIdentifier',
'urn:oid:0.9.2342.19200300.100.1.45' => 'organizationalStatus',
'urn:oid:0.9.2342.19200300.100.1.46' => 'janetMailbox',
'urn:oid:0.9.2342.19200300.100.1.47' => 'mailPreferenceOption',
'urn:oid:0.9.2342.19200300.100.1.48' => 'buildingName',
'urn:oid:0.9.2342.19200300.100.1.49' => 'dSAQuality',
'urn:oid:0.9.2342.19200300.100.1.5' => 'drink',
'urn:oid:0.9.2342.19200300.100.1.50' => 'singleLevelQuality',
'urn:oid:0.9.2342.19200300.100.1.51' => 'subtreeMinimumQuality',
'urn:oid:0.9.2342.19200300.100.1.52' => 'subtreeMaximumQuality',
'urn:oid:0.9.2342.19200300.100.1.53' => 'personalSignature',
'urn:oid:0.9.2342.19200300.100.1.54' => 'dITRedirect',
'urn:oid:0.9.2342.19200300.100.1.55' => 'audio',
'urn:oid:0.9.2342.19200300.100.1.56' => 'documentPublisher',
'urn:oid:0.9.2342.19200300.100.1.6' => 'roomNumber',
'urn:oid:0.9.2342.19200300.100.1.60' => 'jpegPhoto',
'urn:oid:0.9.2342.19200300.100.1.7' => 'photo',
'urn:oid:0.9.2342.19200300.100.1.8' => 'userClass',
'urn:oid:0.9.2342.19200300.100.1.9' => 'host',
'urn:oid:1.2.840.113549.1.9.1' => 'email',
'urn:oid:1.2.752.194.10.2.2' => 'sisSchoolGrade',
'urn:oid:1.2.752.194.10.2.1' => 'sisLegalGuardianFor',
'urn:oid:1.2.752.194.10.3' => 'sisOrgDepartment',
'urn:oid:1.2.752.194.10.2.4' => 'sisSchoolUnitCode',
'urn:oid:1.3.6.1.4.1.2428.90.1.1' => 'norEduOrgUniqueNumber',
'urn:oid:1.3.6.1.4.1.2428.90.1.11' => 'norEduOrgSchemaVersion',
'urn:oid:1.3.6.1.4.1.2428.90.1.12' => 'norEduOrgNIN',
'urn:oid:1.3.6.1.4.1.2428.90.1.2' => 'norEduOrgUnitUniqueNumber',
'urn:oid:1.3.6.1.4.1.2428.90.1.3' => 'norEduPersonBirthDate',
'urn:oid:1.3.6.1.4.1.2428.90.1.4' => 'norEduPersonLIN',
'urn:oid:1.3.6.1.4.1.2428.90.1.5' => 'norEduPersonNIN',
'urn:oid:1.3.6.1.4.1.2428.90.1.6' => 'norEduOrgAcronym',
'urn:oid:1.3.6.1.4.1.2428.90.1.7' => 'norEduOrgUniqueIdentifier',
'urn:oid:1.3.6.1.4.1.2428.90.1.8' => 'norEduOrgUnitUniqueIdentifier',
'urn:oid:1.3.6.1.4.1.2428.90.1.9' => 'federationFeideSchemaVersion',
'urn:oid:1.3.6.1.4.1.24552.500.1.1.1.13' => 'sshPublicKey',
'urn:oid:1.3.6.1.4.1.250.1.57' => 'labeledURI',
'urn:oid:1.3.6.1.4.1.5923.1.1.1.1' => 'eduPersonAffiliation',
'urn:oid:1.3.6.1.4.1.5923.1.1.1.11' => 'eduPersonAssurance',
'urn:oid:1.3.6.1.4.1.5923.1.1.1.10' => 'eduPersonTargetedID',
'urn:oid:1.3.6.1.4.1.5923.1.1.1.13' => 'eduPersonUniqueId',
'urn:oid:1.3.6.1.4.1.5923.1.1.1.16' => 'eduPersonOrcid',
'urn:oid:1.3.6.1.4.1.5923.1.1.1.2' => 'eduPersonNickname',
'urn:oid:1.3.6.1.4.1.5923.1.1.1.3' => 'eduPersonOrgDN',
'urn:oid:1.3.6.1.4.1.5923.1.1.1.4' => 'eduPersonOrgUnitDN',
'urn:oid:1.3.6.1.4.1.5923.1.1.1.5' => 'eduPersonPrimaryAffiliation',
'urn:oid:1.3.6.1.4.1.5923.1.1.1.6' => 'eduPersonPrincipalName',
'urn:oid:1.3.6.1.4.1.5923.1.1.1.7' => 'eduPersonEntitlement',
'urn:oid:1.3.6.1.4.1.5923.1.1.1.8' => 'eduPersonPrimaryOrgUnitDN',
'urn:oid:1.3.6.1.4.1.5923.1.1.1.9' => 'eduPersonScopedAffiliation',
'urn:oid:1.3.6.1.4.1.5923.1.2.1.2' => 'eduOrgHomePageURI',
'urn:oid:1.3.6.1.4.1.5923.1.2.1.3' => 'eduOrgIdentityAuthNPolicyURI',
'urn:oid:1.3.6.1.4.1.5923.1.2.1.4' => 'eduOrgLegalName',
'urn:oid:1.3.6.1.4.1.5923.1.2.1.5' => 'eduOrgSuperiorURI',
'urn:oid:1.3.6.1.4.1.5923.1.2.1.6' => 'eduOrgWhitePagesURI',
'urn:oid:1.3.6.1.4.1.5923.1.5.1.1' => 'isMemberOf',
'urn:oid:1.3.6.1.4.1.25178.1.0.2.3' => 'schacYearOfBirth',
'urn:oid:1.3.6.1.4.1.25178.1.2.1' => 'schacMotherTongue',
'urn:oid:1.3.6.1.4.1.25178.1.2.2' => 'schacGender',
'urn:oid:1.3.6.1.4.1.25178.1.2.3' => 'schacDateOfBirth',
'urn:oid:1.3.6.1.4.1.25178.1.2.4' => 'schacPlaceOfBirth',
'urn:oid:1.3.6.1.4.1.25178.1.2.5' => 'schacCountryOfCitizenship',
'urn:oid:1.3.6.1.4.1.25178.1.2.6' => 'schacSn1',
'urn:oid:1.3.6.1.4.1.25178.1.2.7' => 'schacSn2',
'urn:oid:1.3.6.1.4.1.25178.1.2.8' => 'schacPersonalTitle',
'urn:oid:1.3.6.1.4.1.25178.1.2.9' => 'schacHomeOrganization',
'urn:oid:1.3.6.1.4.1.25178.1.2.10' => 'schacHomeOrganizationType',
'urn:oid:1.3.6.1.4.1.25178.1.2.11' => 'schacCountryOfResidence',
'urn:oid:1.3.6.1.4.1.25178.1.2.12' => 'schacUserPresenceID',
'urn:oid:1.3.6.1.4.1.25178.1.2.13' => 'schacPersonalPosition',
'urn:oid:1.3.6.1.4.1.25178.1.2.14' => 'schacPersonalUniqueCode',
'urn:oid:1.3.6.1.4.1.25178.1.2.15' => 'schacPersonalUniqueID',
'urn:oid:1.3.6.1.4.1.25178.1.2.17' => 'schacExpiryDate',
'urn:oid:1.3.6.1.4.1.25178.1.2.18' => 'schacUserPrivateAttribute',
'urn:oid:1.3.6.1.4.1.25178.1.2.19' => 'schacUserStatus',
'urn:oid:1.3.6.1.4.1.25178.1.2.20' => 'schacProjectMembership',
'urn:oid:1.3.6.1.4.1.25178.1.2.21' => 'schacProjectSpecificRole',
'urn:oid:2.16.840.1.113730.3.1.1' => 'carLicense',
'urn:oid:2.16.840.1.113730.3.1.2' => 'departmentNumber',
'urn:oid:2.16.840.1.113730.3.1.216' => 'userPKCS12',
'urn:oid:2.16.840.1.113730.3.1.241' => 'displayName',
'urn:oid:2.16.840.1.113730.3.1.3' => 'employeeNumber',
'urn:oid:2.16.840.1.113730.3.1.39' => 'preferredLanguage',
'urn:oid:2.16.840.1.113730.3.1.4' => 'employeeType',
'urn:oid:2.16.840.1.113730.3.1.40' => 'userSMIMECertificate',
'urn:oid:2.5.4.0' => 'objectClass',
'urn:oid:2.5.4.1' => 'aliasedObjectName',
'urn:oid:2.5.4.10' => 'o',
'urn:oid:2.5.4.11' => 'ou',
'urn:oid:2.5.4.12' => 'title',
'urn:oid:2.5.4.13' => 'description',
'urn:oid:2.5.4.14' => 'searchGuide',
'urn:oid:2.5.4.15' => 'businessCategory',
'urn:oid:2.5.4.16' => 'postalAddress',
'urn:oid:2.5.4.17' => 'postalCode',
'urn:oid:2.5.4.18' => 'postOfficeBox',
'urn:oid:2.5.4.19' => 'physicalDeliveryOfficeName',
'urn:oid:2.5.4.2' => 'knowledgeInformation',
'urn:oid:2.5.4.20' => 'telephoneNumber',
'urn:oid:2.5.4.21' => 'telexNumber',
'urn:oid:2.5.4.22' => 'teletexTerminalIdentifier',
'urn:oid:2.5.4.23' => 'facsimileTelephoneNumber',
'urn:oid:2.5.4.24' => 'x121Address',
'urn:oid:2.5.4.25' => 'internationaliSDNNumber',
'urn:oid:2.5.4.26' => 'registeredAddress',
'urn:oid:2.5.4.27' => 'destinationIndicator',
'urn:oid:2.5.4.28' => 'preferredDeliveryMethod',
'urn:oid:2.5.4.29' => 'presentationAddress',
'urn:oid:2.5.4.3' => 'cn',
'urn:oid:2.5.4.30' => 'supportedApplicationContext',
'urn:oid:2.5.4.31' => 'member',
'urn:oid:2.5.4.32' => 'owner',
'urn:oid:2.5.4.33' => 'roleOccupant',
'urn:oid:2.5.4.34' => 'seeAlso',
'urn:oid:2.5.4.35' => 'userPassword',
'urn:oid:2.5.4.36' => 'userCertificate',
'urn:oid:2.5.4.37' => 'cACertificate',
'urn:oid:2.5.4.38' => 'authorityRevocationList',
'urn:oid:2.5.4.39' => 'certificateRevocationList',
'urn:oid:2.5.4.4' => 'sn',
'urn:oid:2.5.4.40' => 'crossCertificatePair',
'urn:oid:2.5.4.41' => 'name',
'urn:oid:2.5.4.42' => 'givenName',
'urn:oid:2.5.4.43' => 'initials',
'urn:oid:2.5.4.44' => 'generationQualifier',
'urn:oid:2.5.4.45' => 'x500UniqueIdentifier',
'urn:oid:2.5.4.46' => 'dnQualifier',
'urn:oid:2.5.4.47' => 'enhancedSearchGuide',
'urn:oid:2.5.4.48' => 'protocolInformation',
'urn:oid:2.5.4.49' => 'distinguishedName',
'urn:oid:2.5.4.5' => 'serialNumber',
'urn:oid:2.5.4.50' => 'uniqueMember',
'urn:oid:2.5.4.51' => 'houseIdentifier',
'urn:oid:2.5.4.52' => 'supportedAlgorithms',
'urn:oid:2.5.4.53' => 'deltaRevocationList',
'urn:oid:2.5.4.54' => 'dmdName',
'urn:oid:2.5.4.6' => 'c',
'urn:oid:2.5.4.65' => 'pseudonym',
'urn:oid:2.5.4.7' => 'l',
'urn:oid:2.5.4.8' => 'st',
'urn:oid:2.5.4.9' => 'street',
];
namespace ScopedSimpleSamlPHP;
$attributemap = ['urn:oid:0.9.2342.19200300.100.1.1' => 'uid', 'urn:oid:0.9.2342.19200300.100.1.10' => 'manager', 'urn:oid:0.9.2342.19200300.100.1.11' => 'documentIdentifier', 'urn:oid:0.9.2342.19200300.100.1.12' => 'documentTitle', 'urn:oid:0.9.2342.19200300.100.1.13' => 'documentVersion', 'urn:oid:0.9.2342.19200300.100.1.14' => 'documentAuthor', 'urn:oid:0.9.2342.19200300.100.1.15' => 'documentLocation', 'urn:oid:0.9.2342.19200300.100.1.2' => 'textEncodedORAddress', 'urn:oid:0.9.2342.19200300.100.1.20' => 'homePhone', 'urn:oid:0.9.2342.19200300.100.1.21' => 'secretary', 'urn:oid:0.9.2342.19200300.100.1.22' => 'otherMailbox', 'urn:oid:0.9.2342.19200300.100.1.25' => 'dc', 'urn:oid:0.9.2342.19200300.100.1.26' => 'aRecord', 'urn:oid:0.9.2342.19200300.100.1.27' => 'mDRecord', 'urn:oid:0.9.2342.19200300.100.1.28' => 'mXRecord', 'urn:oid:0.9.2342.19200300.100.1.29' => 'nSRecord', 'urn:oid:0.9.2342.19200300.100.1.3' => 'mail', 'urn:oid:0.9.2342.19200300.100.1.30' => 'sOARecord', 'urn:oid:0.9.2342.19200300.100.1.31' => 'cNAMERecord', 'urn:oid:0.9.2342.19200300.100.1.37' => 'associatedDomain', 'urn:oid:0.9.2342.19200300.100.1.38' => 'associatedName', 'urn:oid:0.9.2342.19200300.100.1.39' => 'homePostalAddress', 'urn:oid:0.9.2342.19200300.100.1.4' => 'info', 'urn:oid:0.9.2342.19200300.100.1.40' => 'personalTitle', 'urn:oid:0.9.2342.19200300.100.1.41' => 'mobile', 'urn:oid:0.9.2342.19200300.100.1.42' => 'pager', 'urn:oid:0.9.2342.19200300.100.1.43' => 'co', 'urn:oid:0.9.2342.19200300.100.1.44' => 'uniqueIdentifier', 'urn:oid:0.9.2342.19200300.100.1.45' => 'organizationalStatus', 'urn:oid:0.9.2342.19200300.100.1.46' => 'janetMailbox', 'urn:oid:0.9.2342.19200300.100.1.47' => 'mailPreferenceOption', 'urn:oid:0.9.2342.19200300.100.1.48' => 'buildingName', 'urn:oid:0.9.2342.19200300.100.1.49' => 'dSAQuality', 'urn:oid:0.9.2342.19200300.100.1.5' => 'drink', 'urn:oid:0.9.2342.19200300.100.1.50' => 'singleLevelQuality', 'urn:oid:0.9.2342.19200300.100.1.51' => 'subtreeMinimumQuality', 'urn:oid:0.9.2342.19200300.100.1.52' => 'subtreeMaximumQuality', 'urn:oid:0.9.2342.19200300.100.1.53' => 'personalSignature', 'urn:oid:0.9.2342.19200300.100.1.54' => 'dITRedirect', 'urn:oid:0.9.2342.19200300.100.1.55' => 'audio', 'urn:oid:0.9.2342.19200300.100.1.56' => 'documentPublisher', 'urn:oid:0.9.2342.19200300.100.1.6' => 'roomNumber', 'urn:oid:0.9.2342.19200300.100.1.60' => 'jpegPhoto', 'urn:oid:0.9.2342.19200300.100.1.7' => 'photo', 'urn:oid:0.9.2342.19200300.100.1.8' => 'userClass', 'urn:oid:0.9.2342.19200300.100.1.9' => 'host', 'urn:oid:1.2.840.113549.1.9.1' => 'email', 'urn:oid:1.2.752.194.10.2.2' => 'sisSchoolGrade', 'urn:oid:1.2.752.194.10.2.1' => 'sisLegalGuardianFor', 'urn:oid:1.2.752.194.10.3' => 'sisOrgDepartment', 'urn:oid:1.2.752.194.10.2.4' => 'sisSchoolUnitCode', 'urn:oid:1.3.6.1.4.1.2428.90.1.1' => 'norEduOrgUniqueNumber', 'urn:oid:1.3.6.1.4.1.2428.90.1.11' => 'norEduOrgSchemaVersion', 'urn:oid:1.3.6.1.4.1.2428.90.1.12' => 'norEduOrgNIN', 'urn:oid:1.3.6.1.4.1.2428.90.1.2' => 'norEduOrgUnitUniqueNumber', 'urn:oid:1.3.6.1.4.1.2428.90.1.3' => 'norEduPersonBirthDate', 'urn:oid:1.3.6.1.4.1.2428.90.1.4' => 'norEduPersonLIN', 'urn:oid:1.3.6.1.4.1.2428.90.1.5' => 'norEduPersonNIN', 'urn:oid:1.3.6.1.4.1.2428.90.1.6' => 'norEduOrgAcronym', 'urn:oid:1.3.6.1.4.1.2428.90.1.7' => 'norEduOrgUniqueIdentifier', 'urn:oid:1.3.6.1.4.1.2428.90.1.8' => 'norEduOrgUnitUniqueIdentifier', 'urn:oid:1.3.6.1.4.1.2428.90.1.9' => 'federationFeideSchemaVersion', 'urn:oid:1.3.6.1.4.1.24552.500.1.1.1.13' => 'sshPublicKey', 'urn:oid:1.3.6.1.4.1.250.1.57' => 'labeledURI', 'urn:oid:1.3.6.1.4.1.5923.1.1.1.1' => 'eduPersonAffiliation', 'urn:oid:1.3.6.1.4.1.5923.1.1.1.11' => 'eduPersonAssurance', 'urn:oid:1.3.6.1.4.1.5923.1.1.1.10' => 'eduPersonTargetedID', 'urn:oid:1.3.6.1.4.1.5923.1.1.1.13' => 'eduPersonUniqueId', 'urn:oid:1.3.6.1.4.1.5923.1.1.1.16' => 'eduPersonOrcid', 'urn:oid:1.3.6.1.4.1.5923.1.1.1.2' => 'eduPersonNickname', 'urn:oid:1.3.6.1.4.1.5923.1.1.1.3' => 'eduPersonOrgDN', 'urn:oid:1.3.6.1.4.1.5923.1.1.1.4' => 'eduPersonOrgUnitDN', 'urn:oid:1.3.6.1.4.1.5923.1.1.1.5' => 'eduPersonPrimaryAffiliation', 'urn:oid:1.3.6.1.4.1.5923.1.1.1.6' => 'eduPersonPrincipalName', 'urn:oid:1.3.6.1.4.1.5923.1.1.1.7' => 'eduPersonEntitlement', 'urn:oid:1.3.6.1.4.1.5923.1.1.1.8' => 'eduPersonPrimaryOrgUnitDN', 'urn:oid:1.3.6.1.4.1.5923.1.1.1.9' => 'eduPersonScopedAffiliation', 'urn:oid:1.3.6.1.4.1.5923.1.2.1.2' => 'eduOrgHomePageURI', 'urn:oid:1.3.6.1.4.1.5923.1.2.1.3' => 'eduOrgIdentityAuthNPolicyURI', 'urn:oid:1.3.6.1.4.1.5923.1.2.1.4' => 'eduOrgLegalName', 'urn:oid:1.3.6.1.4.1.5923.1.2.1.5' => 'eduOrgSuperiorURI', 'urn:oid:1.3.6.1.4.1.5923.1.2.1.6' => 'eduOrgWhitePagesURI', 'urn:oid:1.3.6.1.4.1.5923.1.5.1.1' => 'isMemberOf', 'urn:oid:1.3.6.1.4.1.25178.1.0.2.3' => 'schacYearOfBirth', 'urn:oid:1.3.6.1.4.1.25178.1.2.1' => 'schacMotherTongue', 'urn:oid:1.3.6.1.4.1.25178.1.2.2' => 'schacGender', 'urn:oid:1.3.6.1.4.1.25178.1.2.3' => 'schacDateOfBirth', 'urn:oid:1.3.6.1.4.1.25178.1.2.4' => 'schacPlaceOfBirth', 'urn:oid:1.3.6.1.4.1.25178.1.2.5' => 'schacCountryOfCitizenship', 'urn:oid:1.3.6.1.4.1.25178.1.2.6' => 'schacSn1', 'urn:oid:1.3.6.1.4.1.25178.1.2.7' => 'schacSn2', 'urn:oid:1.3.6.1.4.1.25178.1.2.8' => 'schacPersonalTitle', 'urn:oid:1.3.6.1.4.1.25178.1.2.9' => 'schacHomeOrganization', 'urn:oid:1.3.6.1.4.1.25178.1.2.10' => 'schacHomeOrganizationType', 'urn:oid:1.3.6.1.4.1.25178.1.2.11' => 'schacCountryOfResidence', 'urn:oid:1.3.6.1.4.1.25178.1.2.12' => 'schacUserPresenceID', 'urn:oid:1.3.6.1.4.1.25178.1.2.13' => 'schacPersonalPosition', 'urn:oid:1.3.6.1.4.1.25178.1.2.14' => 'schacPersonalUniqueCode', 'urn:oid:1.3.6.1.4.1.25178.1.2.15' => 'schacPersonalUniqueID', 'urn:oid:1.3.6.1.4.1.25178.1.2.17' => 'schacExpiryDate', 'urn:oid:1.3.6.1.4.1.25178.1.2.18' => 'schacUserPrivateAttribute', 'urn:oid:1.3.6.1.4.1.25178.1.2.19' => 'schacUserStatus', 'urn:oid:1.3.6.1.4.1.25178.1.2.20' => 'schacProjectMembership', 'urn:oid:1.3.6.1.4.1.25178.1.2.21' => 'schacProjectSpecificRole', 'urn:oid:2.16.840.1.113730.3.1.1' => 'carLicense', 'urn:oid:2.16.840.1.113730.3.1.2' => 'departmentNumber', 'urn:oid:2.16.840.1.113730.3.1.216' => 'userPKCS12', 'urn:oid:2.16.840.1.113730.3.1.241' => 'displayName', 'urn:oid:2.16.840.1.113730.3.1.3' => 'employeeNumber', 'urn:oid:2.16.840.1.113730.3.1.39' => 'preferredLanguage', 'urn:oid:2.16.840.1.113730.3.1.4' => 'employeeType', 'urn:oid:2.16.840.1.113730.3.1.40' => 'userSMIMECertificate', 'urn:oid:2.5.4.0' => 'objectClass', 'urn:oid:2.5.4.1' => 'aliasedObjectName', 'urn:oid:2.5.4.10' => 'o', 'urn:oid:2.5.4.11' => 'ou', 'urn:oid:2.5.4.12' => 'title', 'urn:oid:2.5.4.13' => 'description', 'urn:oid:2.5.4.14' => 'searchGuide', 'urn:oid:2.5.4.15' => 'businessCategory', 'urn:oid:2.5.4.16' => 'postalAddress', 'urn:oid:2.5.4.17' => 'postalCode', 'urn:oid:2.5.4.18' => 'postOfficeBox', 'urn:oid:2.5.4.19' => 'physicalDeliveryOfficeName', 'urn:oid:2.5.4.2' => 'knowledgeInformation', 'urn:oid:2.5.4.20' => 'telephoneNumber', 'urn:oid:2.5.4.21' => 'telexNumber', 'urn:oid:2.5.4.22' => 'teletexTerminalIdentifier', 'urn:oid:2.5.4.23' => 'facsimileTelephoneNumber', 'urn:oid:2.5.4.24' => 'x121Address', 'urn:oid:2.5.4.25' => 'internationaliSDNNumber', 'urn:oid:2.5.4.26' => 'registeredAddress', 'urn:oid:2.5.4.27' => 'destinationIndicator', 'urn:oid:2.5.4.28' => 'preferredDeliveryMethod', 'urn:oid:2.5.4.29' => 'presentationAddress', 'urn:oid:2.5.4.3' => 'cn', 'urn:oid:2.5.4.30' => 'supportedApplicationContext', 'urn:oid:2.5.4.31' => 'member', 'urn:oid:2.5.4.32' => 'owner', 'urn:oid:2.5.4.33' => 'roleOccupant', 'urn:oid:2.5.4.34' => 'seeAlso', 'urn:oid:2.5.4.35' => 'userPassword', 'urn:oid:2.5.4.36' => 'userCertificate', 'urn:oid:2.5.4.37' => 'cACertificate', 'urn:oid:2.5.4.38' => 'authorityRevocationList', 'urn:oid:2.5.4.39' => 'certificateRevocationList', 'urn:oid:2.5.4.4' => 'sn', 'urn:oid:2.5.4.40' => 'crossCertificatePair', 'urn:oid:2.5.4.41' => 'name', 'urn:oid:2.5.4.42' => 'givenName', 'urn:oid:2.5.4.43' => 'initials', 'urn:oid:2.5.4.44' => 'generationQualifier', 'urn:oid:2.5.4.45' => 'x500UniqueIdentifier', 'urn:oid:2.5.4.46' => 'dnQualifier', 'urn:oid:2.5.4.47' => 'enhancedSearchGuide', 'urn:oid:2.5.4.48' => 'protocolInformation', 'urn:oid:2.5.4.49' => 'distinguishedName', 'urn:oid:2.5.4.5' => 'serialNumber', 'urn:oid:2.5.4.50' => 'uniqueMember', 'urn:oid:2.5.4.51' => 'houseIdentifier', 'urn:oid:2.5.4.52' => 'supportedAlgorithms', 'urn:oid:2.5.4.53' => 'deltaRevocationList', 'urn:oid:2.5.4.54' => 'dmdName', 'urn:oid:2.5.4.6' => 'c', 'urn:oid:2.5.4.65' => 'pseudonym', 'urn:oid:2.5.4.7' => 'l', 'urn:oid:2.5.4.8' => 'st', 'urn:oid:2.5.4.9' => 'street'];
<?php
namespace ScopedSimpleSamlPHP;
$attributemap = [
// Simple Registration + AX Schema
'http://axschema.org/namePerson/friendly' => 'displayName', // Alias/Username -> displayName
'openid.sreg.nickname' => 'displayName',
'http://axschema.org/contact/email' => 'mail', // Email
'openid.sreg.email' => 'mail',
'http://axschema.org/namePerson' => 'displayName', // Full name -> displayName
'openid.sreg.fullname' => 'displayName',
'http://axschema.org/contact/postalCode/home' => 'postalCode', // Postal code
'openid.sreg.postcode' => 'postalCode',
'http://axschema.org/contact/country/home' => 'countryName', // Country
'openid.sreg.country' => 'countryName',
'http://axschema.org/pref/language' => 'preferredLanguage', // Language
'openid.sreg.language' => 'preferredLanguage',
'http://axschema.org/namePerson/friendly' => 'displayName',
// Alias/Username -> displayName
'openid.sreg.nickname' => 'displayName',
'http://axschema.org/contact/email' => 'mail',
// Email
'openid.sreg.email' => 'mail',
'http://axschema.org/namePerson' => 'displayName',
// Full name -> displayName
'openid.sreg.fullname' => 'displayName',
'http://axschema.org/contact/postalCode/home' => 'postalCode',
// Postal code
'openid.sreg.postcode' => 'postalCode',
'http://axschema.org/contact/country/home' => 'countryName',
// Country
'openid.sreg.country' => 'countryName',
'http://axschema.org/pref/language' => 'preferredLanguage',
// Language
'openid.sreg.language' => 'preferredLanguage',
// Name
'http://axschema.org/namePerson/prefix' => 'personalTitle', // Name prefix
'http://axschema.org/namePerson/first' => 'givenName', // First name
'http://axschema.org/namePerson/last' => 'sn', // Last name
'http://axschema.org/namePerson/prefix' => 'personalTitle',
// Name prefix
'http://axschema.org/namePerson/first' => 'givenName',
// First name
'http://axschema.org/namePerson/last' => 'sn',
// Last name
// Work
'http://axschema.org/company/name' => 'o', // Company name
'http://axschema.org/company/title' => 'title', // Job title
'http://axschema.org/company/name' => 'o',
// Company name
'http://axschema.org/company/title' => 'title',
// Job title
// Telephone
'http://axschema.org/contact/phone/default' => 'telephoneNumber', // Phone (preferred)
'http://axschema.org/contact/phone/home' => 'homePhone', // Phone (home)
'http://axschema.org/contact/phone/business' => 'telephoneNumber', // Phone (work)
'http://axschema.org/contact/phone/cell' => 'mobile', // Phone (mobile)
'http://axschema.org/contact/phone/fax' => 'facsimileTelephoneNumber', // Phone (fax)
// Further attributes can be found at http://www.axschema.org/types/
'http://axschema.org/contact/phone/default' => 'telephoneNumber',
// Phone (preferred)
'http://axschema.org/contact/phone/home' => 'homePhone',
// Phone (home)
'http://axschema.org/contact/phone/business' => 'telephoneNumber',
// Phone (work)
'http://axschema.org/contact/phone/cell' => 'mobile',
// Phone (mobile)
'http://axschema.org/contact/phone/fax' => 'facsimileTelephoneNumber',
];
<?php
$attributemap = [
'urn:mace:dir:attribute-def:sn' => 'sn',
'urn:mace:dir:attribute-def:telephoneNumber' => 'telephoneNumber',
'urn:mace:dir:attribute-def:facsimileTelephoneNumber' => 'facsimileTelephoneNumber',
'urn:mace:dir:attribute-def:postalAddress' => 'postalAddress',
'urn:mace:dir:attribute-def:givenName' => 'givenName',
'urn:mace:dir:attribute-def:homePhone' => 'homePhone',
'urn:mace:dir:attribute-def:homePostalAddress' => 'homePostalAddress',
'urn:mace:dir:attribute-def:mail' => 'mail',
'urn:mace:dir:attribute-def:mobile' => 'mobile',
'urn:mace:dir:attribute-def:preferredLanguage' => 'preferredLanguage',
'urn:mace:dir:attribute-def:eduPersonPrincipalName' => 'eduPersonPrincipalName',
'urn:mace:dir:attribute-def:eduPersonAffiliation' => 'eduPersonAffiliation',
'urn:mace:dir:attribute-def:eduPersonScopedAffiliation' => 'eduPersonScopedAffiliation',
'urn:mace:dir:attribute-def:eduPersonEntitlement' => 'eduPersonEntitlement',
'urn:mace:dir:attribute-def:eduPersonOrgDN' => 'eduPersonOrgDN',
'urn:mace:dir:attribute-def:eduPersonOrgUnitDN' => 'eduPersonOrgUnitDN',
];
namespace ScopedSimpleSamlPHP;
$attributemap = ['urn:mace:dir:attribute-def:sn' => 'sn', 'urn:mace:dir:attribute-def:telephoneNumber' => 'telephoneNumber', 'urn:mace:dir:attribute-def:facsimileTelephoneNumber' => 'facsimileTelephoneNumber', 'urn:mace:dir:attribute-def:postalAddress' => 'postalAddress', 'urn:mace:dir:attribute-def:givenName' => 'givenName', 'urn:mace:dir:attribute-def:homePhone' => 'homePhone', 'urn:mace:dir:attribute-def:homePostalAddress' => 'homePostalAddress', 'urn:mace:dir:attribute-def:mail' => 'mail', 'urn:mace:dir:attribute-def:mobile' => 'mobile', 'urn:mace:dir:attribute-def:preferredLanguage' => 'preferredLanguage', 'urn:mace:dir:attribute-def:eduPersonPrincipalName' => 'eduPersonPrincipalName', 'urn:mace:dir:attribute-def:eduPersonAffiliation' => 'eduPersonAffiliation', 'urn:mace:dir:attribute-def:eduPersonScopedAffiliation' => 'eduPersonScopedAffiliation', 'urn:mace:dir:attribute-def:eduPersonEntitlement' => 'eduPersonEntitlement', 'urn:mace:dir:attribute-def:eduPersonOrgDN' => 'eduPersonOrgDN', 'urn:mace:dir:attribute-def:eduPersonOrgUnitDN' => 'eduPersonOrgUnitDN'];
<?php
$attributemap = [
'mobile' => 'urn:mace:dir:attribute-def:mobile'
];
namespace ScopedSimpleSamlPHP;
$attributemap = ['mobile' => 'urn:mace:dir:attribute-def:mobile'];
<?php
$attributemap = [
// Generated Twitter Attributes
'twitter_screen_n_realm' => 'eduPersonPrincipalName', // screen_name@twitter.com
'twitter_targetedID' => 'eduPersonTargetedID', // http://twitter.com!id_str
namespace ScopedSimpleSamlPHP;
$attributemap = [
// Generated Twitter Attributes
'twitter_screen_n_realm' => 'eduPersonPrincipalName',
// screen_name@twitter.com
'twitter_targetedID' => 'eduPersonTargetedID',
// http://twitter.com!id_str
// Attributes Returned by Twitter
'twitter.screen_name' => 'uid', // equivalent to twitter username without leading @
'twitter.name' => 'displayName',
'twitter.url' => 'labeledURI',
'twitter.lang' => 'preferredLanguage',