File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ passport.use(new OAuth2CustomStrategy({
16
16
clientSecret : config . oauth2 . clientSecret ,
17
17
callbackURL : config . serverURL + '/auth/oauth2/callback' ,
18
18
userProfileURL : config . oauth2 . userProfileURL ,
19
+ state : config . oauth2 . state ,
19
20
scope : config . oauth2 . scope
20
21
} , passportGeneralCallback ) )
21
22
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ module.exports = {
100
100
userProfileDisplayNameAttr : 'displayName' ,
101
101
userProfileEmailAttr : 'email' ,
102
102
userProfilePhotoAttr : 'photo' ,
103
+ state : true ,
103
104
scope : 'email'
104
105
} ,
105
106
facebook : {
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ module.exports = {
94
94
tokenURL : process . env . CMD_OAUTH2_TOKEN_URL ,
95
95
userProfileURL : process . env . CMD_OAUTH2_USER_PROFILE_URL ,
96
96
scope : process . env . CMD_OAUTH2_SCOPE ,
97
+ state : process . env . CMD_OAUTH2_STATE ,
97
98
userProfileUsernameAttr : process . env . CMD_OAUTH2_USER_PROFILE_USERNAME_ATTR ,
98
99
userProfileDisplayNameAttr : process . env . CMD_OAUTH2_USER_PROFILE_DISPLAY_NAME_ATTR ,
99
100
userProfileEmailAttr : process . env . CMD_OAUTH2_USER_PROFILE_EMAIL_ATTR ,
You can’t perform that action at this time.
0 commit comments