@sasjs/api 0.44.4 → 0.44.6

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.
@@ -140,6 +140,25 @@ export const RECORD_CORPUS = [
140
140
  partial: { uid: RESTRICTED_UID, username: 'sasjsuser', isAdmin: false }
141
141
  }
142
142
  },
143
+ {
144
+ id: 'get-user-by-username-mixed-case',
145
+ route: 'GET /SASjsApi/user/by/username/{username}',
146
+ description: 'finds the account when the path names it in another case',
147
+ identity: ADMIN_SIGNED_IN,
148
+ request: { token: ADMIN, params: { username: 'SASJSUSER' } },
149
+ expect: { status: 200, partial: { uid: RESTRICTED_UID } }
150
+ },
151
+ {
152
+ id: 'get-user-by-username-refused-name',
153
+ route: 'GET /SASjsApi/user/by/username/{username}',
154
+ description: 'refuses a path parameter the username schema does not allow',
155
+ identity: ADMIN_SIGNED_IN,
156
+ request: { token: ADMIN, params: { username: 'a-b' } },
157
+ expect: {
158
+ status: 400,
159
+ error: '"username" must only contain alpha-numeric characters'
160
+ }
161
+ },
143
162
  {
144
163
  id: 'get-user-by-username-unauthenticated',
145
164
  route: 'GET /SASjsApi/user/by/username/{username}',
@@ -219,6 +238,49 @@ export const RECORD_CORPUS = [
219
238
  },
220
239
  expect: { status: 409, error: 'Username already exists.' }
221
240
  },
241
+ {
242
+ id: 'create-user-bad-admin-flag',
243
+ route: 'POST /SASjsApi/user',
244
+ description: 'refuses an isAdmin the schema does not call a boolean',
245
+ identity: ADMIN_SIGNED_IN,
246
+ request: {
247
+ token: ADMIN,
248
+ body: {
249
+ username: 'flaguser',
250
+ displayName: 'Flag User',
251
+ password: 'password',
252
+ isAdmin: 'yes'
253
+ }
254
+ },
255
+ expect: { status: 400, error: '"isAdmin" must be a boolean' }
256
+ },
257
+ {
258
+ id: 'create-user-bad-active-flag',
259
+ route: 'POST /SASjsApi/user',
260
+ description: 'refuses an isActive the schema does not call a boolean',
261
+ identity: ADMIN_SIGNED_IN,
262
+ request: {
263
+ token: ADMIN,
264
+ body: {
265
+ username: 'flaguser',
266
+ displayName: 'Flag User',
267
+ password: 'password',
268
+ isActive: 'sometimes'
269
+ }
270
+ },
271
+ expect: { status: 400, error: '"isActive" must be a boolean' }
272
+ },
273
+ {
274
+ id: 'create-user-not-admin-incomplete',
275
+ route: 'POST /SASjsApi/user',
276
+ description: 'refuses a non-admin before it reads the body it sent',
277
+ identity: ADMIN_SIGNED_IN,
278
+ request: {
279
+ token: RESTRICTED,
280
+ body: { username: 'incomplete' }
281
+ },
282
+ expect: { status: 401, error: 'Admin account required' }
283
+ },
222
284
  {
223
285
  id: 'update-user',
224
286
  route: 'PATCH /SASjsApi/user/{uid}',
@@ -246,14 +308,49 @@ export const RECORD_CORPUS = [
246
308
  request: {
247
309
  token: RESTRICTED,
248
310
  params: { uid: ADMIN_UID },
249
- body: {
250
- displayName: 'Hijacked',
251
- username: 'sasjsadmin',
252
- password: 'Orion123'
253
- }
311
+ // the body is one the schema would refuse too, so the case only passes when
312
+ // the caller is gated before the body is read, as the middleware order has it
313
+ body: { isAdmin: 'yes' }
254
314
  },
255
315
  expect: { status: 401, error: 'Admin account required' }
256
316
  },
317
+ {
318
+ id: 'update-user-empty-body',
319
+ route: 'PATCH /SASjsApi/user/{uid}',
320
+ description: 'applies an update that omits every field, which the controller stores as an empty name',
321
+ identity: ADMIN_SIGNED_IN,
322
+ request: { token: ADMIN, params: { uid: RESTRICTED_UID }, body: {} },
323
+ // the controller always puts the sanitised display name into the update, so an
324
+ // omitted one is written as the empty string rather than left as it was
325
+ expect: {
326
+ status: 200,
327
+ partial: { uid: RESTRICTED_UID, displayName: '' }
328
+ }
329
+ },
330
+ {
331
+ id: 'update-user-self-admin-flag',
332
+ route: 'PATCH /SASjsApi/user/{uid}',
333
+ description: "refuses a flag only an administrator may send, on the caller's own account",
334
+ identity: ADMIN_SIGNED_IN,
335
+ request: {
336
+ token: RESTRICTED,
337
+ params: { uid: RESTRICTED_UID },
338
+ body: { isAdmin: true }
339
+ },
340
+ expect: { status: 400, error: '"isAdmin" is not allowed' }
341
+ },
342
+ {
343
+ id: 'update-user-by-username-self-admin-flag',
344
+ route: 'PATCH /SASjsApi/user/by/username/{username}',
345
+ description: 'refuses a flag only an administrator may send, by username',
346
+ identity: ADMIN_SIGNED_IN,
347
+ request: {
348
+ token: RESTRICTED,
349
+ params: { username: 'sasjsuser' },
350
+ body: { isAdmin: true }
351
+ },
352
+ expect: { status: 400, error: '"isAdmin" is not allowed' }
353
+ },
257
354
  {
258
355
  id: 'update-user-missing',
259
356
  route: 'PATCH /SASjsApi/user/{uid}',
@@ -326,14 +423,57 @@ export const RECORD_CORPUS = [
326
423
  request: {
327
424
  token: RESTRICTED,
328
425
  params: { username: 'sasjsadmin' },
329
- body: {
330
- displayName: 'Hijacked',
331
- username: 'sasjsadmin',
332
- password: 'Orion123'
333
- }
426
+ // a body the schema would refuse for this caller, so the case only passes
427
+ // when the caller is gated before the body is read
428
+ body: { isAdmin: 'yes' }
334
429
  },
335
430
  expect: { status: 401, error: 'Admin account required' }
336
431
  },
432
+ {
433
+ id: 'update-user-by-username-mixed-case',
434
+ route: 'PATCH /SASjsApi/user/by/username/{username}',
435
+ description: 'finds the account when the path names it in another case',
436
+ identity: ADMIN_SIGNED_IN,
437
+ request: {
438
+ token: ADMIN,
439
+ params: { username: 'SASJSUSER' },
440
+ body: { displayName: 'Renamed User' }
441
+ },
442
+ expect: {
443
+ status: 200,
444
+ partial: { uid: RESTRICTED_UID, displayName: 'Renamed User' }
445
+ }
446
+ },
447
+ {
448
+ id: 'update-user-by-username-parameter-before-body',
449
+ route: 'PATCH /SASjsApi/user/by/username/{username}',
450
+ description: 'refuses the path parameter before the body it is sent with',
451
+ identity: ADMIN_SIGNED_IN,
452
+ request: {
453
+ token: ADMIN,
454
+ params: { username: 'a-b' },
455
+ body: { displayName: 'x' }
456
+ },
457
+ expect: {
458
+ status: 400,
459
+ error: '"username" must only contain alpha-numeric characters'
460
+ }
461
+ },
462
+ {
463
+ id: 'update-user-by-username-refused-name',
464
+ route: 'PATCH /SASjsApi/user/by/username/{username}',
465
+ description: 'refuses a path parameter the username schema does not allow',
466
+ identity: ADMIN_SIGNED_IN,
467
+ request: {
468
+ token: ADMIN,
469
+ params: { username: 'a-b' },
470
+ body: { displayName: 'Renamed User' }
471
+ },
472
+ expect: {
473
+ status: 400,
474
+ error: '"username" must only contain alpha-numeric characters'
475
+ }
476
+ },
337
477
  {
338
478
  id: 'update-user-by-username-missing',
339
479
  route: 'PATCH /SASjsApi/user/by/username/{username}',
@@ -393,6 +533,18 @@ export const RECORD_CORPUS = [
393
533
  request: { token: RESTRICTED, params: { uid: ADMIN_UID }, body: {} },
394
534
  expect: { status: 401, error: 'Admin account required' }
395
535
  },
536
+ {
537
+ id: 'delete-user-not-admin-no-password',
538
+ route: 'DELETE /SASjsApi/user/{uid}',
539
+ description: "requires the caller's own password when it is not an admin",
540
+ identity: ADMIN_SIGNED_IN,
541
+ request: {
542
+ token: RESTRICTED,
543
+ params: { uid: RESTRICTED_UID },
544
+ body: {}
545
+ },
546
+ expect: { status: 400, error: '"password" is required' }
547
+ },
396
548
  {
397
549
  id: 'delete-user-missing',
398
550
  route: 'DELETE /SASjsApi/user/{uid}',
@@ -413,6 +565,72 @@ export const RECORD_CORPUS = [
413
565
  },
414
566
  expect: { status: 200, body: 'Account Deleted!' }
415
567
  },
568
+ {
569
+ id: 'delete-user-admin-bodys-refused',
570
+ route: 'DELETE /SASjsApi/user/by/username/{username}',
571
+ description: "refuses a body an administrator's deletion takes none of",
572
+ identity: ADMIN_SIGNED_IN,
573
+ request: {
574
+ token: ADMIN,
575
+ params: { username: 'sasjsuser' },
576
+ body: { password: 'Orion123' }
577
+ },
578
+ expect: { status: 400, error: '"password" is not allowed' }
579
+ },
580
+ {
581
+ id: 'delete-user-by-username-extra-key',
582
+ route: 'DELETE /SASjsApi/user/by/username/{username}',
583
+ description: 'refuses a key outside the password a self-deletion carries',
584
+ identity: ADMIN_SIGNED_IN,
585
+ request: {
586
+ token: RESTRICTED,
587
+ params: { username: 'sasjsuser' },
588
+ body: { password: 'Orion123', extra: 1 }
589
+ },
590
+ expect: { status: 400, error: '"extra" is not allowed' }
591
+ },
592
+ {
593
+ id: 'delete-user-by-username-parameter-before-body',
594
+ route: 'DELETE /SASjsApi/user/by/username/{username}',
595
+ description: 'refuses the path parameter before the body it is sent with',
596
+ identity: ADMIN_SIGNED_IN,
597
+ request: {
598
+ token: ADMIN,
599
+ params: { username: 'a-b' },
600
+ body: { password: 'Orion123' }
601
+ },
602
+ expect: {
603
+ status: 400,
604
+ error: '"username" must only contain alpha-numeric characters'
605
+ }
606
+ },
607
+ {
608
+ id: 'delete-user-by-username-short-password',
609
+ route: 'DELETE /SASjsApi/user/by/username/{username}',
610
+ description: 'refuses a password shorter than the schema allows, uncompared',
611
+ identity: ADMIN_SIGNED_IN,
612
+ request: {
613
+ token: RESTRICTED,
614
+ params: { username: 'sasjsuser' },
615
+ body: { password: 'abc' }
616
+ },
617
+ expect: {
618
+ status: 400,
619
+ error: '"password" length must be at least 6 characters long'
620
+ }
621
+ },
622
+ {
623
+ id: 'delete-user-by-username-no-password',
624
+ route: 'DELETE /SASjsApi/user/by/username/{username}',
625
+ description: "requires the caller's own password for a self-deletion",
626
+ identity: ADMIN_SIGNED_IN,
627
+ request: {
628
+ token: RESTRICTED,
629
+ params: { username: 'sasjsuser' },
630
+ body: {}
631
+ },
632
+ expect: { status: 400, error: '"password" is required' }
633
+ },
416
634
  {
417
635
  id: 'delete-user-by-username-wrong-password',
418
636
  route: 'DELETE /SASjsApi/user/by/username/{username}',
@@ -544,6 +762,42 @@ export const RECORD_CORPUS = [
544
762
  request: { token: ADMIN, body: { name: 'DCGroup', description: 'again' } },
545
763
  expect: { status: 409, error: 'Group name already exists.' }
546
764
  },
765
+ {
766
+ id: 'create-group-empty-description',
767
+ route: 'POST /SASjsApi/group',
768
+ description: 'refuses an empty description, which the schema does not allow',
769
+ identity: ADMIN_SIGNED_IN,
770
+ request: {
771
+ token: ADMIN,
772
+ body: { name: 'EmptyDescription', description: '' }
773
+ },
774
+ expect: {
775
+ status: 400,
776
+ error: '"description" is not allowed to be empty'
777
+ }
778
+ },
779
+ {
780
+ id: 'create-group-no-description',
781
+ route: 'POST /SASjsApi/group',
782
+ description: 'creates a group whose description the caller left out',
783
+ identity: ADMIN_SIGNED_IN,
784
+ request: { token: ADMIN, body: { name: 'NoDescription' } },
785
+ expect: {
786
+ status: 200,
787
+ partial: { name: 'NoDescription', description: 'Group description.' }
788
+ }
789
+ },
790
+ {
791
+ id: 'create-group-bad-active-flag',
792
+ route: 'POST /SASjsApi/group',
793
+ description: 'refuses an isActive the schema does not call a boolean',
794
+ identity: ADMIN_SIGNED_IN,
795
+ request: {
796
+ token: ADMIN,
797
+ body: { name: 'FlagGroup', description: 'a group', isActive: 'yes' }
798
+ },
799
+ expect: { status: 400, error: '"isActive" must be a boolean' }
800
+ },
547
801
  {
548
802
  id: 'add-user-to-group',
549
803
  route: 'POST /SASjsApi/group/{groupUid}/{userUid}',
@@ -954,16 +1208,9 @@ export const RECORD_CORPUS = [
954
1208
  route: 'POST /SASjsApi/permission',
955
1209
  description: 'refuses a creation by a non-administrator',
956
1210
  identity: ADMIN_SIGNED_IN,
957
- request: {
958
- token: RESTRICTED,
959
- body: {
960
- path: '/SASjsApi/drive/folder',
961
- type: 'Route',
962
- setting: 'Grant',
963
- principalType: 'user',
964
- principalId: RESTRICTED_UID
965
- }
966
- },
1211
+ // an empty body, which the document requires five fields of, so the case only
1212
+ // passes when the caller is refused before the schema is consulted
1213
+ request: { token: RESTRICTED, body: {} },
967
1214
  expect: { status: 401, error: 'Admin account required' }
968
1215
  },
969
1216
  {
@@ -1040,11 +1287,8 @@ export const RECORD_CORPUS = [
1040
1287
  route: 'PATCH /SASjsApi/permission/{uid}',
1041
1288
  description: 'refuses a change by a non-administrator',
1042
1289
  identity: ADMIN_SIGNED_IN,
1043
- request: {
1044
- token: RESTRICTED,
1045
- params: { uid: 'rule-code' },
1046
- body: { setting: 'Grant' }
1047
- },
1290
+ // `setting` is required, so an empty body only reaches 401 when the gate runs first
1291
+ request: { token: RESTRICTED, params: { uid: 'rule-code' }, body: {} },
1048
1292
  expect: { status: 401, error: 'Admin account required' }
1049
1293
  },
1050
1294
  {
@@ -1164,15 +1408,9 @@ export const RECORD_CORPUS = [
1164
1408
  route: 'POST /SASjsApi/client',
1165
1409
  description: 'refuses a registration by a non-administrator',
1166
1410
  identity: ADMIN_SIGNED_IN,
1167
- request: {
1168
- token: RESTRICTED,
1169
- body: {
1170
- clientId: 'new_app',
1171
- clientSecret: 'new_secret',
1172
- accessTokenExpiration: 3600,
1173
- refreshTokenExpiration: 86400
1174
- }
1175
- },
1411
+ // the document requires `clientId` here, so an empty body would be refused
1412
+ // first by a host that validated before it gated
1413
+ request: { token: RESTRICTED, body: {} },
1176
1414
  expect: { status: 401, error: 'Admin account required' }
1177
1415
  },
1178
1416
  {
@@ -1 +1 @@
1
- {"version":3,"file":"dispatch.d.ts","sourceRoot":"","sources":["../../../src/host/dispatch.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AASvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,KAAK,EAAE,WAAW,E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