File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 3
3
namespace humhubContrib \auth \linkedin \authclient ;
4
4
5
5
use yii \authclient \clients \LinkedIn ;
6
- use humhub \helpers \ArrayHelper ;
7
6
8
7
/**
9
8
* LinkedIn allows authentication via LinkedIn OAuth.
@@ -45,15 +44,9 @@ protected function defaultNormalizeUserAttributeMap()
45
44
return [
46
45
'id ' => 'sub ' ,
47
46
'username ' => 'displayName ' ,
48
- 'firstname ' => function ($ attributes ) {
49
- return ArrayHelper::getValue ($ attributes , 'given_name ' , '' );
50
- },
51
- 'lastname ' => function ($ attributes ) {
52
- return ArrayHelper::getValue ($ attributes , 'family_name ' , '' );
53
- },
54
- 'email ' => function ($ attributes ) {
55
- return ArrayHelper::getValue ($ attributes , 'email ' , '' );
56
- },
47
+ 'firstname ' => 'given_name ' ,
48
+ 'lastname ' => 'family_name ' ,
49
+ 'email ' => 'email ' ,
57
50
];
58
51
}
59
52
}
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ Changelog
4
4
1.1.1 (Unreleased)
5
5
--------------------
6
6
- Enh #7 : Use PHP CS Fixer
7
+ - Fix #6 : Redirection to registration form fails (e.g. when a profile field is required) with version 2
7
8
8
9
1.1.0 (June 7, 2024)
9
10
--------------------
You can’t perform that action at this time.
0 commit comments