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({
1616 clientSecret : config . oauth2 . clientSecret ,
1717 callbackURL : config . serverURL + '/auth/oauth2/callback' ,
1818 userProfileURL : config . oauth2 . userProfileURL ,
19+ state : config . oauth2 . state ,
1920 scope : config . oauth2 . scope
2021} , passportGeneralCallback ) )
2122
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ module.exports = {
100100 userProfileDisplayNameAttr : 'displayName' ,
101101 userProfileEmailAttr : 'email' ,
102102 userProfilePhotoAttr : 'photo' ,
103+ state : true ,
103104 scope : 'email'
104105 } ,
105106 facebook : {
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ module.exports = {
9494 tokenURL : process . env . CMD_OAUTH2_TOKEN_URL ,
9595 userProfileURL : process . env . CMD_OAUTH2_USER_PROFILE_URL ,
9696 scope : process . env . CMD_OAUTH2_SCOPE ,
97+ state : process . env . CMD_OAUTH2_STATE ,
9798 userProfileUsernameAttr : process . env . CMD_OAUTH2_USER_PROFILE_USERNAME_ATTR ,
9899 userProfileDisplayNameAttr : process . env . CMD_OAUTH2_USER_PROFILE_DISPLAY_NAME_ATTR ,
99100 userProfileEmailAttr : process . env . CMD_OAUTH2_USER_PROFILE_EMAIL_ATTR ,
You can’t perform that action at this time.
0 commit comments