@atproto/oauth-provider 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/account/account-store.d.ts +2 -2
  3. package/dist/assets/app/bundle-manifest.json +3 -3
  4. package/dist/assets/app/main.css +1 -1
  5. package/dist/assets/app/main.js +3 -3
  6. package/dist/assets/app/main.js.map +1 -1
  7. package/dist/assets/assets-middleware.d.ts.map +1 -1
  8. package/dist/assets/assets-middleware.js +4 -2
  9. package/dist/assets/assets-middleware.js.map +1 -1
  10. package/dist/client/client-manager.d.ts.map +1 -1
  11. package/dist/client/client-manager.js +127 -118
  12. package/dist/client/client-manager.js.map +1 -1
  13. package/dist/client/client-utils.d.ts +1 -2
  14. package/dist/client/client-utils.d.ts.map +1 -1
  15. package/dist/client/client-utils.js +3 -12
  16. package/dist/client/client-utils.js.map +1 -1
  17. package/dist/client/client.d.ts +8 -3
  18. package/dist/client/client.d.ts.map +1 -1
  19. package/dist/client/client.js +70 -1
  20. package/dist/client/client.js.map +1 -1
  21. package/dist/constants.d.ts +0 -1
  22. package/dist/constants.d.ts.map +1 -1
  23. package/dist/constants.js +1 -2
  24. package/dist/constants.js.map +1 -1
  25. package/dist/errors/access-denied-error.d.ts +4 -4
  26. package/dist/errors/access-denied-error.d.ts.map +1 -1
  27. package/dist/errors/access-denied-error.js +2 -2
  28. package/dist/errors/access-denied-error.js.map +1 -1
  29. package/dist/errors/account-selection-required-error.d.ts +2 -2
  30. package/dist/errors/account-selection-required-error.d.ts.map +1 -1
  31. package/dist/errors/account-selection-required-error.js.map +1 -1
  32. package/dist/errors/consent-required-error.d.ts +2 -2
  33. package/dist/errors/consent-required-error.d.ts.map +1 -1
  34. package/dist/errors/consent-required-error.js.map +1 -1
  35. package/dist/errors/invalid-authorization-details-error.d.ts +2 -2
  36. package/dist/errors/invalid-authorization-details-error.d.ts.map +1 -1
  37. package/dist/errors/invalid-authorization-details-error.js.map +1 -1
  38. package/dist/errors/invalid-client-id-error.d.ts +1 -1
  39. package/dist/errors/invalid-client-id-error.d.ts.map +1 -1
  40. package/dist/errors/invalid-client-id-error.js +12 -6
  41. package/dist/errors/invalid-client-id-error.js.map +1 -1
  42. package/dist/errors/invalid-client-metadata-error.d.ts +1 -1
  43. package/dist/errors/invalid-client-metadata-error.d.ts.map +1 -1
  44. package/dist/errors/invalid-client-metadata-error.js +11 -3
  45. package/dist/errors/invalid-client-metadata-error.js.map +1 -1
  46. package/dist/errors/invalid-parameters-error.d.ts +2 -2
  47. package/dist/errors/invalid-parameters-error.d.ts.map +1 -1
  48. package/dist/errors/invalid-parameters-error.js.map +1 -1
  49. package/dist/errors/invalid-scope-error.d.ts +9 -0
  50. package/dist/errors/invalid-scope-error.d.ts.map +1 -0
  51. package/dist/errors/invalid-scope-error.js +14 -0
  52. package/dist/errors/invalid-scope-error.js.map +1 -0
  53. package/dist/errors/login-required-error.d.ts +2 -2
  54. package/dist/errors/login-required-error.d.ts.map +1 -1
  55. package/dist/errors/login-required-error.js.map +1 -1
  56. package/dist/lib/html/html.d.ts +1 -1
  57. package/dist/lib/html/html.d.ts.map +1 -1
  58. package/dist/lib/html/html.js +14 -11
  59. package/dist/lib/html/html.js.map +1 -1
  60. package/dist/lib/http/parser.d.ts +9 -2
  61. package/dist/lib/http/parser.d.ts.map +1 -1
  62. package/dist/lib/http/parser.js +15 -7
  63. package/dist/lib/http/parser.js.map +1 -1
  64. package/dist/lib/http/request.d.ts +0 -23
  65. package/dist/lib/http/request.d.ts.map +1 -1
  66. package/dist/lib/http/request.js +1 -11
  67. package/dist/lib/http/request.js.map +1 -1
  68. package/dist/lib/http/stream.d.ts +28 -6
  69. package/dist/lib/http/stream.d.ts.map +1 -1
  70. package/dist/lib/http/stream.js +21 -32
  71. package/dist/lib/http/stream.js.map +1 -1
  72. package/dist/lib/util/authorization-header.d.ts.map +1 -1
  73. package/dist/lib/util/authorization-header.js +1 -1
  74. package/dist/lib/util/authorization-header.js.map +1 -1
  75. package/dist/lib/util/hostname.d.ts +3 -2
  76. package/dist/lib/util/hostname.d.ts.map +1 -1
  77. package/dist/lib/util/hostname.js +12 -8
  78. package/dist/lib/util/hostname.js.map +1 -1
  79. package/dist/metadata/build-metadata.d.ts.map +1 -1
  80. package/dist/metadata/build-metadata.js +2 -1
  81. package/dist/metadata/build-metadata.js.map +1 -1
  82. package/dist/oauth-errors.d.ts +1 -0
  83. package/dist/oauth-errors.d.ts.map +1 -1
  84. package/dist/oauth-errors.js +3 -1
  85. package/dist/oauth-errors.js.map +1 -1
  86. package/dist/oauth-hooks.d.ts +3 -3
  87. package/dist/oauth-hooks.d.ts.map +1 -1
  88. package/dist/oauth-provider.d.ts +20 -22
  89. package/dist/oauth-provider.d.ts.map +1 -1
  90. package/dist/oauth-provider.js +234 -176
  91. package/dist/oauth-provider.js.map +1 -1
  92. package/dist/oauth-verifier.d.ts +2 -2
  93. package/dist/oauth-verifier.d.ts.map +1 -1
  94. package/dist/oauth-verifier.js.map +1 -1
  95. package/dist/output/build-authorize-data.d.ts +2 -2
  96. package/dist/output/build-authorize-data.d.ts.map +1 -1
  97. package/dist/output/send-authorize-redirect.d.ts +2 -4
  98. package/dist/output/send-authorize-redirect.d.ts.map +1 -1
  99. package/dist/output/send-authorize-redirect.js +5 -2
  100. package/dist/output/send-authorize-redirect.js.map +1 -1
  101. package/dist/request/request-data.d.ts +2 -2
  102. package/dist/request/request-data.d.ts.map +1 -1
  103. package/dist/request/request-info.d.ts +2 -2
  104. package/dist/request/request-info.d.ts.map +1 -1
  105. package/dist/request/request-manager.d.ts +4 -4
  106. package/dist/request/request-manager.d.ts.map +1 -1
  107. package/dist/request/request-manager.js +94 -60
  108. package/dist/request/request-manager.js.map +1 -1
  109. package/dist/signer/signed-token-payload.d.ts +122 -122
  110. package/dist/signer/signer.d.ts +41 -40
  111. package/dist/signer/signer.d.ts.map +1 -1
  112. package/dist/signer/signer.js +13 -15
  113. package/dist/signer/signer.js.map +1 -1
  114. package/dist/token/token-claims.d.ts +121 -121
  115. package/dist/token/token-data.d.ts +3 -3
  116. package/dist/token/token-data.d.ts.map +1 -1
  117. package/dist/token/token-manager.d.ts +4 -5
  118. package/dist/token/token-manager.d.ts.map +1 -1
  119. package/dist/token/token-manager.js +96 -72
  120. package/dist/token/token-manager.js.map +1 -1
  121. package/dist/token/verify-token-claims.d.ts +3 -3
  122. package/dist/token/verify-token-claims.d.ts.map +1 -1
  123. package/dist/token/verify-token-claims.js.map +1 -1
  124. package/package.json +7 -6
  125. package/src/assets/app/components/sign-in-form.tsx +31 -2
  126. package/src/assets/assets-middleware.ts +4 -2
  127. package/src/client/client-manager.ts +163 -161
  128. package/src/client/client-utils.ts +7 -12
  129. package/src/client/client.ts +112 -3
  130. package/src/constants.ts +0 -2
  131. package/src/errors/access-denied-error.ts +10 -4
  132. package/src/errors/account-selection-required-error.ts +2 -2
  133. package/src/errors/consent-required-error.ts +2 -2
  134. package/src/errors/invalid-authorization-details-error.ts +2 -2
  135. package/src/errors/invalid-client-id-error.ts +15 -4
  136. package/src/errors/invalid-client-metadata-error.ts +15 -3
  137. package/src/errors/invalid-parameters-error.ts +2 -2
  138. package/src/errors/invalid-scope-error.ts +15 -0
  139. package/src/errors/login-required-error.ts +2 -2
  140. package/src/lib/html/html.ts +14 -12
  141. package/src/lib/http/parser.ts +21 -8
  142. package/src/lib/http/request.ts +1 -23
  143. package/src/lib/http/stream.ts +29 -60
  144. package/src/lib/util/authorization-header.ts +5 -2
  145. package/src/lib/util/hostname.ts +9 -5
  146. package/src/metadata/build-metadata.ts +3 -1
  147. package/src/oauth-errors.ts +1 -0
  148. package/src/oauth-hooks.ts +3 -3
  149. package/src/oauth-provider.ts +368 -269
  150. package/src/oauth-verifier.ts +2 -2
  151. package/src/output/build-authorize-data.ts +2 -2
  152. package/src/output/send-authorize-redirect.ts +7 -6
  153. package/src/request/request-data.ts +2 -2
  154. package/src/request/request-info.ts +2 -2
  155. package/src/request/request-manager.ts +129 -103
  156. package/src/signer/signer.ts +24 -25
  157. package/src/token/token-data.ts +3 -3
  158. package/src/token/token-manager.ts +141 -99
  159. package/src/token/verify-token-claims.ts +3 -3
  160. package/dist/request/types.d.ts +0 -328
  161. package/dist/request/types.d.ts.map +0 -1
  162. package/dist/request/types.js +0 -27
  163. package/dist/request/types.js.map +0 -1
  164. package/dist/token/types.d.ts +0 -250
  165. package/dist/token/types.d.ts.map +0 -1
  166. package/dist/token/types.js +0 -36
  167. package/dist/token/types.js.map +0 -1
  168. package/src/request/types.ts +0 -48
  169. package/src/token/types.ts +0 -86
@@ -1 +1 @@
1
- {"version":3,"file":"request-manager.js","sourceRoot":"","sources":["../../src/request/request-manager.ts"],"names":[],"mappings":";;;AAAA,sDAI6B;AAM7B,kDAIwB;AAExB,6EAAoE;AACpE,mFAA0E;AAC1E,6GAAmG;AACnG,6EAAoE;AACpE,uFAA8E;AAC9E,iFAAwE;AACxE,iEAAgE;AAGhE,uCAA8C;AAC9C,uDAG0B;AAC1B,mDAAmD;AAGnD,qDAIyB;AAEzB,MAAa,cAAc;IAEJ;IACA;IACA;IACA;IACA;IALrB,YACqB,KAAmB,EACnB,MAAc,EACd,QAA0C,EAC1C,KAAiB,EACjB,cAAc,4BAAa;QAJ3B,UAAK,GAAL,KAAK,CAAc;QACnB,WAAM,GAAN,MAAM,CAAQ;QACd,aAAQ,GAAR,QAAQ,CAAkC;QAC1C,UAAK,GAAL,KAAK,CAAY;QACjB,gBAAW,GAAX,WAAW,CAAgB;IAC7C,CAAC;IAEM,iBAAiB;QACzB,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC,CAAA;IAChD,CAAC;IAED,KAAK,CAAC,0BAA0B,CAC9B,MAAc,EACd,UAAsB,EACtB,KAAqD,EACrD,QAAyB,EACzB,OAAsB;QAEtB,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,CAAC,CAAA;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iCAAgB,EAAC,GAAG,CAAC,CAAA;QAChC,MAAM,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC,CAAA;IACpC,CAAC;CACF;AAvbD,wCAubC"}
@@ -18,17 +18,77 @@ export declare const signedTokenPayloadSchema: z.ZodIntersection<z.ZodObject<{
18
18
  }>, z.ZodObject<z.objectUtil.extendShape<{
19
19
  nonce: z.ZodOptional<z.ZodOptional<z.ZodString>>;
20
20
  jti: z.ZodOptional<z.ZodOptional<z.ZodString>>;
21
+ client_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
22
+ scope: z.ZodOptional<z.ZodOptional<z.ZodString>>;
23
+ authorization_details: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
24
+ type: z.ZodString;
25
+ locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
26
+ actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
27
+ datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
28
+ identifier: z.ZodOptional<z.ZodString>;
29
+ privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
31
+ type: z.ZodString;
32
+ locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
33
+ actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
34
+ datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
35
+ identifier: z.ZodOptional<z.ZodString>;
36
+ privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
37
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
38
+ type: z.ZodString;
39
+ locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
40
+ actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
41
+ datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
42
+ identifier: z.ZodOptional<z.ZodString>;
43
+ privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44
+ }, z.ZodTypeAny, "passthrough">>, "many">>>;
45
+ auth_time: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
46
+ acr: z.ZodOptional<z.ZodOptional<z.ZodString>>;
21
47
  name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
48
+ family_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
49
+ given_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
50
+ middle_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
51
+ nickname: z.ZodOptional<z.ZodOptional<z.ZodString>>;
52
+ preferred_username: z.ZodOptional<z.ZodOptional<z.ZodString>>;
53
+ gender: z.ZodOptional<z.ZodOptional<z.ZodString>>;
54
+ picture: z.ZodOptional<z.ZodOptional<z.ZodString>>;
55
+ profile: z.ZodOptional<z.ZodOptional<z.ZodString>>;
56
+ website: z.ZodOptional<z.ZodOptional<z.ZodString>>;
57
+ birthdate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
58
+ zoneinfo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
59
+ locale: z.ZodOptional<z.ZodOptional<z.ZodString>>;
60
+ updated_at: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
61
+ email: z.ZodOptional<z.ZodOptional<z.ZodString>>;
62
+ email_verified: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
63
+ phone_number: z.ZodOptional<z.ZodOptional<z.ZodString>>;
64
+ phone_number_verified: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
65
+ address: z.ZodOptional<z.ZodOptional<z.ZodObject<{
66
+ formatted: z.ZodOptional<z.ZodString>;
67
+ street_address: z.ZodOptional<z.ZodString>;
68
+ locality: z.ZodOptional<z.ZodString>;
69
+ region: z.ZodOptional<z.ZodString>;
70
+ postal_code: z.ZodOptional<z.ZodString>;
71
+ country: z.ZodOptional<z.ZodString>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ formatted?: string | undefined;
74
+ street_address?: string | undefined;
75
+ locality?: string | undefined;
76
+ region?: string | undefined;
77
+ postal_code?: string | undefined;
78
+ country?: string | undefined;
79
+ }, {
80
+ formatted?: string | undefined;
81
+ street_address?: string | undefined;
82
+ locality?: string | undefined;
83
+ region?: string | undefined;
84
+ postal_code?: string | undefined;
85
+ country?: string | undefined;
86
+ }>>>;
22
87
  htm: z.ZodOptional<z.ZodOptional<z.ZodString>>;
23
88
  htu: z.ZodOptional<z.ZodOptional<z.ZodString>>;
24
89
  ath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
25
90
  sub: z.ZodOptional<z.ZodOptional<z.ZodString>>;
26
- preferred_username: z.ZodOptional<z.ZodOptional<z.ZodString>>;
27
- email: z.ZodOptional<z.ZodOptional<z.ZodString>>;
28
- email_verified: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
29
- picture: z.ZodOptional<z.ZodOptional<z.ZodString>>;
30
91
  nbf: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
31
- acr: z.ZodOptional<z.ZodOptional<z.ZodString>>;
32
92
  azp: z.ZodOptional<z.ZodOptional<z.ZodString>>;
33
93
  amr: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
34
94
  cnf: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -1312,88 +1372,59 @@ export declare const signedTokenPayloadSchema: z.ZodIntersection<z.ZodObject<{
1312
1372
  jkt?: string | undefined;
1313
1373
  osc?: string | undefined;
1314
1374
  }>>>;
1315
- client_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1316
- scope: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1317
1375
  at_hash: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1318
1376
  c_hash: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1319
1377
  s_hash: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1320
- auth_time: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1321
- family_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1322
- given_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1323
- middle_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1324
- nickname: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1325
- gender: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1326
- profile: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1327
- website: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1328
- birthdate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1329
- zoneinfo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1330
- locale: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1331
- updated_at: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1332
- phone_number: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1333
- phone_number_verified: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1334
- address: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1335
- formatted: z.ZodOptional<z.ZodString>;
1336
- street_address: z.ZodOptional<z.ZodString>;
1337
- locality: z.ZodOptional<z.ZodString>;
1338
- region: z.ZodOptional<z.ZodString>;
1339
- postal_code: z.ZodOptional<z.ZodString>;
1340
- country: z.ZodOptional<z.ZodString>;
1341
- }, "strip", z.ZodTypeAny, {
1342
- formatted?: string | undefined;
1343
- street_address?: string | undefined;
1344
- locality?: string | undefined;
1345
- region?: string | undefined;
1346
- postal_code?: string | undefined;
1347
- country?: string | undefined;
1348
- }, {
1349
- formatted?: string | undefined;
1350
- street_address?: string | undefined;
1351
- locality?: string | undefined;
1352
- region?: string | undefined;
1353
- postal_code?: string | undefined;
1354
- country?: string | undefined;
1355
- }>>>;
1356
- authorization_details: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
1357
- type: z.ZodString;
1358
- locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1359
- actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1360
- datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1361
- identifier: z.ZodOptional<z.ZodString>;
1362
- privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1363
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1364
- type: z.ZodString;
1365
- locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1366
- actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1367
- datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1368
- identifier: z.ZodOptional<z.ZodString>;
1369
- privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1370
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1371
- type: z.ZodString;
1372
- locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1373
- actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1374
- datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1375
- identifier: z.ZodOptional<z.ZodString>;
1376
- privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1377
- }, z.ZodTypeAny, "passthrough">>, "many">>>;
1378
1378
  }, {
1379
1379
  jti: z.ZodEffects<z.ZodString, `tok-${string}`, string>;
1380
1380
  sub: z.ZodString;
1381
1381
  client_id: z.ZodString;
1382
1382
  }>, "strip", z.ZodTypeAny, {
1383
1383
  jti: `tok-${string}`;
1384
- sub: string;
1385
1384
  client_id: string;
1385
+ sub: string;
1386
1386
  nonce?: string | undefined;
1387
+ scope?: string | undefined;
1388
+ authorization_details?: z.objectOutputType<{
1389
+ type: z.ZodString;
1390
+ locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1391
+ actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1392
+ datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1393
+ identifier: z.ZodOptional<z.ZodString>;
1394
+ privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1395
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
1396
+ auth_time?: number | undefined;
1397
+ acr?: string | undefined;
1387
1398
  name?: string | undefined;
1388
- htm?: string | undefined;
1389
- htu?: string | undefined;
1390
- ath?: string | undefined;
1399
+ family_name?: string | undefined;
1400
+ given_name?: string | undefined;
1401
+ middle_name?: string | undefined;
1402
+ nickname?: string | undefined;
1391
1403
  preferred_username?: string | undefined;
1404
+ gender?: string | undefined;
1405
+ picture?: string | undefined;
1406
+ profile?: string | undefined;
1407
+ website?: string | undefined;
1408
+ birthdate?: string | undefined;
1409
+ zoneinfo?: string | undefined;
1410
+ locale?: string | undefined;
1411
+ updated_at?: number | undefined;
1392
1412
  email?: string | undefined;
1393
1413
  email_verified?: boolean | undefined;
1394
- picture?: string | undefined;
1414
+ phone_number?: string | undefined;
1415
+ phone_number_verified?: boolean | undefined;
1416
+ address?: {
1417
+ formatted?: string | undefined;
1418
+ street_address?: string | undefined;
1419
+ locality?: string | undefined;
1420
+ region?: string | undefined;
1421
+ postal_code?: string | undefined;
1422
+ country?: string | undefined;
1423
+ } | undefined;
1424
+ htm?: string | undefined;
1425
+ htu?: string | undefined;
1426
+ ath?: string | undefined;
1395
1427
  nbf?: number | undefined;
1396
- acr?: string | undefined;
1397
1428
  azp?: string | undefined;
1398
1429
  amr?: string[] | undefined;
1399
1430
  cnf?: {
@@ -1500,22 +1531,41 @@ export declare const signedTokenPayloadSchema: z.ZodIntersection<z.ZodObject<{
1500
1531
  jkt?: string | undefined;
1501
1532
  osc?: string | undefined;
1502
1533
  } | undefined;
1503
- scope?: string | undefined;
1504
1534
  at_hash?: string | undefined;
1505
1535
  c_hash?: string | undefined;
1506
1536
  s_hash?: string | undefined;
1537
+ }, {
1538
+ jti: string;
1539
+ client_id: string;
1540
+ sub: string;
1541
+ nonce?: string | undefined;
1542
+ scope?: string | undefined;
1543
+ authorization_details?: z.objectInputType<{
1544
+ type: z.ZodString;
1545
+ locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1546
+ actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1547
+ datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1548
+ identifier: z.ZodOptional<z.ZodString>;
1549
+ privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1550
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
1507
1551
  auth_time?: number | undefined;
1552
+ acr?: string | undefined;
1553
+ name?: string | undefined;
1508
1554
  family_name?: string | undefined;
1509
1555
  given_name?: string | undefined;
1510
1556
  middle_name?: string | undefined;
1511
1557
  nickname?: string | undefined;
1558
+ preferred_username?: string | undefined;
1512
1559
  gender?: string | undefined;
1560
+ picture?: string | undefined;
1513
1561
  profile?: string | undefined;
1514
1562
  website?: string | undefined;
1515
1563
  birthdate?: string | undefined;
1516
1564
  zoneinfo?: string | undefined;
1517
1565
  locale?: string | undefined;
1518
1566
  updated_at?: number | undefined;
1567
+ email?: string | undefined;
1568
+ email_verified?: boolean | undefined;
1519
1569
  phone_number?: string | undefined;
1520
1570
  phone_number_verified?: boolean | undefined;
1521
1571
  address?: {
@@ -1526,29 +1576,10 @@ export declare const signedTokenPayloadSchema: z.ZodIntersection<z.ZodObject<{
1526
1576
  postal_code?: string | undefined;
1527
1577
  country?: string | undefined;
1528
1578
  } | undefined;
1529
- authorization_details?: z.objectOutputType<{
1530
- type: z.ZodString;
1531
- locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1532
- actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1533
- datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1534
- identifier: z.ZodOptional<z.ZodString>;
1535
- privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1536
- }, z.ZodTypeAny, "passthrough">[] | undefined;
1537
- }, {
1538
- jti: string;
1539
- sub: string;
1540
- client_id: string;
1541
- nonce?: string | undefined;
1542
- name?: string | undefined;
1543
1579
  htm?: string | undefined;
1544
1580
  htu?: string | undefined;
1545
1581
  ath?: string | undefined;
1546
- preferred_username?: string | undefined;
1547
- email?: string | undefined;
1548
- email_verified?: boolean | undefined;
1549
- picture?: string | undefined;
1550
1582
  nbf?: number | undefined;
1551
- acr?: string | undefined;
1552
1583
  azp?: string | undefined;
1553
1584
  amr?: string[] | undefined;
1554
1585
  cnf?: {
@@ -1655,40 +1686,9 @@ export declare const signedTokenPayloadSchema: z.ZodIntersection<z.ZodObject<{
1655
1686
  jkt?: string | undefined;
1656
1687
  osc?: string | undefined;
1657
1688
  } | undefined;
1658
- scope?: string | undefined;
1659
1689
  at_hash?: string | undefined;
1660
1690
  c_hash?: string | undefined;
1661
1691
  s_hash?: string | undefined;
1662
- auth_time?: number | undefined;
1663
- family_name?: string | undefined;
1664
- given_name?: string | undefined;
1665
- middle_name?: string | undefined;
1666
- nickname?: string | undefined;
1667
- gender?: string | undefined;
1668
- profile?: string | undefined;
1669
- website?: string | undefined;
1670
- birthdate?: string | undefined;
1671
- zoneinfo?: string | undefined;
1672
- locale?: string | undefined;
1673
- updated_at?: number | undefined;
1674
- phone_number?: string | undefined;
1675
- phone_number_verified?: boolean | undefined;
1676
- address?: {
1677
- formatted?: string | undefined;
1678
- street_address?: string | undefined;
1679
- locality?: string | undefined;
1680
- region?: string | undefined;
1681
- postal_code?: string | undefined;
1682
- country?: string | undefined;
1683
- } | undefined;
1684
- authorization_details?: z.objectInputType<{
1685
- type: z.ZodString;
1686
- locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1687
- actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1688
- datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1689
- identifier: z.ZodOptional<z.ZodString>;
1690
- privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1691
- }, z.ZodTypeAny, "passthrough">[] | undefined;
1692
1692
  }>>;
1693
1693
  export type SignedTokenPayload = Simplify<z.infer<typeof signedTokenPayloadSchema>>;
1694
1694
  //# sourceMappingURL=signed-token-payload.d.ts.map
@@ -1,6 +1,5 @@
1
1
  import { JwtPayload, JwtPayloadGetter, JwtSignHeader, Keyset, SignedJwt, VerifyOptions } from '@atproto/jwk';
2
- import { OAuthAuthenticationRequestParameters, OAuthAuthorizationDetails } from '@atproto/oauth-types';
3
- import { Account } from '../account/account.js';
2
+ import { OAuthAuthorizationRequestParameters, OAuthAuthorizationDetails } from '@atproto/oauth-types';
4
3
  import { Client } from '../client/client.js';
5
4
  import { TokenId } from '../token/token-id.js';
6
5
  export type SignPayload = Omit<JwtPayload, 'iss'>;
@@ -12,7 +11,9 @@ export declare class Signer {
12
11
  key: import("@atproto/jwk").Key;
13
12
  }>;
14
13
  sign(signHeader: JwtSignHeader, payload: SignPayload | JwtPayloadGetter<SignPayload>): Promise<SignedJwt>;
15
- accessToken(client: Client, parameters: OAuthAuthenticationRequestParameters, account: Account, extra: {
14
+ accessToken(client: Client, parameters: OAuthAuthorizationRequestParameters, options: {
15
+ aud: string | [string, ...string[]];
16
+ sub: string;
16
17
  jti: TokenId;
17
18
  exp: Date;
18
19
  iat?: Date;
@@ -26,19 +27,50 @@ export declare class Signer {
26
27
  iss: string;
27
28
  exp: number;
28
29
  jti: `tok-${string}`;
29
- sub: string;
30
30
  client_id: string;
31
+ sub: string;
31
32
  nonce?: string | undefined;
33
+ scope?: string | undefined;
34
+ authorization_details?: import("zod").objectOutputType<{
35
+ type: import("zod").ZodString;
36
+ locations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
37
+ actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
38
+ datatypes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
39
+ identifier: import("zod").ZodOptional<import("zod").ZodString>;
40
+ privileges: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
41
+ }, import("zod").ZodTypeAny, "passthrough">[] | undefined;
42
+ auth_time?: number | undefined;
43
+ acr?: string | undefined;
32
44
  name?: string | undefined;
33
- htm?: string | undefined;
34
- htu?: string | undefined;
35
- ath?: string | undefined;
45
+ family_name?: string | undefined;
46
+ given_name?: string | undefined;
47
+ middle_name?: string | undefined;
48
+ nickname?: string | undefined;
36
49
  preferred_username?: string | undefined;
50
+ gender?: string | undefined;
51
+ picture?: string | undefined;
52
+ profile?: string | undefined;
53
+ website?: string | undefined;
54
+ birthdate?: string | undefined;
55
+ zoneinfo?: string | undefined;
56
+ locale?: string | undefined;
57
+ updated_at?: number | undefined;
37
58
  email?: string | undefined;
38
59
  email_verified?: boolean | undefined;
39
- picture?: string | undefined;
60
+ phone_number?: string | undefined;
61
+ phone_number_verified?: boolean | undefined;
62
+ address?: {
63
+ formatted?: string | undefined;
64
+ street_address?: string | undefined;
65
+ locality?: string | undefined;
66
+ region?: string | undefined;
67
+ postal_code?: string | undefined;
68
+ country?: string | undefined;
69
+ } | undefined;
70
+ htm?: string | undefined;
71
+ htu?: string | undefined;
72
+ ath?: string | undefined;
40
73
  nbf?: number | undefined;
41
- acr?: string | undefined;
42
74
  azp?: string | undefined;
43
75
  amr?: string[] | undefined;
44
76
  cnf?: {
@@ -145,40 +177,9 @@ export declare class Signer {
145
177
  jkt?: string | undefined;
146
178
  osc?: string | undefined;
147
179
  } | undefined;
148
- scope?: string | undefined;
149
180
  at_hash?: string | undefined;
150
181
  c_hash?: string | undefined;
151
182
  s_hash?: string | undefined;
152
- auth_time?: number | undefined;
153
- family_name?: string | undefined;
154
- given_name?: string | undefined;
155
- middle_name?: string | undefined;
156
- nickname?: string | undefined;
157
- gender?: string | undefined;
158
- profile?: string | undefined;
159
- website?: string | undefined;
160
- birthdate?: string | undefined;
161
- zoneinfo?: string | undefined;
162
- locale?: string | undefined;
163
- updated_at?: number | undefined;
164
- phone_number?: string | undefined;
165
- phone_number_verified?: boolean | undefined;
166
- address?: {
167
- formatted?: string | undefined;
168
- street_address?: string | undefined;
169
- locality?: string | undefined;
170
- region?: string | undefined;
171
- postal_code?: string | undefined;
172
- country?: string | undefined;
173
- } | undefined;
174
- authorization_details?: import("zod").objectOutputType<{
175
- type: import("zod").ZodString;
176
- locations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
177
- actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
178
- datatypes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
179
- identifier: import("zod").ZodOptional<import("zod").ZodString>;
180
- privileges: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
181
- }, import("zod").ZodTypeAny, "passthrough">[] | undefined;
182
183
  }, string> & {
183
184
  key: import("@atproto/jwk").Key;
184
185
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"signer.d.ts","sourceRoot":"","sources":["../../src/signer/signer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,MAAM,EACN,SAAS,EACT,aAAa,EACd,MAAM,cAAc,CAAA;AACrB,OAAO,EACL,oCAAoC,EACpC,yBAAyB,EAC1B,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAM9C,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,KAAK,CAAC,CAAA;AAEjD,qBAAa,MAAM;aAEC,MAAM,EAAE,MAAM;aACd,MAAM,EAAE,MAAM;gBADd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM;IAG1B,MAAM,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,UAAU,EACzD,KAAK,EAAE,SAAS,EAChB,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC;;;IAQ5B,IAAI,CACf,UAAU,EAAE,aAAa,EACzB,OAAO,EAAE,WAAW,GAAG,gBAAgB,CAAC,WAAW,CAAC,GACnD,OAAO,CAAC,SAAS,CAAC;IASf,W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K,EAAE,SAAS,EAChB,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC;;;IAQ5B,IAAI,CACf,UAAU,EAAE,aAAa,EACzB,OAAO,EAAE,WAAW,GAAG,gBAAgB,CAAC,WAAW,CAAC,GACnD,OAAO,CAAC,SAAS,CAAC;IASf,WAAW,CACf,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,mCAAmC,EAC/C,OAAO,EAAE;QACP,GAAG,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAA;QACnC,GAAG,EAAE,MAAM,CAAA;QACX,GAAG,EAAE,OAAO,CAAA;QACZ,GAAG,EAAE,IAAI,CAAA;QACT,GAAG,CAAC,EAAE,IAAI,CAAA;QACV,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QAC5B,qBAAqB,CAAC,EAAE,yBAAyB,CAAA;KAClD,GACA,OAAO,CAAC,SAAS,CAAC;IAsBf,iBAAiB,CAAC,KAAK,EAAE,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAczC"}
@@ -24,25 +24,23 @@ class Signer {
24
24
  iss: this.issuer,
25
25
  }));
26
26
  }
27
- async accessToken(client, parameters, account, extra) {
28
- const header = {
27
+ async accessToken(client, parameters, options) {
28
+ return this.sign({
29
29
  // https://datatracker.ietf.org/doc/html/rfc9068#section-2.1
30
- alg: extra.alg,
30
+ alg: options.alg,
31
31
  typ: 'at+jwt',
32
- };
33
- const payload = {
34
- aud: account.aud,
35
- iat: (0, date_js_1.dateToEpoch)(extra?.iat),
36
- exp: (0, date_js_1.dateToEpoch)(extra.exp),
37
- sub: account.sub,
38
- jti: extra.jti,
39
- cnf: extra.cnf,
32
+ }, {
33
+ aud: options.aud,
34
+ iat: (0, date_js_1.dateToEpoch)(options?.iat),
35
+ exp: (0, date_js_1.dateToEpoch)(options.exp),
36
+ sub: options.sub,
37
+ jti: options.jti,
38
+ cnf: options.cnf,
40
39
  // https://datatracker.ietf.org/doc/html/rfc8693#section-4.3
41
40
  client_id: client.id,
42
- scope: parameters.scope || client.metadata.scope,
43
- authorization_details: extra.authorization_details,
44
- };
45
- return this.sign(header, payload);
41
+ scope: parameters.scope,
42
+ authorization_details: options.authorization_details,
43
+ });
46
44
  }
47
45
  async verifyAccessToken(token) {
48
46
  const result = await this.verify(token, {
@@ -1 +1 @@
1
- {"version":3,"file":"signer.js","sourceRoot":"","sources":["../../src/signer/signer.ts"],"names":[],"mappings":";;;AAeA,iDAAiD;AAEjD,uEAGkC;AAIlC,MAAa,MAAM;IAEC;IACA;IAFlB,YACkB,MAAc,EACd,MAAc;QADd,WAAM,GAAN,MAAM,CAAQ;QACd,WAAM,GAAN,MAAM,CAAQ;IAC7B,CAAC;IAEJ,KAAK,CAAC,MAAM,CACV,KAAgB,EAChB,OAAuC;QAEvC,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,CAAI,KAAK,EAAE;YACrC,GAAG,OAAO;YACV,MAAM,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC;SACtB,CAAC,CAAA;IACJ,CAAC;IAEM,KAAK,CAAC,IAAI,CACf,UAAyB,EACzB,OAAoD;QAEpD,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,EAAE,KAAK,EAAE,eAAe,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;YACxE,GAAG,CAAC,OAAO,OAAO,KAAK,UAAU;gBAC/B,CAAC,CAAC,MAAM,OAAO,CAAC,eAAe,EAAE,GAAG,CAAC;gBACrC,CAAC,CAAC,OAAO,CAAC;YACZ,GAAG,EAAE,IAAI,CAAC,MAAM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