◆ getMappingRulesByAdditionalScopes()
ilOpenIdAttributeMappingTemplate::getMappingRulesByAdditionalScopes |
( |
array |
$additional_scopes | ) |
|
- Parameters
-
array<int,string> | $additional_scopes |
- Returns
- array<string, string>
Definition at line 29 of file class.ilOpenIdAttributeMappingTemplates.php.
29 : array
30 {
31 $mapping_rule = [];
32
33 if (in_array('address', $additional_scopes)) {
35 }
36 if (in_array('email', $additional_scopes)) {
37 $mapping_rule = $this->
loadEmail($mapping_rule);
38 }
39 if (in_array('phone', $additional_scopes)) {
40 $mapping_rule = $this->
loadPhone($mapping_rule);
41 }
42 if (in_array('profile', $additional_scopes)) {
44 }
45
46 return $mapping_rule;
47 }
loadProfile(array $mapping_rule)
loadPhone(array $mapping_rule)
loadAddress(array $mapping_rule)
loadEmail(array $mapping_rule)
References loadAddress(), loadEmail(), loadPhone(), and loadProfile().
◆ loadAddress()
ilOpenIdAttributeMappingTemplate::loadAddress |
( |
array |
$mapping_rule | ) |
|
|
private |
- Parameters
-
array<string,string> | $mapping_rule |
- Returns
- array<string, string>
Definition at line 79 of file class.ilOpenIdAttributeMappingTemplates.php.
79 : array
80 {
81 $mapping_rule['street'] = 'street_address';
82 $mapping_rule['city'] = 'locality';
83 $mapping_rule['zipcode'] = 'postal_code';
84 $mapping_rule['country'] = 'country';
85
86 return $mapping_rule;
87 }
Referenced by getMappingRulesByAdditionalScopes().
◆ loadEmail()
ilOpenIdAttributeMappingTemplate::loadEmail |
( |
array |
$mapping_rule | ) |
|
|
private |
◆ loadPhone()
ilOpenIdAttributeMappingTemplate::loadPhone |
( |
array |
$mapping_rule | ) |
|
|
private |
◆ loadProfile()
ilOpenIdAttributeMappingTemplate::loadProfile |
( |
array |
$mapping_rule | ) |
|
|
private |
- Parameters
-
array<string,string> | $mapping_rule |
- Returns
- array<string, string>
Definition at line 53 of file class.ilOpenIdAttributeMappingTemplates.php.
53 : array
54 {
55 $mapping_rule['lastname'] = 'family_name';
56 $mapping_rule['firstname'] = 'given_name';
57 $mapping_rule['login'] = 'preferred_username';
58 $mapping_rule['gender'] = 'gender';
59 $mapping_rule['birthday'] = 'birthdate';
60
61 return $mapping_rule;
62 }
Referenced by getMappingRulesByAdditionalScopes().
◆ OPEN_ID_CONFIGURED_SCOPES
final const ilOpenIdAttributeMappingTemplate::OPEN_ID_CONFIGURED_SCOPES = 'auth_oidc_configured_scopes' |
The documentation for this class was generated from the following file: