@whook/oauth2 10.0.0 → 10.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/handlers/getOAuth2Authorize.test.js +5 -5
  2. package/dist/handlers/getOAuth2Authorize.test.js.map +1 -1
  3. package/dist/handlers/postAuthLogin.test.js +15 -15
  4. package/dist/handlers/postAuthLogin.test.js.map +1 -1
  5. package/dist/handlers/postAuthLogout.test.js +7 -7
  6. package/dist/handlers/postAuthLogout.test.js.map +1 -1
  7. package/dist/handlers/postAuthRefresh.test.js +17 -17
  8. package/dist/handlers/postAuthRefresh.test.js.map +1 -1
  9. package/dist/handlers/postOAuth2Acknowledge.test.js +7 -7
  10. package/dist/handlers/postOAuth2Acknowledge.test.js.map +1 -1
  11. package/dist/handlers/postOAuth2Token.test.js +3 -3
  12. package/dist/handlers/postOAuth2Token.test.js.map +1 -1
  13. package/dist/index.test.js +27 -27
  14. package/dist/index.test.js.map +1 -1
  15. package/dist/services/authCookies.test.js +5 -4
  16. package/dist/services/authCookies.test.js.map +1 -1
  17. package/dist/services/oAuth2CodeGranter.test.js +5 -5
  18. package/dist/services/oAuth2CodeGranter.test.js.map +1 -1
  19. package/package.json +18 -19
  20. package/src/__snapshots__/index.test.ts.snap +147 -147
  21. package/src/handlers/__snapshots__/getOAuth2Authorize.test.ts.snap +18 -18
  22. package/src/handlers/__snapshots__/postOAuth2Acknowledge.test.ts.snap +25 -25
  23. package/src/handlers/__snapshots__/postOAuth2Token.test.ts.snap +16 -16
  24. package/src/handlers/getOAuth2Authorize.test.ts +5 -5
  25. package/src/handlers/postAuthLogin.test.ts +15 -15
  26. package/src/handlers/postAuthLogout.test.ts +7 -7
  27. package/src/handlers/postAuthRefresh.test.ts +17 -17
  28. package/src/handlers/postOAuth2Acknowledge.test.ts +7 -7
  29. package/src/handlers/postOAuth2Token.test.ts +3 -3
  30. package/src/index.test.ts +37 -27
  31. package/src/services/__snapshots__/oAuth2CodeGranter.test.ts.snap +15 -15
  32. package/src/services/authCookies.test.ts +5 -4
  33. package/src/services/oAuth2CodeGranter.test.ts +5 -5
@@ -1,53 +1,53 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`OAuth2 server with the client credentials flow should produce new tokens 2`] = `
4
- Object {
5
- "authenticationCheckCalls": Array [
6
- Array [
4
+ {
5
+ "authenticationCheckCalls": [
6
+ [
7
7
  "basic",
8
- Object {
8
+ {
9
9
  "hash": "YWxpOm9wZW5fc2VzYW1l",
10
10
  "password": "open_sesame",
11
11
  "username": "ali",
12
12
  },
13
13
  ],
14
14
  ],
15
- "checkApplicationCalls": Array [
16
- Array [
17
- Object {
15
+ "checkApplicationCalls": [
16
+ [
17
+ {
18
18
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
19
19
  "scope": "user",
20
20
  "type": "client_credentials",
21
21
  },
22
22
  ],
23
23
  ],
24
- "oAuth2AccessTokenCheckCalls": Array [],
25
- "oAuth2AccessTokenCreateCalls": Array [
26
- Array [
27
- Object {
24
+ "oAuth2AccessTokenCheckCalls": [],
25
+ "oAuth2AccessTokenCreateCalls": [
26
+ [
27
+ {
28
28
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
29
29
  "scope": "user,oauth",
30
30
  "userId": "2",
31
31
  },
32
- Object {
32
+ {
33
33
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
34
34
  "scope": "user",
35
35
  "userId": "2",
36
36
  },
37
37
  ],
38
38
  ],
39
- "oAuth2CodeCheckCalls": Array [],
40
- "oAuth2CodeCreateCalls": Array [],
41
- "oAuth2PasswordCheckCalls": Array [],
42
- "oAuth2RefreshTokenCheckCalls": Array [],
43
- "oAuth2RefreshTokenCreateCalls": Array [
44
- Array [
45
- Object {
39
+ "oAuth2CodeCheckCalls": [],
40
+ "oAuth2CodeCreateCalls": [],
41
+ "oAuth2PasswordCheckCalls": [],
42
+ "oAuth2RefreshTokenCheckCalls": [],
43
+ "oAuth2RefreshTokenCreateCalls": [
44
+ [
45
+ {
46
46
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
47
47
  "scope": "user,oauth",
48
48
  "userId": "2",
49
49
  },
50
- Object {
50
+ {
51
51
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
52
52
  "scope": "user",
53
53
  "userId": "2",
@@ -58,11 +58,11 @@ Object {
58
58
  `;
59
59
 
60
60
  exports[`OAuth2 server with the code flow should build the authorization redirection 2`] = `
61
- Object {
62
- "authenticationCheckCalls": Array [],
63
- "checkApplicationCalls": Array [
64
- Array [
65
- Object {
61
+ {
62
+ "authenticationCheckCalls": [],
63
+ "checkApplicationCalls": [
64
+ [
65
+ {
66
66
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
67
67
  "redirectURI": "https://example.com/oauth2/callback?a_param=a_param_value",
68
68
  "scope": "user",
@@ -70,46 +70,46 @@ Object {
70
70
  },
71
71
  ],
72
72
  ],
73
- "oAuth2AccessTokenCheckCalls": Array [],
74
- "oAuth2AccessTokenCreateCalls": Array [],
75
- "oAuth2CodeCheckCalls": Array [],
76
- "oAuth2CodeCreateCalls": Array [],
77
- "oAuth2PasswordCheckCalls": Array [],
78
- "oAuth2RefreshTokenCheckCalls": Array [],
79
- "oAuth2RefreshTokenCreateCalls": Array [],
73
+ "oAuth2AccessTokenCheckCalls": [],
74
+ "oAuth2AccessTokenCreateCalls": [],
75
+ "oAuth2CodeCheckCalls": [],
76
+ "oAuth2CodeCreateCalls": [],
77
+ "oAuth2PasswordCheckCalls": [],
78
+ "oAuth2RefreshTokenCheckCalls": [],
79
+ "oAuth2RefreshTokenCreateCalls": [],
80
80
  }
81
81
  `;
82
82
 
83
83
  exports[`OAuth2 server with the code flow should produce new tokens 2`] = `
84
- Object {
85
- "authenticationCheckCalls": Array [
86
- Array [
84
+ {
85
+ "authenticationCheckCalls": [
86
+ [
87
87
  "basic",
88
- Object {
88
+ {
89
89
  "hash": "YWxpOm9wZW5fc2VzYW1l",
90
90
  "password": "open_sesame",
91
91
  "username": "ali",
92
92
  },
93
93
  ],
94
94
  ],
95
- "checkApplicationCalls": Array [
96
- Array [
97
- Object {
95
+ "checkApplicationCalls": [
96
+ [
97
+ {
98
98
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
99
99
  "scope": "",
100
100
  "type": "code",
101
101
  },
102
102
  ],
103
103
  ],
104
- "oAuth2AccessTokenCheckCalls": Array [],
105
- "oAuth2AccessTokenCreateCalls": Array [
106
- Array [
107
- Object {
104
+ "oAuth2AccessTokenCheckCalls": [],
105
+ "oAuth2AccessTokenCreateCalls": [
106
+ [
107
+ {
108
108
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
109
109
  "scope": "user,oauth",
110
110
  "userId": "2",
111
111
  },
112
- Object {
112
+ {
113
113
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
114
114
  "redirectURI": "http://redirect.example.com/yolo",
115
115
  "scope": "user,auth",
@@ -117,9 +117,9 @@ Object {
117
117
  },
118
118
  ],
119
119
  ],
120
- "oAuth2CodeCheckCalls": Array [
121
- Array [
122
- Object {
120
+ "oAuth2CodeCheckCalls": [
121
+ [
122
+ {
123
123
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
124
124
  "scope": "user,oauth",
125
125
  "userId": "2",
@@ -128,17 +128,17 @@ Object {
128
128
  "http://redirect.example.com/yolo",
129
129
  ],
130
130
  ],
131
- "oAuth2CodeCreateCalls": Array [],
132
- "oAuth2PasswordCheckCalls": Array [],
133
- "oAuth2RefreshTokenCheckCalls": Array [],
134
- "oAuth2RefreshTokenCreateCalls": Array [
135
- Array [
136
- Object {
131
+ "oAuth2CodeCreateCalls": [],
132
+ "oAuth2PasswordCheckCalls": [],
133
+ "oAuth2RefreshTokenCheckCalls": [],
134
+ "oAuth2RefreshTokenCreateCalls": [
135
+ [
136
+ {
137
137
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
138
138
  "scope": "user,oauth",
139
139
  "userId": "2",
140
140
  },
141
- Object {
141
+ {
142
142
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
143
143
  "redirectURI": "http://redirect.example.com/yolo",
144
144
  "scope": "user,auth",
@@ -150,50 +150,50 @@ Object {
150
150
  `;
151
151
 
152
152
  exports[`OAuth2 server with the code flow should redirect with a code 2`] = `
153
- Object {
154
- "authenticationCheckCalls": Array [
155
- Array [
153
+ {
154
+ "authenticationCheckCalls": [
155
+ [
156
156
  "bearer",
157
- Object {
157
+ {
158
158
  "hash": "yolo",
159
159
  },
160
160
  ],
161
161
  ],
162
- "checkApplicationCalls": Array [
163
- Array [
164
- Object {
162
+ "checkApplicationCalls": [
163
+ [
164
+ {
165
165
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
166
166
  "scope": "",
167
167
  "type": "root",
168
168
  },
169
169
  ],
170
170
  ],
171
- "oAuth2AccessTokenCheckCalls": Array [],
172
- "oAuth2AccessTokenCreateCalls": Array [],
173
- "oAuth2CodeCheckCalls": Array [],
174
- "oAuth2CodeCreateCalls": Array [
175
- Array [
176
- Object {
171
+ "oAuth2AccessTokenCheckCalls": [],
172
+ "oAuth2AccessTokenCreateCalls": [],
173
+ "oAuth2CodeCheckCalls": [],
174
+ "oAuth2CodeCreateCalls": [
175
+ [
176
+ {
177
177
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
178
178
  "scope": "user",
179
179
  "userId": "2",
180
180
  },
181
181
  "http://redirect.example.com/yolo?a_param=a_value",
182
- Object {},
182
+ {},
183
183
  ],
184
184
  ],
185
- "oAuth2PasswordCheckCalls": Array [],
186
- "oAuth2RefreshTokenCheckCalls": Array [],
187
- "oAuth2RefreshTokenCreateCalls": Array [],
185
+ "oAuth2PasswordCheckCalls": [],
186
+ "oAuth2RefreshTokenCheckCalls": [],
187
+ "oAuth2RefreshTokenCreateCalls": [],
188
188
  }
189
189
  `;
190
190
 
191
191
  exports[`OAuth2 server with the implicit flow should build the authorization redirection 2`] = `
192
- Object {
193
- "authenticationCheckCalls": Array [],
194
- "checkApplicationCalls": Array [
195
- Array [
196
- Object {
192
+ {
193
+ "authenticationCheckCalls": [],
194
+ "checkApplicationCalls": [
195
+ [
196
+ {
197
197
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
198
198
  "redirectURI": "http://redirect.example.com/yolo",
199
199
  "scope": "user",
@@ -201,36 +201,36 @@ Object {
201
201
  },
202
202
  ],
203
203
  ],
204
- "oAuth2AccessTokenCheckCalls": Array [],
205
- "oAuth2AccessTokenCreateCalls": Array [],
206
- "oAuth2CodeCheckCalls": Array [],
207
- "oAuth2CodeCreateCalls": Array [],
208
- "oAuth2PasswordCheckCalls": Array [],
209
- "oAuth2RefreshTokenCheckCalls": Array [],
210
- "oAuth2RefreshTokenCreateCalls": Array [],
204
+ "oAuth2AccessTokenCheckCalls": [],
205
+ "oAuth2AccessTokenCreateCalls": [],
206
+ "oAuth2CodeCheckCalls": [],
207
+ "oAuth2CodeCreateCalls": [],
208
+ "oAuth2PasswordCheckCalls": [],
209
+ "oAuth2RefreshTokenCheckCalls": [],
210
+ "oAuth2RefreshTokenCreateCalls": [],
211
211
  }
212
212
  `;
213
213
 
214
214
  exports[`OAuth2 server with the implicit flow should redirect with a token 2`] = `
215
- Object {
216
- "authenticationCheckCalls": Array [
217
- Array [
215
+ {
216
+ "authenticationCheckCalls": [
217
+ [
218
218
  "bearer",
219
- Object {
219
+ {
220
220
  "hash": "yolo",
221
221
  },
222
222
  ],
223
223
  ],
224
- "checkApplicationCalls": Array [
225
- Array [
226
- Object {
224
+ "checkApplicationCalls": [
225
+ [
226
+ {
227
227
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
228
228
  "scope": "",
229
229
  "type": "root",
230
230
  },
231
231
  ],
232
- Array [
233
- Object {
232
+ [
233
+ {
234
234
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
235
235
  "redirectURI": "http://redirect.example.com/yolo?a_param=a_value",
236
236
  "scope": "user",
@@ -238,70 +238,70 @@ Object {
238
238
  },
239
239
  ],
240
240
  ],
241
- "oAuth2AccessTokenCheckCalls": Array [],
242
- "oAuth2AccessTokenCreateCalls": Array [
243
- Array [
244
- Object {
241
+ "oAuth2AccessTokenCheckCalls": [],
242
+ "oAuth2AccessTokenCreateCalls": [
243
+ [
244
+ {
245
245
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
246
246
  "scope": "user,oauth",
247
247
  "userId": "2",
248
248
  },
249
- Object {
249
+ {
250
250
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
251
251
  "scope": "user",
252
252
  },
253
- Object {},
253
+ {},
254
254
  ],
255
255
  ],
256
- "oAuth2CodeCheckCalls": Array [],
257
- "oAuth2CodeCreateCalls": Array [],
258
- "oAuth2PasswordCheckCalls": Array [],
259
- "oAuth2RefreshTokenCheckCalls": Array [],
260
- "oAuth2RefreshTokenCreateCalls": Array [],
256
+ "oAuth2CodeCheckCalls": [],
257
+ "oAuth2CodeCreateCalls": [],
258
+ "oAuth2PasswordCheckCalls": [],
259
+ "oAuth2RefreshTokenCheckCalls": [],
260
+ "oAuth2RefreshTokenCreateCalls": [],
261
261
  }
262
262
  `;
263
263
 
264
264
  exports[`OAuth2 server with the password flow should produce new tokens 2`] = `
265
- Object {
266
- "authenticationCheckCalls": Array [
267
- Array [
265
+ {
266
+ "authenticationCheckCalls": [
267
+ [
268
268
  "basic",
269
- Object {
269
+ {
270
270
  "hash": "YWxpOm9wZW5fc2VzYW1l",
271
271
  "password": "open_sesame",
272
272
  "username": "ali",
273
273
  },
274
274
  ],
275
275
  ],
276
- "checkApplicationCalls": Array [
277
- Array [
278
- Object {
276
+ "checkApplicationCalls": [
277
+ [
278
+ {
279
279
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
280
280
  "scope": "user",
281
281
  "type": "password",
282
282
  },
283
283
  ],
284
284
  ],
285
- "oAuth2AccessTokenCheckCalls": Array [],
286
- "oAuth2AccessTokenCreateCalls": Array [
287
- Array [
288
- Object {
285
+ "oAuth2AccessTokenCheckCalls": [],
286
+ "oAuth2AccessTokenCreateCalls": [
287
+ [
288
+ {
289
289
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
290
290
  "scope": "user,oauth",
291
291
  "userId": "2",
292
292
  },
293
- Object {
293
+ {
294
294
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
295
295
  "scope": "user,auth",
296
296
  "userId": "1",
297
297
  },
298
298
  ],
299
299
  ],
300
- "oAuth2CodeCheckCalls": Array [],
301
- "oAuth2CodeCreateCalls": Array [],
302
- "oAuth2PasswordCheckCalls": Array [
303
- Array [
304
- Object {
300
+ "oAuth2CodeCheckCalls": [],
301
+ "oAuth2CodeCreateCalls": [],
302
+ "oAuth2PasswordCheckCalls": [
303
+ [
304
+ {
305
305
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
306
306
  "scope": "user,oauth",
307
307
  "userId": "2",
@@ -311,15 +311,15 @@ Object {
311
311
  "user",
312
312
  ],
313
313
  ],
314
- "oAuth2RefreshTokenCheckCalls": Array [],
315
- "oAuth2RefreshTokenCreateCalls": Array [
316
- Array [
317
- Object {
314
+ "oAuth2RefreshTokenCheckCalls": [],
315
+ "oAuth2RefreshTokenCreateCalls": [
316
+ [
317
+ {
318
318
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
319
319
  "scope": "user,oauth",
320
320
  "userId": "2",
321
321
  },
322
- Object {
322
+ {
323
323
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
324
324
  "scope": "user,auth",
325
325
  "userId": "1",
@@ -330,47 +330,47 @@ Object {
330
330
  `;
331
331
 
332
332
  exports[`OAuth2 server with the refresh token flow should produce new tokens 2`] = `
333
- Object {
334
- "authenticationCheckCalls": Array [
335
- Array [
333
+ {
334
+ "authenticationCheckCalls": [
335
+ [
336
336
  "basic",
337
- Object {
337
+ {
338
338
  "hash": "YWxpOm9wZW5fc2VzYW1l",
339
339
  "password": "open_sesame",
340
340
  "username": "ali",
341
341
  },
342
342
  ],
343
343
  ],
344
- "checkApplicationCalls": Array [
345
- Array [
346
- Object {
344
+ "checkApplicationCalls": [
345
+ [
346
+ {
347
347
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
348
348
  "scope": "user",
349
349
  "type": "refresh",
350
350
  },
351
351
  ],
352
352
  ],
353
- "oAuth2AccessTokenCheckCalls": Array [],
354
- "oAuth2AccessTokenCreateCalls": Array [
355
- Array [
356
- Object {
353
+ "oAuth2AccessTokenCheckCalls": [],
354
+ "oAuth2AccessTokenCreateCalls": [
355
+ [
356
+ {
357
357
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
358
358
  "scope": "user,oauth",
359
359
  "userId": "2",
360
360
  },
361
- Object {
361
+ {
362
362
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
363
363
  "scope": "user,auth",
364
364
  "userId": "1",
365
365
  },
366
366
  ],
367
367
  ],
368
- "oAuth2CodeCheckCalls": Array [],
369
- "oAuth2CodeCreateCalls": Array [],
370
- "oAuth2PasswordCheckCalls": Array [],
371
- "oAuth2RefreshTokenCheckCalls": Array [
372
- Array [
373
- Object {
368
+ "oAuth2CodeCheckCalls": [],
369
+ "oAuth2CodeCreateCalls": [],
370
+ "oAuth2PasswordCheckCalls": [],
371
+ "oAuth2RefreshTokenCheckCalls": [
372
+ [
373
+ {
374
374
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
375
375
  "scope": "user,oauth",
376
376
  "userId": "2",
@@ -379,14 +379,14 @@ Object {
379
379
  "user",
380
380
  ],
381
381
  ],
382
- "oAuth2RefreshTokenCreateCalls": Array [
383
- Array [
384
- Object {
382
+ "oAuth2RefreshTokenCreateCalls": [
383
+ [
384
+ {
385
385
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
386
386
  "scope": "user,oauth",
387
387
  "userId": "2",
388
388
  },
389
- Object {
389
+ {
390
390
  "applicationId": "acdc41ce-acdc-41ce-acdc-41ceacdc41ce",
391
391
  "scope": "user,auth",
392
392
  "userId": "1",
@@ -1,38 +1,38 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`getOAuth2Authorize should redirect 2`] = `
4
- Object {
5
- "codeGranterAcknowledgerAcknowledgeCalls": Array [],
6
- "codeGranterAuthenticatorAuthenticateCalls": Array [],
7
- "codeGranterAuthorizerAuthorizeCalls": Array [
8
- Array [
9
- Object {
4
+ {
5
+ "codeGranterAcknowledgerAcknowledgeCalls": [],
6
+ "codeGranterAuthenticatorAuthenticateCalls": [],
7
+ "codeGranterAuthorizerAuthorizeCalls": [
8
+ [
9
+ {
10
10
  "clientId": "abbacaca-abba-caca-abba-cacaabbacaca",
11
11
  "redirectURI": "https://www.example.com",
12
12
  "scope": "user",
13
13
  },
14
- Object {},
14
+ {},
15
15
  ],
16
16
  ],
17
- "logCalls": Array [],
18
- "tokenGranterAcknowledgerAcknowledgeCalls": Array [],
19
- "tokenGranterAuthorizerAuthorizeCalls": Array [],
17
+ "logCalls": [],
18
+ "tokenGranterAcknowledgerAcknowledgeCalls": [],
19
+ "tokenGranterAuthorizerAuthorizeCalls": [],
20
20
  }
21
21
  `;
22
22
 
23
23
  exports[`getOAuth2Authorize should redirect with an error when some 2`] = `
24
- Object {
25
- "codeGranterAcknowledgerAcknowledgeCalls": Array [],
26
- "codeGranterAuthenticatorAuthenticateCalls": Array [],
27
- "codeGranterAuthorizerAuthorizeCalls": Array [],
28
- "logCalls": Array [
29
- Array [
24
+ {
25
+ "codeGranterAcknowledgerAcknowledgeCalls": [],
26
+ "codeGranterAuthenticatorAuthenticateCalls": [],
27
+ "codeGranterAuthorizerAuthorizeCalls": [],
28
+ "logCalls": [
29
+ [
30
30
  "debug",
31
31
  "👫 - OAuth2 initialization error",
32
32
  "E_UNKNOWN_AUTHORIZER_TYPE",
33
33
  ],
34
34
  ],
35
- "tokenGranterAcknowledgerAcknowledgeCalls": Array [],
36
- "tokenGranterAuthorizerAuthorizeCalls": Array [],
35
+ "tokenGranterAcknowledgerAcknowledgeCalls": [],
36
+ "tokenGranterAuthorizerAuthorizeCalls": [],
37
37
  }
38
38
  `;
@@ -1,61 +1,61 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`postOAuth2Acknowledge should redirect 2`] = `
4
- Object {
5
- "checkApplicationCalls": Array [
6
- Array [
7
- Object {
4
+ {
5
+ "checkApplicationCalls": [
6
+ [
7
+ {
8
8
  "applicationId": "abbacaca-abba-caca-abba-cacaabbacaca",
9
9
  "scope": "",
10
10
  "type": "root",
11
11
  },
12
12
  ],
13
13
  ],
14
- "codeGranterAcknowledgerAcknowledgeCalls": Array [
15
- Array [
16
- Object {
14
+ "codeGranterAcknowledgerAcknowledgeCalls": [
15
+ [
16
+ {
17
17
  "applicationId": "abbacaca-abba-caca-abba-cacaabbacaca",
18
18
  "scope": "auth",
19
19
  "userId": "1",
20
20
  },
21
- Object {
21
+ {
22
22
  "clientId": "abbacaca-abba-caca-abba-cacaabbacaca",
23
23
  "redirectURI": "https://www.example.com",
24
24
  "scope": "user",
25
25
  },
26
- Object {},
26
+ {},
27
27
  ],
28
28
  ],
29
- "codeGranterAuthenticatorAuthenticateCalls": Array [],
30
- "codeGranterAuthorizerAuthorizeCalls": Array [],
31
- "logCalls": Array [],
32
- "tokenGranterAcknowledgerAcknowledgeCalls": Array [],
33
- "tokenGranterAuthorizerAuthorizeCalls": Array [],
29
+ "codeGranterAuthenticatorAuthenticateCalls": [],
30
+ "codeGranterAuthorizerAuthorizeCalls": [],
31
+ "logCalls": [],
32
+ "tokenGranterAcknowledgerAcknowledgeCalls": [],
33
+ "tokenGranterAuthorizerAuthorizeCalls": [],
34
34
  }
35
35
  `;
36
36
 
37
37
  exports[`postOAuth2Acknowledge should redirect errors too 2`] = `
38
- Object {
39
- "checkApplicationCalls": Array [
40
- Array [
41
- Object {
38
+ {
39
+ "checkApplicationCalls": [
40
+ [
41
+ {
42
42
  "applicationId": "abbacaca-abba-caca-abba-cacaabbacaca",
43
43
  "scope": "",
44
44
  "type": "root",
45
45
  },
46
46
  ],
47
47
  ],
48
- "codeGranterAcknowledgerAcknowledgeCalls": Array [],
49
- "codeGranterAuthenticatorAuthenticateCalls": Array [],
50
- "codeGranterAuthorizerAuthorizeCalls": Array [],
51
- "logCalls": Array [
52
- Array [
48
+ "codeGranterAcknowledgerAcknowledgeCalls": [],
49
+ "codeGranterAuthenticatorAuthenticateCalls": [],
50
+ "codeGranterAuthorizerAuthorizeCalls": [],
51
+ "logCalls": [
52
+ [
53
53
  "debug",
54
54
  "👫 - OAuth2 acknowledge error",
55
55
  "E_UNKNOWN_ACKNOWLEDGOR_TYPE",
56
56
  ],
57
57
  ],
58
- "tokenGranterAcknowledgerAcknowledgeCalls": Array [],
59
- "tokenGranterAuthorizerAuthorizeCalls": Array [],
58
+ "tokenGranterAcknowledgerAcknowledgeCalls": [],
59
+ "tokenGranterAuthorizerAuthorizeCalls": [],
60
60
  }
61
61
  `;