19 declare(strict_types=1);
33 if (in_array(
'address', $additional_scopes)) {
36 if (in_array(
'email', $additional_scopes)) {
37 $mapping_rule = $this->
loadEmail($mapping_rule);
39 if (in_array(
'phone', $additional_scopes)) {
40 $mapping_rule = $this->
loadPhone($mapping_rule);
42 if (in_array(
'profile', $additional_scopes)) {
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';
68 private function loadEmail(array $mapping_rule): array
70 $mapping_rule[
'email'] =
'email';
81 $mapping_rule[
'street'] =
'street_address';
82 $mapping_rule[
'city'] =
'locality';
83 $mapping_rule[
'zipcode'] =
'postal_code';
84 $mapping_rule[
'country'] =
'country';
93 private function loadPhone(array $mapping_rule): array
95 $mapping_rule[
'phone_home'] =
'phone_number';
loadAddress(array $mapping_rule)
loadEmail(array $mapping_rule)
getMappingRulesByAdditionalScopes(array $additional_scopes)
final const OPEN_ID_CONFIGURED_SCOPES
loadProfile(array $mapping_rule)
loadPhone(array $mapping_rule)