@atproto/oauth-provider 0.2.5 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (184) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/account/account-store.js +3 -3
  3. package/dist/account/account-store.js.map +1 -1
  4. package/dist/assets/app/bundle-manifest.json +2 -2
  5. package/dist/assets/app/main.js +3 -3
  6. package/dist/assets/app/main.js.map +1 -1
  7. package/dist/assets/asset.d.ts +0 -1
  8. package/dist/assets/asset.d.ts.map +1 -1
  9. package/dist/assets/assets-middleware.js +2 -3
  10. package/dist/assets/assets-middleware.js.map +1 -1
  11. package/dist/assets/index.js +2 -2
  12. package/dist/assets/index.js.map +1 -1
  13. package/dist/client/client-auth.js +2 -3
  14. package/dist/client/client-auth.js.map +1 -1
  15. package/dist/client/client-manager.d.ts +1 -1
  16. package/dist/client/client-manager.d.ts.map +1 -1
  17. package/dist/client/client-manager.js +3 -4
  18. package/dist/client/client-manager.js.map +1 -1
  19. package/dist/client/client-store.js +3 -4
  20. package/dist/client/client-store.js.map +1 -1
  21. package/dist/client/client-utils.d.ts +0 -1
  22. package/dist/client/client-utils.d.ts.map +1 -1
  23. package/dist/client/client-utils.js +2 -3
  24. package/dist/client/client-utils.js.map +1 -1
  25. package/dist/device/device-details.d.ts +0 -1
  26. package/dist/device/device-details.d.ts.map +1 -1
  27. package/dist/device/device-details.js +3 -3
  28. package/dist/device/device-details.js.map +1 -1
  29. package/dist/device/device-id.d.ts.map +1 -1
  30. package/dist/device/device-manager.d.ts +1 -2
  31. package/dist/device/device-manager.d.ts.map +1 -1
  32. package/dist/device/device-store.js +2 -3
  33. package/dist/device/device-store.js.map +1 -1
  34. package/dist/device/session-id.d.ts.map +1 -1
  35. package/dist/dpop/dpop-manager.d.ts +0 -1
  36. package/dist/dpop/dpop-manager.d.ts.map +1 -1
  37. package/dist/lib/html/build-document.d.ts +0 -1
  38. package/dist/lib/html/build-document.d.ts.map +1 -1
  39. package/dist/lib/html/escapers.js +4 -5
  40. package/dist/lib/html/escapers.js.map +1 -1
  41. package/dist/lib/html/util.js +2 -3
  42. package/dist/lib/html/util.js.map +1 -1
  43. package/dist/lib/http/accept.d.ts +1 -1
  44. package/dist/lib/http/accept.d.ts.map +1 -1
  45. package/dist/lib/http/accept.js +2 -2
  46. package/dist/lib/http/accept.js.map +1 -1
  47. package/dist/lib/http/context.js +1 -2
  48. package/dist/lib/http/context.js.map +1 -1
  49. package/dist/lib/http/method.d.ts +0 -1
  50. package/dist/lib/http/method.d.ts.map +1 -1
  51. package/dist/lib/http/method.js +1 -2
  52. package/dist/lib/http/method.js.map +1 -1
  53. package/dist/lib/http/middleware.d.ts +0 -1
  54. package/dist/lib/http/middleware.d.ts.map +1 -1
  55. package/dist/lib/http/middleware.js +5 -6
  56. package/dist/lib/http/middleware.js.map +1 -1
  57. package/dist/lib/http/parser.d.ts +2 -5
  58. package/dist/lib/http/parser.d.ts.map +1 -1
  59. package/dist/lib/http/parser.js +2 -2
  60. package/dist/lib/http/parser.js.map +1 -1
  61. package/dist/lib/http/path.js +1 -2
  62. package/dist/lib/http/path.js.map +1 -1
  63. package/dist/lib/http/request.d.ts +0 -1
  64. package/dist/lib/http/request.d.ts.map +1 -1
  65. package/dist/lib/http/request.js +9 -10
  66. package/dist/lib/http/request.js.map +1 -1
  67. package/dist/lib/http/response.d.ts +9 -8
  68. package/dist/lib/http/response.d.ts.map +1 -1
  69. package/dist/lib/http/response.js +24 -66
  70. package/dist/lib/http/response.js.map +1 -1
  71. package/dist/lib/http/route.d.ts +0 -1
  72. package/dist/lib/http/route.d.ts.map +1 -1
  73. package/dist/lib/http/route.js +1 -2
  74. package/dist/lib/http/route.js.map +1 -1
  75. package/dist/lib/http/router.d.ts +2 -4
  76. package/dist/lib/http/router.d.ts.map +1 -1
  77. package/dist/lib/http/stream.d.ts +2 -7
  78. package/dist/lib/http/stream.d.ts.map +1 -1
  79. package/dist/lib/http/stream.js +5 -5
  80. package/dist/lib/http/stream.js.map +1 -1
  81. package/dist/lib/http/types.d.ts +0 -1
  82. package/dist/lib/http/types.d.ts.map +1 -1
  83. package/dist/lib/http/url.d.ts +0 -1
  84. package/dist/lib/http/url.d.ts.map +1 -1
  85. package/dist/lib/http/url.js +1 -2
  86. package/dist/lib/http/url.js.map +1 -1
  87. package/dist/lib/redis.d.ts.map +1 -1
  88. package/dist/lib/redis.js +7 -6
  89. package/dist/lib/redis.js.map +1 -1
  90. package/dist/lib/util/cast.js +1 -2
  91. package/dist/lib/util/cast.js.map +1 -1
  92. package/dist/lib/util/crypto.js +2 -2
  93. package/dist/lib/util/crypto.js.map +1 -1
  94. package/dist/lib/util/date.js +2 -3
  95. package/dist/lib/util/date.js.map +1 -1
  96. package/dist/lib/util/hostname.d.ts +0 -1
  97. package/dist/lib/util/hostname.d.ts.map +1 -1
  98. package/dist/lib/util/hostname.js +4 -5
  99. package/dist/lib/util/hostname.js.map +1 -1
  100. package/dist/lib/util/redirect-uri.js +1 -2
  101. package/dist/lib/util/redirect-uri.js.map +1 -1
  102. package/dist/lib/util/time.js +1 -2
  103. package/dist/lib/util/time.js.map +1 -1
  104. package/dist/lib/util/well-known.d.ts +0 -1
  105. package/dist/lib/util/well-known.d.ts.map +1 -1
  106. package/dist/lib/util/well-known.js +1 -2
  107. package/dist/lib/util/well-known.js.map +1 -1
  108. package/dist/metadata/build-metadata.d.ts.map +1 -1
  109. package/dist/metadata/build-metadata.js +4 -4
  110. package/dist/metadata/build-metadata.js.map +1 -1
  111. package/dist/oauth-provider.d.ts +1 -2
  112. package/dist/oauth-provider.d.ts.map +1 -1
  113. package/dist/oauth-provider.js +19 -9
  114. package/dist/oauth-provider.js.map +1 -1
  115. package/dist/oauth-verifier.d.ts +1 -2
  116. package/dist/oauth-verifier.d.ts.map +1 -1
  117. package/dist/output/build-authorize-data.js +1 -2
  118. package/dist/output/build-authorize-data.js.map +1 -1
  119. package/dist/output/build-error-payload.js +2 -3
  120. package/dist/output/build-error-payload.js.map +1 -1
  121. package/dist/output/customization.d.ts +1 -1
  122. package/dist/output/customization.d.ts.map +1 -1
  123. package/dist/output/customization.js +3 -4
  124. package/dist/output/customization.js.map +1 -1
  125. package/dist/output/output-manager.d.ts +0 -1
  126. package/dist/output/output-manager.d.ts.map +1 -1
  127. package/dist/output/send-authorize-redirect.d.ts +0 -1
  128. package/dist/output/send-authorize-redirect.d.ts.map +1 -1
  129. package/dist/output/send-authorize-redirect.js +1 -2
  130. package/dist/output/send-authorize-redirect.js.map +1 -1
  131. package/dist/output/send-web-page.d.ts +3 -4
  132. package/dist/output/send-web-page.d.ts.map +1 -1
  133. package/dist/output/send-web-page.js +4 -5
  134. package/dist/output/send-web-page.js.map +1 -1
  135. package/dist/replay/replay-store-redis.d.ts +1 -1
  136. package/dist/replay/replay-store-redis.d.ts.map +1 -1
  137. package/dist/replay/replay-store.js +3 -4
  138. package/dist/replay/replay-store.js.map +1 -1
  139. package/dist/request/code.d.ts +1 -1
  140. package/dist/request/code.d.ts.map +1 -1
  141. package/dist/request/request-data.d.ts.map +1 -1
  142. package/dist/request/request-id.d.ts.map +1 -1
  143. package/dist/request/request-manager.d.ts.map +1 -1
  144. package/dist/request/request-manager.js +2 -1
  145. package/dist/request/request-manager.js.map +1 -1
  146. package/dist/request/request-store-redis.d.ts +1 -1
  147. package/dist/request/request-store-redis.d.ts.map +1 -1
  148. package/dist/request/request-store-redis.js.map +1 -1
  149. package/dist/request/request-store.js +2 -3
  150. package/dist/request/request-store.js.map +1 -1
  151. package/dist/request/request-uri.js +3 -3
  152. package/dist/request/request-uri.js.map +1 -1
  153. package/dist/signer/signed-token-payload.d.ts +90 -90
  154. package/dist/signer/signed-token-payload.d.ts.map +1 -1
  155. package/dist/signer/signer.d.ts +6 -6
  156. package/dist/signer/signer.d.ts.map +1 -1
  157. package/dist/token/refresh-token.d.ts +1 -1
  158. package/dist/token/refresh-token.d.ts.map +1 -1
  159. package/dist/token/token-claims.d.ts +90 -90
  160. package/dist/token/token-claims.d.ts.map +1 -1
  161. package/dist/token/token-id.d.ts +1 -1
  162. package/dist/token/token-id.d.ts.map +1 -1
  163. package/dist/token/token-store.js +2 -3
  164. package/dist/token/token-store.js.map +1 -1
  165. package/dist/token/verify-token-claims.js +1 -2
  166. package/dist/token/verify-token-claims.js.map +1 -1
  167. package/package.json +3 -7
  168. package/src/assets/assets-middleware.ts +1 -1
  169. package/src/client/client-manager.ts +3 -3
  170. package/src/lib/http/accept.ts +1 -0
  171. package/src/lib/http/middleware.ts +1 -1
  172. package/src/lib/http/response.ts +37 -78
  173. package/src/lib/http/stream.ts +4 -2
  174. package/src/lib/redis.ts +5 -3
  175. package/src/metadata/build-metadata.ts +6 -3
  176. package/src/oauth-provider.ts +19 -11
  177. package/src/oauth-verifier.ts +1 -1
  178. package/src/output/send-web-page.ts +5 -3
  179. package/src/replay/replay-store-redis.ts +1 -1
  180. package/src/request/request-manager.ts +4 -1
  181. package/src/request/request-store-redis.ts +2 -1
  182. package/tsconfig.backend.tsbuildinfo +1 -0
  183. package/tsconfig.frontend.tsbuildinfo +1 -0
  184. package/tsconfig.tools.tsbuildinfo +1 -0
@@ -1 +1 @@
1
- {"version":3,"file":"request-store-redis.js","sourceRoot":"","sources":["../../src/request/request-store-redis.ts"],"names":[],"mappings":";;;AACA,8CAAiE;AAGjE,mDAA4D;AAS5D,MAAa,iBAAiB;IACX,KAAK,CAAO;IAE7B,YAAY,OAAgC;QAC1C,IAAI,CAAC,KAAK,GAAG,IAAA,sBAAW,EAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IACzC,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,EAAa;QAC7B,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;QACrC,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;IACvC,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,EAAa,EAAE,IAAiB;QAClD,MAAM,SAAS,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C,IAAI,CAAC,CAAA;QACxC,IAAI,CAAC,KAAK;YAAE,OAAO,IAAI,CAAA;QAEvB,MAAM,MAAM,GAAG,+BAAe,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;QAC/C,IAAI,CAAC,MAAM,CAAC,OAAO;YAAE,OAAO,IAAI,CAAA;QAEhC,OAAO,MAAM,CAAC,IAAI,CAAA;IACpB,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,IAAU;QAEV,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAA;QAC/C,IAAI,CAAC,EAAE;YAAE,OAAO,IAAI,CAAA;QAEpB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAA;QACvC,IAAI,CAAC,IAAI;YAAE,OAAO,IAAI,CAAA;QAEtB,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAA;IACrB,CAAC;CACF;AAzDD,8CAyDC"}
@@ -14,7 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.ifRequestStore = exports.isRequestStore = void 0;
17
+ exports.isRequestStore = isRequestStore;
18
+ exports.ifRequestStore = ifRequestStore;
18
19
  // Export all types needed to implement the RequestStore interface
19
20
  __exportStar(require("./code.js"), exports);
20
21
  __exportStar(require("./request-id.js"), exports);
@@ -26,12 +27,10 @@ function isRequestStore(implementation) {
26
27
  typeof implementation.deleteRequest === 'function' &&
27
28
  typeof implementation.findRequestByCode === 'function');
28
29
  }
29
- exports.isRequestStore = isRequestStore;
30
30
  function ifRequestStore(implementation) {
31
31
  if (implementation && isRequestStore(implementation)) {
32
32
  return implementation;
33
33
  }
34
34
  return undefined;
35
35
  }
36
- exports.ifRequestStore = ifRequestStore;
37
36
  //# sourceMappingURL=request-store.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"request-store.js","sourceRoot":"","sources":["../../src/request/request-store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAKA,kEAAkE;AAClE,4CAAyB;AACzB,kDAA+B;AAC/B,oDAAiC;AAyBjC,SAAgB,cAAc,CAC5B,cAA+D;IAE/D,OAAO,CACL,OAAO,cAAc,CAAC,aAAa,KAAK,UAAU;QAClD,OAAO,cAAc,CAAC,WAAW,KAAK,UAAU;QAChD,OAAO,cAAc,CAAC,aAAa,KAAK,UAAU;QAClD,OAAO,cAAc,CAAC,aAAa,KAAK,UAAU;QAClD,OAAO,cAAc,CAAC,iBAAiB,KAAK,UAAU,CACvD,CAAA;AACH,CAAC;AAVD,wCAUC;AAED,SAAgB,cAAc,CAC5B,cAAgE;IAEhE,IAAI,cAAc,IAAI,cAAc,CAAC,cAAc,CAAC,EAAE,CAAC;QACrD,OAAO,cAAc,CAAA;IACvB,CAAC;IAED,OAAO,SAAS,CAAA;AAClB,CAAC;AARD,wCAQC"}
1
+ {"version":3,"file":"request-store.js","sourceRoot":"","sources":["../../src/request/request-store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAiCA,wCAUC;AAED,wCAQC;AAhDD,kEAAkE;AAClE,4CAAyB;AACzB,kDAA+B;AAC/B,oDAAiC;AAyBjC,SAAgB,cAAc,CAC5B,cAA+D;IAE/D,OAAO,CACL,OAAO,cAAc,CAAC,aAAa,KAAK,UAAU;QAClD,OAAO,cAAc,CAAC,WAAW,KAAK,UAAU;QAChD,OAAO,cAAc,CAAC,aAAa,KAAK,UAAU;QAClD,OAAO,cAAc,CAAC,aAAa,KAAK,UAAU;QAClD,OAAO,cAAc,CAAC,iBAAiB,KAAK,UAAU,CACvD,CAAA;AACH,CAAC;AAED,SAAgB,cAAc,CAC5B,cAAgE;IAEhE,IAAI,cAAc,IAAI,cAAc,CAAC,cAAc,CAAC,EAAE,CAAC;QACrD,OAAO,cAAc,CAAA;IACvB,CAAC;IAED,OAAO,SAAS,CAAA;AAClB,CAAC"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.decodeRequestUri = exports.encodeRequestUri = exports.requestUriSchema = exports.REQUEST_URI_PREFIX = void 0;
3
+ exports.requestUriSchema = exports.REQUEST_URI_PREFIX = void 0;
4
+ exports.encodeRequestUri = encodeRequestUri;
5
+ exports.decodeRequestUri = decodeRequestUri;
4
6
  const zod_1 = require("zod");
5
7
  const request_id_js_1 = require("./request-id.js");
6
8
  exports.REQUEST_URI_PREFIX = 'urn:ietf:params:oauth:request_uri:';
@@ -15,10 +17,8 @@ exports.requestUriSchema = zod_1.z
15
17
  function encodeRequestUri(requestId) {
16
18
  return `${exports.REQUEST_URI_PREFIX}${encodeURIComponent(requestId)}`;
17
19
  }
18
- exports.encodeRequestUri = encodeRequestUri;
19
20
  function decodeRequestUri(requestUri) {
20
21
  const requestIdEnc = requestUri.slice(exports.REQUEST_URI_PREFIX.length);
21
22
  return decodeURIComponent(requestIdEnc);
22
23
  }
23
- exports.decodeRequestUri = decodeRequestUri;
24
24
  //# sourceMappingURL=request-uri.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"request-uri.js","sourceRoot":"","sources":["../../src/request/request-uri.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,mDAA4D;AAE/C,QAAA,kBAAkB,GAAG,oCAAoC,CAAA;AAEzD,QAAA,gBAAgB,GAAG,OAAC;KAC9B,MAAM,EAAE;KACR,GAAG,EAAE;KACL,UAAU,CACT,CAAC,IAAI,EAAsD,EAAE,CAC3D,IAAI,CAAC,UAAU,CAAC,0BAAkB,CAAC;IACnC,+BAAe,CAAC,SAAS,CAAC,gBAAgB,CAAC,IAAW,CAAC,CAAC,CAAC,OAAO,EAClE;IACE,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;IAC3B,OAAO,EAAE,4BAA4B;CACtC,CACF,CAAA;AAIH,SAA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