* Setup/SAML: fix not stored custome OID and added eduPersonUniqueId

This commit is contained in:
Ralf Becker 2021-04-07 10:07:56 +02:00
parent 102a790c44
commit 673760f59d
2 changed files with 5 additions and 1 deletions

View File

@ -100,6 +100,7 @@ class Saml implements BackendSSO
* Some urn:oid constants for common attributes
*/
const eduPersonPricipalName = 'urn:oid:1.3.6.1.4.1.5923.1.1.1.6';
const eduPersonUniqueId = 'urn:oid:1.3.6.1.4.1.5923.1.1.1.13';
const emailAddress = 'urn:oid:0.9.2342.19200300.100.1.3';
const firstName = 'urn:oid:2.5.4.42';
const lastName = 'urn:oid:2.5.4.4';
@ -526,6 +527,8 @@ class Saml implements BackendSSO
{
case 'eduPersonPrincipalName':
return self::eduPersonPricipalName;
case 'eduPersonUniqueId':
return self::eduPersonUniqueId;
case 'emailAddress':
return self::emailAddress;
case 'customOid':

View File

@ -522,8 +522,9 @@
<td>
<select name="newsettings[saml_username]">
<option value="eduPersonPrincipalName"{selected_saml_username_eduPersonPrincipalName}>eduPersonPrincipalName</option>
<option value="eduPersonUniqueId"{selected_saml_username_eduPersonUniqueId}>eduPersonUniqueId</option>
<option value="emailAddress"{selected_saml_username_emailAddress}>emailAddress</option>
<option value="custom"{selected_saml_username_customOid}>{lang_custom_OID}</option>
<option value="customOid"{selected_saml_username_customOid}>{lang_custom_OID}</option>
</select>
<input name="newsettings[saml_username_oid]" value="{value_saml_username_oid}" placeholder="urn:oid:x.x.x.x" size="40" />
</td>