@@ -41,6 +41,7 @@ describe('Test Provider options', () => {
41
41
providerManager . addProviderOptions ( getCompanionOptions ( ) , grantConfig , getOauthProvider )
42
42
expect ( grantConfig . instagram ) . toEqual ( {
43
43
transport : 'session' ,
44
+ "state" : true ,
44
45
callback : '/instagram/callback' ,
45
46
redirect_uri : 'http://localhost:3020/instagram/redirect' ,
46
47
key : '123456' ,
@@ -53,6 +54,7 @@ describe('Test Provider options', () => {
53
54
key : 'dropbox_key' ,
54
55
secret : 'dropbox_secret' ,
55
56
transport : 'session' ,
57
+ "state" : true ,
56
58
redirect_uri : 'http://localhost:3020/dropbox/redirect' ,
57
59
authorize_url : 'https://www.dropbox.com/oauth2/authorize' ,
58
60
access_url : 'https://api.dropbox.com/oauth2/token' ,
@@ -66,6 +68,7 @@ describe('Test Provider options', () => {
66
68
key : 'box_key' ,
67
69
secret : 'box_secret' ,
68
70
transport : 'session' ,
71
+ "state" : true ,
69
72
redirect_uri : 'http://localhost:3020/box/redirect' ,
70
73
authorize_url : 'https://account.box.com/api/oauth2/authorize' ,
71
74
access_url : 'https://api.box.com/oauth2/token' ,
@@ -81,6 +84,7 @@ describe('Test Provider options', () => {
81
84
key : 'google_key' ,
82
85
secret : 'google_secret' ,
83
86
transport : 'session' ,
87
+ "state" : true ,
84
88
redirect_uri : 'http://localhost:3020/drive/redirect' ,
85
89
scope : [
86
90
'https://www.googleapis.com/auth/drive.readonly' ,
@@ -101,6 +105,7 @@ describe('Test Provider options', () => {
101
105
key : 'google_key' ,
102
106
secret : 'google_secret' ,
103
107
transport : 'session' ,
108
+ "state" : true ,
104
109
redirect_uri : 'http://localhost:3020/googlephotos/redirect' ,
105
110
scope : [ 'https://www.googleapis.com/auth/photoslibrary.readonly' , 'https://www.googleapis.com/auth/userinfo.email' ] ,
106
111
callback : '/googlephotos/callback' ,
@@ -114,6 +119,7 @@ describe('Test Provider options', () => {
114
119
key : 'zoom_key' ,
115
120
secret : 'zoom_secret' ,
116
121
transport : 'session' ,
122
+ "state" : true ,
117
123
authorize_url : 'https://zoom.us/oauth/authorize' ,
118
124
redirect_uri : 'http://localhost:3020/zoom/redirect' ,
119
125
access_url : 'https://zoom.us/oauth/token' ,
0 commit comments