ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilOpenIdAttributeMappingTemplate Class Reference
+ Collaboration diagram for ilOpenIdAttributeMappingTemplate:

Public Member Functions

 getMappingRulesByAdditionalScopes (array $additional_scopes)
 

Data Fields

final const OPEN_ID_CONFIGURED_SCOPES = 'auth_oidc_configured_scopes'
 

Private Member Functions

 loadProfile (array $mapping_rule)
 
 loadEmail (array $mapping_rule)
 
 loadAddress (array $mapping_rule)
 
 loadPhone (array $mapping_rule)
 

Detailed Description

Definition at line 21 of file class.ilOpenIdAttributeMappingTemplates.php.

Member Function Documentation

◆ 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.

References loadAddress(), loadEmail(), loadPhone(), and loadProfile().

29  : array
30  {
31  $mapping_rule = [];
32 
33  if (in_array('address', $additional_scopes)) {
34  $mapping_rule = $this->loadAddress($mapping_rule);
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)) {
43  $mapping_rule = $this->loadProfile($mapping_rule);
44  }
45 
46  return $mapping_rule;
47  }
+ Here is the call graph for this function:

◆ 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.

Referenced by getMappingRulesByAdditionalScopes().

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  }
+ Here is the caller graph for this function:

◆ loadEmail()

ilOpenIdAttributeMappingTemplate::loadEmail ( array  $mapping_rule)
private
Parameters
array<string,string>$mapping_rule
Returns
array<string, string>

Definition at line 68 of file class.ilOpenIdAttributeMappingTemplates.php.

Referenced by getMappingRulesByAdditionalScopes().

68  : array
69  {
70  $mapping_rule['email'] = 'email';
71 
72  return $mapping_rule;
73  }
+ Here is the caller graph for this function:

◆ loadPhone()

ilOpenIdAttributeMappingTemplate::loadPhone ( array  $mapping_rule)
private
Parameters
array<string,string>$mapping_rule
Returns
array<string, string>

Definition at line 93 of file class.ilOpenIdAttributeMappingTemplates.php.

Referenced by getMappingRulesByAdditionalScopes().

93  : array
94  {
95  $mapping_rule['phone_home'] = 'phone_number';
96 
97  return $mapping_rule;
98  }
+ Here is the caller graph for this function:

◆ 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.

Referenced by getMappingRulesByAdditionalScopes().

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  }
+ Here is the caller graph for this function:

Field Documentation

◆ 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: