@atproto/oauth-provider 0.1.0 → 0.1.2-rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/account/account-manager.d.ts +2 -2
  3. package/dist/account/account-manager.d.ts.map +1 -1
  4. package/dist/account/account-manager.js.map +1 -1
  5. package/dist/account/account-store.d.ts +19 -6
  6. package/dist/account/account-store.d.ts.map +1 -1
  7. package/dist/account/account-store.js +16 -1
  8. package/dist/account/account-store.js.map +1 -1
  9. package/dist/assets/app/bundle-manifest.json +3 -3
  10. package/dist/assets/app/main.css +1 -1
  11. package/dist/assets/app/main.js +3 -3
  12. package/dist/assets/app/main.js.map +1 -1
  13. package/dist/client/client-auth.d.ts.map +1 -1
  14. package/dist/client/client-auth.js +2 -2
  15. package/dist/client/client-auth.js.map +1 -1
  16. package/dist/client/client-manager.d.ts.map +1 -1
  17. package/dist/client/client-manager.js +3 -1
  18. package/dist/client/client-manager.js.map +1 -1
  19. package/dist/client/client.d.ts.map +1 -1
  20. package/dist/client/client.js +3 -3
  21. package/dist/client/client.js.map +1 -1
  22. package/dist/dpop/dpop-manager.d.ts.map +1 -1
  23. package/dist/dpop/dpop-manager.js +3 -3
  24. package/dist/dpop/dpop-manager.js.map +1 -1
  25. package/dist/errors/invalid-token-error.d.ts.map +1 -1
  26. package/dist/errors/invalid-token-error.js +3 -2
  27. package/dist/errors/invalid-token-error.js.map +1 -1
  28. package/dist/errors/second-authentication-factor-required-error.d.ts +13 -0
  29. package/dist/errors/second-authentication-factor-required-error.d.ts.map +1 -0
  30. package/dist/errors/second-authentication-factor-required-error.js +23 -0
  31. package/dist/errors/second-authentication-factor-required-error.js.map +1 -0
  32. package/dist/lib/util/authorization-header.js +1 -1
  33. package/dist/lib/util/authorization-header.js.map +1 -1
  34. package/dist/metadata/build-metadata.d.ts.map +1 -1
  35. package/dist/metadata/build-metadata.js +2 -0
  36. package/dist/metadata/build-metadata.js.map +1 -1
  37. package/dist/oauth-errors.d.ts +1 -0
  38. package/dist/oauth-errors.d.ts.map +1 -1
  39. package/dist/oauth-errors.js +3 -1
  40. package/dist/oauth-errors.js.map +1 -1
  41. package/dist/oauth-provider.d.ts +101 -4
  42. package/dist/oauth-provider.d.ts.map +1 -1
  43. package/dist/oauth-provider.js +98 -110
  44. package/dist/oauth-provider.js.map +1 -1
  45. package/dist/output/build-authorize-data.d.ts +40 -0
  46. package/dist/output/build-authorize-data.d.ts.map +1 -0
  47. package/dist/output/build-authorize-data.js +22 -0
  48. package/dist/output/build-authorize-data.js.map +1 -0
  49. package/dist/output/build-error-payload.d.ts.map +1 -1
  50. package/dist/output/build-error-payload.js +4 -3
  51. package/dist/output/build-error-payload.js.map +1 -1
  52. package/dist/output/customization.d.ts +2 -12
  53. package/dist/output/customization.d.ts.map +1 -1
  54. package/dist/output/customization.js +59 -32
  55. package/dist/output/customization.js.map +1 -1
  56. package/dist/output/output-manager.d.ts +16 -0
  57. package/dist/output/output-manager.d.ts.map +1 -0
  58. package/dist/output/output-manager.js +69 -0
  59. package/dist/output/output-manager.js.map +1 -0
  60. package/dist/output/send-web-page.d.ts +1 -1
  61. package/dist/output/send-web-page.d.ts.map +1 -1
  62. package/dist/output/send-web-page.js +3 -2
  63. package/dist/output/send-web-page.js.map +1 -1
  64. package/package.json +7 -7
  65. package/src/account/account-manager.ts +2 -2
  66. package/src/account/account-store.ts +12 -6
  67. package/src/assets/app/components/accept-form.tsx +86 -83
  68. package/src/assets/app/components/account-picker.tsx +98 -79
  69. package/src/assets/app/components/button.tsx +34 -0
  70. package/src/assets/app/components/client-identifier.tsx +12 -13
  71. package/src/assets/app/components/fieldset.tsx +26 -0
  72. package/src/assets/app/components/form-card.tsx +47 -0
  73. package/src/assets/app/components/help-card.tsx +1 -1
  74. package/src/assets/app/components/icons/alert-icon.tsx +5 -0
  75. package/src/assets/app/components/icons/at-symbol-icon.tsx +5 -0
  76. package/src/assets/app/components/icons/caret-right-icon.tsx +5 -0
  77. package/src/assets/app/components/icons/lock-icon.tsx +5 -0
  78. package/src/assets/app/components/icons/token-icon.tsx +5 -0
  79. package/src/assets/app/components/icons/util.tsx +17 -0
  80. package/src/assets/app/components/info-card.tsx +45 -0
  81. package/src/assets/app/components/input-checkbox.tsx +47 -0
  82. package/src/assets/app/components/input-container.tsx +37 -0
  83. package/src/assets/app/components/input-layout.tsx +47 -0
  84. package/src/assets/app/components/input-text.tsx +69 -0
  85. package/src/assets/app/components/layout-title-page.tsx +33 -16
  86. package/src/assets/app/components/layout-welcome.tsx +30 -14
  87. package/src/assets/app/components/sign-in-form.tsx +214 -196
  88. package/src/assets/app/components/sign-up-account-form.tsx +101 -117
  89. package/src/assets/app/components/sign-up-disclaimer.tsx +1 -1
  90. package/src/assets/app/hooks/use-api.ts +2 -0
  91. package/src/assets/app/lib/api.ts +49 -14
  92. package/src/assets/app/lib/clsx.ts +6 -1
  93. package/src/assets/app/lib/util.ts +3 -0
  94. package/src/assets/app/main.css +2 -1
  95. package/src/assets/app/views/accept-view.tsx +4 -3
  96. package/src/assets/app/views/authorize-view.tsx +8 -4
  97. package/src/assets/app/views/error-view.tsx +24 -15
  98. package/src/assets/app/views/sign-in-view.tsx +5 -15
  99. package/src/assets/app/views/sign-up-view.tsx +3 -10
  100. package/src/assets/app/views/welcome-view.tsx +11 -18
  101. package/src/client/client-auth.ts +3 -2
  102. package/src/client/client-manager.ts +2 -1
  103. package/src/client/client.ts +3 -1
  104. package/src/dpop/dpop-manager.ts +3 -2
  105. package/src/errors/invalid-token-error.ts +3 -1
  106. package/src/errors/second-authentication-factor-required-error.ts +25 -0
  107. package/src/lib/util/authorization-header.ts +1 -1
  108. package/src/metadata/build-metadata.ts +3 -0
  109. package/src/oauth-errors.ts +1 -0
  110. package/src/oauth-provider.ts +110 -99
  111. package/src/output/{send-authorize-page.ts → build-authorize-data.ts} +3 -43
  112. package/src/output/build-error-payload.ts +3 -1
  113. package/src/output/customization.ts +67 -45
  114. package/src/output/output-manager.ts +87 -0
  115. package/src/output/send-web-page.ts +4 -3
  116. package/tailwind.config.js +14 -1
  117. package/src/assets/app/components/error-card.tsx +0 -41
  118. package/src/output/send-error-page.ts +0 -41
@@ -1 +1 @@
1
- {"version":3,"file":"client-auth.d.ts","sourceRoot":"","sources":["../../src/client/client-auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAA;AACvE,OAAO,EAAE,OAAO,EAAqC,MAAM,MAAM,CAAA;AAKjE,MAAM,MAAM,UAAU,GAClB;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAClB;IACE,MAAM,EAAE,OAAO,gCAAgC,CAAA;IAC/C,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAEL,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,GAAG,OAAO,CAevE;AAED,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,UAAU,GAAG,OAAO,GACxB,OAAO,CAAC,MAAM,CAAC,CAUjB"}
1
+ {"version":3,"file":"client-auth.d.ts","sourceRoot":"","sources":["../../src/client/client-auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAA;AACvE,OAAO,EAAE,OAAO,EAA6C,MAAM,MAAM,CAAA;AAMzE,MAAM,MAAM,UAAU,GAClB;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAClB;IACE,MAAM,EAAE,OAAO,gCAAgC,CAAA;IAC/C,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAEL,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,GAAG,OAAO,CAevE;AAED,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,UAAU,GAAG,OAAO,GACxB,OAAO,CAAC,MAAM,CAAC,CAUjB"}
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.authJwkThumbprint = exports.compareClientAuth = void 0;
4
4
  const oauth_types_1 = require("@atproto/oauth-types");
5
5
  const jose_1 = require("jose");
6
- const errors_1 = require("jose/errors");
7
6
  const invalid_client_error_js_1 = require("../errors/invalid-client-error.js");
7
+ const { JOSEError } = jose_1.errors;
8
8
  function compareClientAuth(a, b) {
9
9
  if (a.method === 'none') {
10
10
  if (b.method !== a.method)
@@ -25,7 +25,7 @@ async function authJwkThumbprint(key) {
25
25
  return await (0, jose_1.calculateJwkThumbprint)(await (0, jose_1.exportJWK)(key), 'sha512');
26
26
  }
27
27
  catch (err) {
28
- const message = err instanceof errors_1.JOSEError
28
+ const message = err instanceof JOSEError
29
29
  ? err.message
30
30
  : 'Failed to compute JWK thumbprint';
31
31
  throw new invalid_client_error_js_1.InvalidClientError(message, err);
@@ -1 +1 @@
1
- {"version":3,"file":"client-auth.js","sourceRoot":"","sources":["../../src/client/client-auth.ts"],"names":[],"mappings":";;;AAAA,sDAAuE;AACvE,+BAAiE;AACjE,wCAAuC;AAEvC,+EAAsE;AAWtE,SAAgB,iBAAiB,CAAC,CAAa,EAAE,CAAa;IAC5D,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;QACxB,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM;YAAE,OAAO,KAAK,CAAA;QAEvC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,IAAI,CAAC,CAAC,MAAM,KAAK,8CAAgC,EAAE,CAAC;QAClD,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM;YAAE,OAAO,KAAK,CAAA;QAEvC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,aAAa;IACb,MAAM,IAAI,SAAS,CAAC,2BAA2B,CAAC,CAAA;AAClD,CAAC;AAfD,8CAeC;AAEM,KAAK,UAAU,iBAAiB,CACr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cA+BvB,iBAAiB,CAC/B,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,mBAAmB,CAAC;cAYf,yBAAyB,CACvC,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,mBAAmB,CAAC;cAiBf,6BAA6B,CAC3C,QAAQ,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC;cAYf,uBAAuB,CACrC,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,mBAAmB,CAAC;IAS/B;;;;;OAKG;IACH,SAAS,CAAC,sBAAsB,CAC9B,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,mBAAmB,GAC5B,mBAAmB;IA+dtB,8BAA8B,CAC5B,QAAQ,EAAE,qBAAqB,EAC/B,QAAQ,EAAE,mBAAmB,GAC5B,mBAAmB;IAqDtB,kCAAkC,CAChC,QAAQ,EAAE,yBAAyB,EACnC,QAAQ,EAAE,mBAAmB,GAC5B,mBAAmB;CAuEvB"}
@@ -13,7 +13,9 @@ const oauth_error_js_1 = require("../errors/oauth-error.js");
13
13
  const hostname_js_1 = require("../lib/util/hostname.js");
14
14
  const client_utils_js_1 = require("./client-utils.js");
15
15
  const client_js_1 = require("./client.js");
16
- const fetchMetadataHandler = (0, pipe_1.pipe)((0, fetch_1.fetchOkProcessor)(), (0, fetch_1.fetchJsonProcessor)('application/json', false), (0, fetch_1.fetchJsonZodProcessor)(oauth_types_1.oauthClientMetadataSchema));
16
+ const fetchMetadataHandler = (0, pipe_1.pipe)((0, fetch_1.fetchOkProcessor)(),
17
+ // https://drafts.aaronpk.com/draft-parecki-oauth-client-id-metadata-document/draft-parecki-oauth-client-id-metadata-document.html#section-4.1
18
+ (0, fetch_1.fetchJsonProcessor)('application/json', true), (0, fetch_1.fetchJsonZodProcessor)(oauth_types_1.oauthClientMetadataSchema));
17
19
  const fetchJwksHandler = (0, pipe_1.pipe)((0, fetch_1.fetchOkProcessor)(), (0, fetch_1.fetchJsonProcessor)('application/json', false), (0, fetch_1.fetchJsonZodProcessor)(jwk_1.jwksSchema));
18
20
  class ClientManager {
19
21
  keyset;
@@ -1 +1 @@
1
- {"version":3,"file":"client-manager.js","sourceRoot":"","sources":["../../src/client/client-manager.ts"],"names":[],"mappings":";;;AAAA,+CAM4B;AAC5B,6CAAyC;AACzC,6DAImC;AACnC,sCAAuD;AACvD,sDAW6B;AAE7B,kDAAqE;AACrE,iGAAuF;AACvF,2FAAiF;AACjF,6DAAqD;AACrD,yDAAqE;AAKrE,uDAA+E;AAC/E,2CAAoC;AAEpC,MAAM,oBAAoB,GAAG,IAAA,WAAI,EAC/B,IAAA,wBAAgB,GAAE,EAClB,IAAA,0BAAkB,EAAC,kBAAkB,EAAE,KAAK,CAAC,EAC7C,IAAA,6BAAqB,EAAC,uCAAyB,CAAC,CACjD,CAAA;AAED,MAAM,gBAAgB,GAAG,IAAA,WAAI,EAC3B,IAAA,wBAAgB,GAAE,EAClB,IAAA,0BAAkB,EAAC,kBAAkB,EAAE,KAAK,CAAC,EAC7C,IAAA,6BAAqB,EAAC,gBAAU,CAAC,CAClC,CAAA;AAMD,MAAa,aAAa;IAKH;IACA;IACA;IACA;IAPF,IAAI,CAA4B;IAChC,QAAQ,CAA2C;IAEtE,YACqB,MAAc,EACd,KAAiB,EACjB,KAAyB,EACzB,mBAAkD,IAAI,EACzE,SAAgB,EAChB,eAA0C,EAC1C,mBAA6D;QAN1C,WAAM,GAAN,MAAM,CAAQ;QACd,UAAK,GAAL,KAAK,CAAY;QACjB,UAAK,GAAL,KAAK,CAAoB;QACzB,qBAAgB,GAAhB,gBAAgB,CAAsC;QAKzE,MAAM,KAAK,GAAG,IAAA,iBAAS,EAAC,SAAS,CAAC,CAAA;QAElC,IAAI,CAAC,IAAI,GAAG,IAAI,2BAAY,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE;YAClD,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,mBAAmB,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,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AAC;CA4B1E"}
@@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Client = void 0;
4
4
  const oauth_types_1 = require("@atproto/oauth-types");
5
5
  const jose_1 = require("jose");
6
- const errors_1 = require("jose/errors");
7
6
  const constants_js_1 = require("../constants.js");
8
7
  const invalid_client_error_js_1 = require("../errors/invalid-client-error.js");
9
8
  const invalid_client_metadata_error_js_1 = require("../errors/invalid-client-metadata-error.js");
10
9
  const invalid_request_error_js_1 = require("../errors/invalid-request-error.js");
11
10
  const client_auth_js_1 = require("./client-auth.js");
11
+ const { JOSEError } = jose_1.errors;
12
12
  class Client {
13
13
  id;
14
14
  metadata;
@@ -52,7 +52,7 @@ class Client {
52
52
  }
53
53
  }
54
54
  catch (err) {
55
- const message = err instanceof errors_1.JOSEError
55
+ const message = err instanceof JOSEError
56
56
  ? `Invalid "request" object: ${err.message}`
57
57
  : `Invalid "request" object`;
58
58
  throw new invalid_request_error_js_1.InvalidRequestError(message, err);
@@ -98,7 +98,7 @@ class Client {
98
98
  subject: this.id,
99
99
  maxTokenAge: constants_js_1.CLIENT_ASSERTION_MAX_AGE / 1000,
100
100
  }).catch((err) => {
101
- if (err instanceof errors_1.JOSEError) {
101
+ if (err instanceof JOSEError) {
102
102
  const msg = `Validation of "client_assertion" failed: ${err.message}`;
103
103
  throw new invalid_client_error_js_1.InvalidClientError(msg, err);
104
104
  }
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client/client.ts"],"names":[],"mappings":";;;AACA,sDAK6B;AAC7B,+BAYa;AACb,wCAAuC;AAEvC,kDAAuE;AACvE,+EAAsE;AACtE,iGAAuF;AACvF,iFAAwE;AACxE,qDAAgE;AAIhE,MAAa,MAAM;IASC;IACA;IACA;IACA;IAXlB;;OAEG;IACH,MAAM,CAAU,sBAAsB,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAU,CAAA;IAE5D,SAAS,CAAiB;IAE3C,YACkB,EAAY,E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MAAM;;;;CAoEhB"}
1
+ {"version":3,"file":"dpop-manager.d.ts","sourceRoot":"","sources":["../../src/dpop/dpop-manager.ts"],"names":[],"mappings":";AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAI3D,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,CAAA;AACzC,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,KAAK,GAAG,cAAc,CAAA;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,qBAAa,WAAW;IACtB,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,CAAA;gBAE5B,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAE,kBAAuB;IAK7D,SAAS,IAAI,MAAM,GAAG,SAAS;IAI/B;;OAEG;IACG,UAAU,CACd,KAAK,EAAE,OAAO,EACd,GAAG,EAAE,MAAM,EAAE,cAAc;IAC3B,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,WAAW;IAC9B,WAAW,CAAC,EAAE,MAAM;;;iBAWb,MAAM;iBACN,MAAM;iBACN,MAAM;;;;CAoEhB"}
@@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DpopManager = exports.DpopNonce = void 0;
4
4
  const node_crypto_1 = require("node:crypto");
5
5
  const jose_1 = require("jose");
6
- const errors_1 = require("jose/errors");
7
6
  const constants_js_1 = require("../constants.js");
8
7
  const invalid_dpop_proof_error_js_1 = require("../errors/invalid-dpop-proof-error.js");
9
8
  const use_dpop_nonce_error_js_1 = require("../errors/use-dpop-nonce-error.js");
10
9
  const dpop_nonce_js_1 = require("./dpop-nonce.js");
11
10
  Object.defineProperty(exports, "DpopNonce", { enumerable: true, get: function () { return dpop_nonce_js_1.DpopNonce; } });
11
+ const { JOSEError } = jose_1.errors;
12
12
  class DpopManager {
13
13
  dpopNonce;
14
14
  constructor({ dpopSecret, dpopStep } = {}) {
@@ -36,7 +36,7 @@ class DpopManager {
36
36
  clockTolerance: constants_js_1.DPOP_NONCE_MAX_AGE / 1e3,
37
37
  requiredClaims: ['iat', 'exp', 'jti'],
38
38
  }).catch((err) => {
39
- const message = err instanceof errors_1.JOSEError
39
+ const message = err instanceof JOSEError
40
40
  ? `Invalid DPoP proof (${err.message})`
41
41
  : 'Invalid DPoP proof';
42
42
  throw new invalid_dpop_proof_error_js_1.InvalidDpopProofError(message, err);
@@ -82,7 +82,7 @@ class DpopManager {
82
82
  };
83
83
  }
84
84
  catch (err) {
85
- const message = err instanceof errors_1.JOSEError ? err.message : 'Failed to calculate jkt';
85
+ const message = err instanceof JOSEError ? err.message : 'Failed to calculate jkt';
86
86
  throw new invalid_dpop_proof_error_js_1.InvalidDpopProofError(message, err);
87
87
  }
88
88
  }
@@ -1 +1 @@
1
- {"version":3,"file":"dpop-manager.js","sourceRoot":"","sources":["../../src/dpop/dpop-manager.ts"],"names":[],"mappings":";;;AAAA,6CAAwC;AAExC,+BAAqE;AACrE,wCAAuC;AAEvC,kDAAoD;AACpD,uFAA6E;AAC7E,+EAAqE;AACrE,mDAA2D;AAElD,0FAFA,yBAAS,OAEA;AAYlB,MAAa,WAAW;IACH,SAAS,CAAY;IAExC,YAAY,EAAE,UAAU,EAAE,QAAQ,KAAyB,EAAE;QAC3D,IAAI,CAAC,SAAS;YACZ,UAAU,KAAK,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,yBAAS,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAA;IAC3E,CAAC;IAED,SAAS;QACP,OAAO,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,CAAA;IAC/B,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,CACd,KAAc,EACd,GAAW,EAAE,cAAc;IAC3B,GAAiB,EAAE,WAAW;IAC9B,WAAoB;QAEpB,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,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C,KAAK,CAAC,EAAE,CAAC;YAC1B,MAAM,IAAI,mDAAqB,CAAC,sBAAsB,CAAC,CAAA;QACzD,CAAC;QAED,IAAI,CAAC;YACH,OAAO;gBACL,eAAe;gBACf,OAAO;gBACP,GAAG,EAAE,MAAM,IAAA,6BAAsB,EAAC,eAAe,CAAC,KAAK,CAAE,EAAE,QAAQ,CAAC,EAAE,cAAc;aACrF,CAAA;QACH,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,MAAM,OAAO,GACX,GAAG,YAAY,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,yBAAyB,CAAA;YACpE,MAAM,IAAI,mDAAqB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAA;QAC/C,CAAC;IACH,CAAC;CACF;AApGD,kCAoGC;AAED;;;;;;;;;GASG;AACH,SAAS,YAAY,CAAC,GAAY;IAChC,eAAe;IACf,IAAI,CAAC,GAAG;QAAE,OAAO,IAAI,CAAA;IAErB,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;QAChC,GAAG,CAAC,IAAI,GAAG,EAAE,CAAA;QACb,GAAG,CAAC,MAAM,GAAG,EAAE,CAAA;QACf,OAAO,GAAG,CAAC,IAAI,CAAA;IACjB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAA;IACb,CAAC;AACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"invalid-token-error.d.ts","sourceRoot":"","sources":["../../src/errors/invalid-token-error.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAElE;;;;;;;;GAQG;AACH,qBAAa,iBAAkB,SAAQ,oBAAoB;IA8BvD,QAAQ,CAAC,SAAS,EAAE,MAAM;IA7B5B,MAAM,CAAC,IAAI,CACT,GAAG,EAAE,OAAO,EACZ,SAAS,EAAE,MAAM,EACjB,eAAe,SAAkB,GAChC,iBAAiB;gBAyBT,SAAS,EAAE,MAAM,EAC1B,iBAAiB,EAAE,MAAM,EACzB,KAAK,CAAC,EAAE,OAAO;CAUlB"}
1
+ {"version":3,"file":"invalid-token-error.d.ts","sourceRoot":"","sources":["../../src/errors/invalid-token-error.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAIlE;;;;;;;;GAQG;AACH,qBAAa,iBAAkB,SAAQ,oBAAoB;IA8BvD,QAAQ,CAAC,SAAS,EAAE,MAAM;IA7B5B,MAAM,CAAC,IAAI,CACT,GAAG,EAAE,OAAO,EACZ,SAAS,EAAE,MAAM,EACjB,eAAe,SAAkB,GAChC,iBAAiB;gBAyBT,SAAS,EAAE,MAAM,EAC1B,iBAAiB,EAAE,MAAM,EACzB,KAAK,CAAC,EAAE,OAAO;CAUlB"}
@@ -2,10 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvalidTokenError = void 0;
4
4
  const jwk_1 = require("@atproto/jwk");
5
- const errors_1 = require("jose/errors");
5
+ const jose_1 = require("jose");
6
6
  const zod_1 = require("zod");
7
7
  const oauth_error_js_1 = require("./oauth-error.js");
8
8
  const www_authenticate_error_js_1 = require("./www-authenticate-error.js");
9
+ const { JOSEError } = jose_1.errors;
9
10
  /**
10
11
  * @see
11
12
  * {@link https://datatracker.ietf.org/doc/html/rfc6750#section-3.1 | RFC6750 - The WWW-Authenticate Response Header Field }
@@ -24,7 +25,7 @@ class InvalidTokenError extends www_authenticate_error_js_1.WWWAuthenticateError
24
25
  if (err instanceof oauth_error_js_1.OAuthError) {
25
26
  return new InvalidTokenError(tokenType, err.error_description, err);
26
27
  }
27
- if (err instanceof errors_1.JOSEError) {
28
+ if (err instanceof JOSEError) {
28
29
  return new InvalidTokenError(tokenType, err.message, err);
29
30
  }
30
31
  if (err instanceof jwk_1.JwtVerifyError) {
@@ -1 +1 @@
1
- {"version":3,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,eAAe,CAAA;QAC7B,KAAK,CACH,KAAK,EACL,iBAAiB,EACjB,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE,EAC7C,KAAK,CACN,CAAA;QAVQ,cAAS,GAAT,SAAS,CAAQ;IAW5B,CAAC;CACF;AA1CD,8CA0CC"}
@@ -0,0 +1,13 @@
1
+ import { OAuthError } from './oauth-error.js';
2
+ export declare class SecondAuthenticationFactorRequiredError extends OAuthError {
3
+ type: 'emailOtp';
4
+ hint: string;
5
+ constructor(type: 'emailOtp', hint: string, cause?: unknown);
6
+ toJSON(): {
7
+ readonly type: "emailOtp";
8
+ readonly hint: string;
9
+ readonly error: string;
10
+ readonly error_description: string;
11
+ };
12
+ }
13
+ //# sourceMappingURL=second-authentication-factor-required-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"second-authentication-factor-required-error.d.ts","sourceRoot":"","sources":["../../src/errors/second-authentication-factor-required-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7C,qBAAa,uCAAwC,SAAQ,UAAU;IAE5D,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,MAAM;gBADZ,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,MAAM,EACnB,KAAK,CAAC,EAAE,OAAO;IAWjB,MAAM;;;;;;CAOP"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SecondAuthenticationFactorRequiredError = void 0;
4
+ const oauth_error_js_1 = require("./oauth-error.js");
5
+ class SecondAuthenticationFactorRequiredError extends oauth_error_js_1.OAuthError {
6
+ type;
7
+ hint;
8
+ constructor(type, hint, cause) {
9
+ const error = 'second_authentication_factor_required';
10
+ super(error, `${type} authentication factor required (hint: ${hint})`, 401, cause);
11
+ this.type = type;
12
+ this.hint = hint;
13
+ }
14
+ toJSON() {
15
+ return {
16
+ ...super.toJSON(),
17
+ type: this.type,
18
+ hint: this.hint,
19
+ };
20
+ }
21
+ }
22
+ exports.SecondAuthenticationFactorRequiredError = SecondAuthenticationFactorRequiredError;
23
+ //# sourceMappingURL=second-authentication-factor-required-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"second-authentication-factor-required-error.js","sourceRoot":"","sources":["../../src/errors/second-authentication-factor-required-error.ts"],"names":[],"mappings":";;;AAAA,qDAA6C;AAE7C,MAAa,uCAAwC,SAAQ,2BAAU;IAE5D;IACA;IAFT,YACS,IAAgB,EAChB,IAAY,EACnB,KAAe;QAEf,MAAM,KAAK,GAAG,uCAAuC,CAAA;QACrD,KAAK,CACH,KAAK,EACL,GAAG,IAAI,0CAA0C,IAAI,GAAG,EACxD,GAAG,EACH,KAAK,CACN,CAAA;QAVM,SAAI,GAAJ,IAAI,CAAY;QAChB,SAAI,GAAJ,IAAI,CAAQ;IAUrB,CAAC;IAED,MAAM;QACJ,OAAO;YACL,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;SACP,CAAA;IACZ,CAAC;CACF;AAtBD,0FAsBC"}
@@ -13,7 +13,7 @@ const parseAuthorizationHeader = (header) => {
13
13
  if (header == null) {
14
14
  throw new www_authenticate_error_js_1.WWWAuthenticateError('invalid_request', 'Authorization header required', { Bearer: {}, DPoP: {} });
15
15
  }
16
- const parsed = exports.authorizationHeaderSchema.safeParse(header.split(' ', 2));
16
+ const parsed = exports.authorizationHeaderSchema.safeParse(header.split(' '));
17
17
  if (!parsed.success) {
18
18
  throw new invalid_request_error_js_1.InvalidRequestError('Invalid authorization header');
19
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"authorization-header.js","sourceRoot":"","sources":["../../../src/lib/util/authorization-header.ts"],"names":[],"mappings":";;;AAAA,sDAA8E;AAC9E,6BAAuB;AAEvB,oFAA2E;AAC3E,sFAA6E;AAEhE,QAAA,yBAAyB,GAAG,OAAC,CAAC,KAAK,CAAC;IAC/C,kCAAoB;IACpB,+BAAiB;CAClB,CAAC,CAAA;AAEK,MAAM,wBAAwB,GAAG,CAAC,MAAe,EAAE,EAAE;IAC1D,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;QACnB,MAAM,IAAI,gDAAoB,CAC5B,iBAAiB,EACjB,+BAA+B,EAC/B,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CACzB,CAAA;IACH,CAAC;IAED,MAAM,MAAM,GAAG,iCAAyB,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAA;IACxE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,MAAM,IAAI,8CAAmB,CAAC,8BAA8B,CAAC,CAAA;IAC/D,CAAC;IACD,OAAO,MAAM,CAAC,IAAI,CAAA;AACpB,CAAC,CAAA;AAdY,QAAA,wBAAwB,4BAcpC"}
1
+ {"version":3,"file":"authorization-header.js","sourceRoot":"","sources":["../../../src/lib/util/authorization-header.ts"],"names":[],"mappings":";;;AAAA,sDAA8E;AAC9E,6BAAuB;AAEvB,oFAA2E;AAC3E,sFAA6E;AAEhE,QAAA,yBAAyB,GAAG,OAAC,CAAC,KAAK,CAAC;IAC/C,kCAAoB;IACpB,+BAAiB;CAClB,CAAC,CAAA;AAEK,MAAM,wBAAwB,GAAG,CAAC,MAAe,EAAE,EAAE;IAC1D,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;QACnB,MAAM,IAAI,gDAAoB,CAC5B,iBAAiB,EACjB,+BAA+B,EAC/B,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CACzB,CAAA;IACH,CAAC;IAED,MAAM,MAAM,GAAG,iCAAyB,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IACrE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,MAAM,IAAI,8CAAmB,CAAC,8BAA8B,CAAC,CAAA;IAC/D,CAAC;IACD,OAAO,MAAM,CAAC,IAAI,CAAA;AACpB,CAAC,CAAA;AAdY,QAAA,wBAAwB,4BAcpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"build-metadata.d.ts","sourceRoot":"","sources":["../../src/metadata/build-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAA;AAMvE,MAAM,MAAM,cAAc,GAAG;IAC3B,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC3B,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC3B,qCAAqC,CAAC,EAAE,MAAM,EAAE,CAAA;IAChD,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC/B,CAAA;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,cAAc,CAAC,EAAE,cAAc,GAC9B,gCAAgC,CA8IlC"}
1
+ {"version":3,"file":"build-metadata.d.ts","sourceRoot":"","sources":["../../src/metadata/build-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAA;AAMvE,MAAM,MAAM,cAAc,GAAG;IAC3B,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC3B,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC3B,qCAAqC,CAAC,EAAE,MAAM,EAAE,CAAA;IAChD,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC/B,CAAA;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,cAAc,CAAC,EAAE,cAAc,GAC9B,gCAAgC,CAiJlC"}
@@ -126,6 +126,8 @@ function buildMetadata(issuer, keyset, customMetadata) {
126
126
  authorization_details_types_supported: customMetadata?.authorization_details_types_supported,
127
127
  // https://datatracker.ietf.org/doc/html/draft-ietf-oauth-resource-metadata-05#section-4
128
128
  protected_resources: customMetadata?.protected_resources,
129
+ // https://drafts.aaronpk.com/draft-parecki-oauth-client-id-metadata-document/draft-parecki-oauth-client-id-metadata-document.html
130
+ client_id_metadata_document_supported: true,
129
131
  };
130
132
  }
131
133
  exports.buildMetadata = buildMetadata;
@@ -1 +1 @@
1
- {"version":3,"file":"build-metadata.js","sourceRoot":"","sources":["../../src/metadata/build-metadata.ts"],"names":[],"mappings":";;;AAGA,mDAA4C;AAC5C,iDAAwD;AACxD,qDAAoD;AASpD;;;GAGG;AACH,SAAgB,aAAa,CAC3B,MAAc,EACd,MAAc,EACd,cAA+B;IAE/B,OAAO;QACL,MAAM;QAEN,gBAAgB,EAAE;YAChB,gBAAgB;YAChB,QAAQ;YACR,OAAO;YACP,OAAO;YACP,SAAS;YAET,GAAG,CAAC,cAAc,EAAE,gBAAgB,IAAI,EAAE,CAAC;SAC5C;QACD,gBAAgB,EAAE;YAChB,4BAA4B;YAE5B,KAAK,EAAE,MAAM;YACb,KAAK,EAAE,8BAA8B;YACrC,KAAK;YACL,KAAK;YACL,KAAK;YACL,KAAK;YACL,WAAW;YAEX,YAAY;YAEZ,gBAAgB;YAChB,SAAS;YACT,SAAS;YACT,WAAW,EAAE,+BAA+B;YAC5C,OAAO,EAAE,gEAAgE;YAEzE,GAAG,CAAC,cAAc,EAAE,gBAAgB,IAAI,gCAAoB,CAAC;SAC9D;QACD,uBAAuB,EAAE;YACvB,EAAE;YACF,QAAQ,EAAE,6CAA6C;YACvD,+DAA+D;SAChE;QACD,wBAAwB,EAAE;YACxB,QAAQ;YACR,MAAM;YACN,OAAO;YAEP,SAAS;YACT,MAAM;YACN,qBAAqB;YACrB,eAAe;YACf,YAAY;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;SACjC;QACD,qDAAqD,EAAE,CAAC,GAAG,wBAAY,CAAC;QAExE,sBAAsB,EAAE,IAAI,GAAG,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC,IAAI;QACjE,6CAA6C,EAAE;YAC7C,GAAG,kBAAM,CAAC,sBAAsB;SACjC;QACD,wDAAwD,EAAE,CAAC,GAAG,wBAAY,CAAC;QAE3E,iBAAiB,EAAE,IAAI,GAAG,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC,IAAI;QAC1D,+DAA+D;QAE/D,0DAA0D;QAC1D,qCAAqC,EAAE,IAAI,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,IAAI;QACzE,4DAA4D,EAAE;YAC5D,GAAG,kBAAM,CAAC,sBAAsB;SACjC;QACD,uEAAuE,EAAE;YACvE,GAAG,wBAAY;SAChB;QAED,qCAAqC,EAAE,IAAI;QAE3C,4DAA4D;QAC5D,iCAAiC,EAAE,CAAC,GAAG,wBAAY,CAAC;QAEpD,6DAA6D;QAC7D,qCAAqC,EACnC,cAAc,EAAE,qCAAqC;QAEvD,wFAAwF;QACxF,mBAAmB,EAAE,cAAc,EAAE,mBAAmB;KACzD,CAAA;AACH,CAAC;AAlJD,sCAkJC"}
1
+ {"version":3,"file":"build-metadata.js","sourceRoot":"","sources":["../../src/metadata/build-metadata.ts"],"names":[],"mappings":";;;AAGA,mDAA4C;AAC5C,iDAAwD;AACxD,qDAAoD;AASpD;;;GAGG;AACH,SAAgB,aAAa,CAC3B,MAAc,EACd,MAAc,EACd,cAA+B;IAE/B,OAAO;QACL,MAAM;QAEN,gBAAgB,EAAE;YAChB,gBAAgB;YAChB,QAAQ;YACR,OAAO;YACP,OAAO;YACP,SAAS;YAET,GAAG,CAAC,cAAc,EAAE,gBAAgB,IAAI,EAAE,CAAC;SAC5C;QACD,gBAAgB,EAAE;YAChB,4BAA4B;YAE5B,KAAK,EAAE,MAAM;YACb,KAAK,EAAE,8BAA8B;YACrC,KAAK;YACL,KA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alidRedirectUriError } from './errors/invalid-redirect-uri-error.js'
14
14
  export { InvalidRequestError } from './errors/invalid-request-error.js';
15
15
  export { InvalidTokenError } from './errors/invalid-token-error.js';
16
16
  export { LoginRequiredError } from './errors/login-required-error.js';
17
+ export { SecondAuthenticationFactorRequiredError } from './errors/second-authentication-factor-required-error.js';
17
18
  export { UnauthorizedClientError } from './errors/unauthorized-client-error.js';
18
19
  export { UseDpopNonceError } from './errors/use-dpop-nonce-error.js';
19
20
  export { WWWAuthenticateError } from './errors/www-authenticate-error.js';
@@ -1 +1 @@
1
- {"version":3,"file":"oauth-errors.d.ts","sourceRoot":"","sources":["../src/oauth-errors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAEpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACnE,OAAO,EAAE,6BAA6B,EAAE,MAAM,8CAA8C,CAAA;AAC5F,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAA;AACzE,OAAO,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAA;AAClG,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAA;AAC1E,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAA;AACtF,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAA;AACvF,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAA;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAA;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAA;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACnE,OAAO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AAA;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAA"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WWWAuthenticateError = exports.UseDpopNonceError = exports.UnauthorizedClientError = exports.LoginRequiredError = exports.InvalidTokenError = exports.InvalidRequestError = exports.InvalidRedirectUriError = exports.InvalidParametersError = exports.InvalidGrantError = exports.InvalidDpopProofError = exports.InvalidDpopKeyBindingError = exports.InvalidClientMetadataError = exports.InvalidClientIdError = exports.InvalidClientError = exports.InvalidAuthorizationDetailsError = exports.ConsentRequiredError = exports.AccountSelectionRequiredError = exports.AccessDeniedError = exports.OAuthError = void 0;
3
+ exports.WWWAuthenticateError = exports.UseDpopNonceError = exports.UnauthorizedClientError = exports.SecondAuthenticationFactorRequiredError = exports.LoginRequiredError = exports.InvalidTokenError = exports.InvalidRequestError = exports.InvalidRedirectUriError = exports.InvalidParametersError = exports.InvalidGrantError = exports.InvalidDpopProofError = exports.InvalidDpopKeyBindingError = exports.InvalidClientMetadataError = exports.InvalidClientIdError = exports.InvalidClientError = exports.InvalidAuthorizationDetailsError = exports.ConsentRequiredError = exports.AccountSelectionRequiredError = exports.AccessDeniedError = exports.OAuthError = void 0;
4
4
  // Root Error class
5
5
  var oauth_error_js_1 = require("./errors/oauth-error.js");
6
6
  Object.defineProperty(exports, "OAuthError", { enumerable: true, get: function () { return oauth_error_js_1.OAuthError; } });
@@ -34,6 +34,8 @@ var invalid_token_error_js_1 = require("./errors/invalid-token-error.js");
34
34
  Object.defineProperty(exports, "InvalidTokenError", { enumerable: true, get: function () { return invalid_token_error_js_1.InvalidTokenError; } });
35
35
  var login_required_error_js_1 = require("./errors/login-required-error.js");
36
36
  Object.defineProperty(exports, "LoginRequiredError", { enumerable: true, get: function () { return login_required_error_js_1.LoginRequiredError; } });
37
+ var second_authentication_factor_required_error_js_1 = require("./errors/second-authentication-factor-required-error.js");
38
+ Object.defineProperty(exports, "SecondAuthenticationFactorRequiredError", { enumerable: true, get: function () { return second_authentication_factor_required_error_js_1.SecondAuthenticationFactorRequiredError; } });
37
39
  var unauthorized_client_error_js_1 = require("./errors/unauthorized-client-error.js");
38
40
  Object.defineProperty(exports, "UnauthorizedClientError", { enumerable: true, get: function () { return unauthorized_client_error_js_1.UnauthorizedClientError; } });
39
41
  var use_dpop_nonce_error_js_1 = require("./errors/use-dpop-nonce-error.js");
@@ -1 +1 @@
1
- {"version":3,"file":"oauth-errors.js","sourceRoot":"","sources":["../src/oauth-errors.ts"],"names":[],"mappings":";;;AAAA,mBAAmB;AACnB,0DAAoD;AAA3C,4GAAA,UAAU,OAAA;AAEnB,0EAAmE;AAA1D,2HAAA,iBAAiB,OAAA;AAC1B,oGAA4F;AAAnF,oJAAA,6BAA6B,OAAA;AACtC,gFAAyE;AAAhE,iIAAA,oBAAoB,OAAA;AAC7B,0GAAkG;AAAzF,0JAAA,gCAAgC,OAAA;AACzC,4EAAqE;AAA5D,6HAAA,kBAAkB,OAAA;AAC3B,kFAA0E;AAAjE,kIAAA,oBAAoB,OAAA;AAC7B,8FAAsF;AAA7E,8IAAA,0BAA0B,OAAA;AACnC,gGAAuF;AAA9E,+IAAA,0BAA0B,OAAA;AACnC,oFAA4E;AAAnE,oIAAA,qBAAqB,OAAA;AAC9B,0EAAmE;AAA1D,2HAAA,iBAAiB,OAAA;AAC1B,oFAA6E;AAApE,qIAAA,sBAAsB,OAAA;AAC/B,wFAAgF;AAAvE,wIAAA,uBAAuB,OAAA;AAChC,8EAAuE;AAA9D,+HAAA,mBAAmB,OAAA;AAC5B,0EAAmE;AAA1D,2HAAA,iBAAiB,OAAA;AAC1B,4EAAqE;AAA5D,6HAAA,kBAAkB,OAAA;AAC3B,sFAA+E;AAAtE,uIAAA,uBAAuB,OAAA;AAChC,4EAAoE;AAA3D,4HAAA,iBAAiB,OAAA;AAC1B,gFAAyE;AAAhE,iIAAA,oBAAoB,OAAA"}
1
+ {"version":3,"file":"oauth-errors.js","sourceRoot":"","sources":["../src/oauth-errors.ts"],"names":[],"mappings":";;;AAAA,mBAAmB;AACnB,0DAAoD;AAA3C,4GAAA,UAAU,OAAA;AAEnB,0EAAmE;AAA1D,2HAAA,iBAAiB,OAAA;AAC1B,oGAA4F;AAAnF,oJAAA,6BAA6B,OAAA;AACtC,gFAAyE;AAAhE,iIAAA,oBAAoB,OAAA;AAC7B,0GAAkG;AAAzF,0JAAA,gCAAgC,OAAA;AACzC,4EAAqE;AAA5D,6HAAA,kBAAkB,OAAA;AAC3B,kFAA0E;AAAjE,kIAAA,oBAAoB,OAAA;AAC7B,8FAAsF;AAA7E,8IAAA,0BAA0B,OAAA;AACnC,gGAAuF;AAA9E,+IAAA,0BAA0B,OAAA;AACnC,oFAA4E;AAAnE,oIAAA,qBAAqB,OAAA;AAC9B,0EAAmE;AAA1D,2HAAA,iBAAiB,OAAA;AAC1B,oFAA6E;AAApE,qIAAA,sBAAsB,OAAA;AAC/B,wFAAgF;AAAvE,wIAAA,uBAAuB,OAAA;AAChC,8EAAuE;AAA9D,+HAAA,mBAAmB,OAAA;AAC5B,0EAAmE;AAA1D,2HAAA,iBAAiB,OAAA;AAC1B,4EAAqE;AAA5D,6HAAA,kBAAkB,OAAA;AAC3B,0HAAiH;AAAxG,yKAAA,uCAAuC,OAAA;AAChD,sFAA+E;AAAtE,uIAAA,uBAAuB,OAAA;AAChC,4EAAoE;AAA3D,4HAAA,iBAAiB,OAAA;AAC1B,gFAAyE;AAAhE,iIAAA,oBAAoB,OAAA"}
@@ -4,7 +4,7 @@ import { Jwks, Keyset, SignedJwt } from '@atproto/jwk';
4
4
  import { AccessToken, OAuthAuthenticationRequestParameters, OAuthAuthorizationServerMetadata, OAuthClientIdentification, OAuthClientMetadata, OAuthEndpointName, OAuthTokenResponse, OAuthTokenType } from '@atproto/oauth-types';
5
5
  import { Redis, type RedisOptions } from 'ioredis';
6
6
  import { AccountManager } from './account/account-manager.js';
7
- import { AccountInfo, AccountStore, DeviceAccountInfo, LoginCredentials } from './account/account-store.js';
7
+ import { AccountInfo, AccountStore, DeviceAccountInfo, SignInCredentials } from './account/account-store.js';
8
8
  import { Account } from './account/account.js';
9
9
  import { ClientAuth } from './client/client-auth.js';
10
10
  import { ClientId } from './client/client-id.js';
@@ -19,8 +19,8 @@ import { CustomMetadata } from './metadata/build-metadata.js';
19
19
  import { OAuthHooks } from './oauth-hooks.js';
20
20
  import { OAuthVerifier, OAuthVerifierOptions } from './oauth-verifier.js';
21
21
  import { Userinfo } from './oidc/userinfo.js';
22
+ import { AuthorizationResultAuthorize } from './output/build-authorize-data.js';
22
23
  import { Customization } from './output/customization.js';
23
- import { AuthorizationResultAuthorize } from './output/send-authorize-page.js';
24
24
  import { AuthorizationResultRedirect } from './output/send-authorize-redirect.js';
25
25
  import { ReplayStore } from './replay/replay-store.js';
26
26
  import { RequestManager } from './request/request-manager.js';
@@ -118,7 +118,104 @@ export declare class OAuthProvider extends OAuthVerifier {
118
118
  readonly tokenManager: TokenManager;
119
119
  constructor({ metadata, customization, authenticationMaxAge, tokenMaxAge, safeFetch, redis, store, // compound store implementation
120
120
  accountStore, deviceStore, tokenStore, clientStore, replayStore, requestStore, clientJwksCache, clientMetadataCache, loopbackMetadata, ...rest }: OAuthProviderOptions);
121
- get jwks(): Jwks;
121
+ get jwks(): {
122
+ readonly keys: readonly ({
123
+ readonly kty: "RSA";
124
+ readonly n: string;
125
+ readonly e: string;
126
+ readonly alg?: "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | undefined;
127
+ readonly kid?: string | undefined;
128
+ readonly ext?: boolean | undefined;
129
+ readonly use?: "sig" | "enc" | undefined;
130
+ readonly key_ops?: readonly ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
131
+ readonly x5c?: readonly string[] | undefined;
132
+ readonly x5t?: string | undefined;
133
+ readonly 'x5t#S256'?: string | undefined;
134
+ readonly x5u?: string | undefined;
135
+ readonly d?: string | undefined;
136
+ readonly p?: string | undefined;
137
+ readonly q?: string | undefined;
138
+ readonly dp?: string | undefined;
139
+ readonly dq?: string | undefined;
140
+ readonly qi?: string | undefined;
141
+ readonly oth?: readonly [{
142
+ readonly d?: string | undefined;
143
+ readonly r?: string | undefined;
144
+ readonly t?: string | undefined;
145
+ }, ...{
146
+ readonly d?: string | undefined;
147
+ readonly r?: string | undefined;
148
+ readonly t?: string | undefined;
149
+ }[]] | undefined;
150
+ } | {
151
+ readonly kty: "EC";
152
+ readonly crv: "P-256" | "P-384" | "P-521";
153
+ readonly x: string;
154
+ readonly y: string;
155
+ readonly alg?: "ES256" | "ES384" | "ES512" | undefined;
156
+ readonly kid?: string | undefined;
157
+ readonly ext?: boolean | undefined;
158
+ readonly use?: "sig" | "enc" | undefined;
159
+ readonly key_ops?: readonly ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
160
+ readonly x5c?: readonly string[] | undefined;
161
+ readonly x5t?: string | undefined;
162
+ readonly 'x5t#S256'?: string | undefined;
163
+ readonly x5u?: string | undefined;
164
+ readonly d?: string | undefined;
165
+ } | {
166
+ readonly kty: "EC";
167
+ readonly crv: "secp256k1";
168
+ readonly x: string;
169
+ readonly y: string;
170
+ readonly alg?: "ES256K" | undefined;
171
+ readonly kid?: string | undefined;
172
+ readonly ext?: boolean | undefined;
173
+ readonly use?: "sig" | "enc" | undefined;
174
+ readonly key_ops?: readonly ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
175
+ readonly x5c?: readonly string[] | undefined;
176
+ readonly x5t?: string | undefined;
177
+ readonly 'x5t#S256'?: string | undefined;
178
+ readonly x5u?: string | undefined;
179
+ readonly d?: string | undefined;
180
+ } | {
181
+ readonly kty: "OKP";
182
+ readonly crv: "Ed25519" | "Ed448";
183
+ readonly x: string;
184
+ readonly alg?: "EdDSA" | undefined;
185
+ readonly kid?: string | undefined;
186
+ readonly ext?: boolean | undefined;
187
+ readonly use?: "sig" | "enc" | undefined;
188
+ readonly key_ops?: readonly ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
189
+ readonly x5c?: readonly string[] | undefined;
190
+ readonly x5t?: string | undefined;
191
+ readonly 'x5t#S256'?: string | undefined;
192
+ readonly x5u?: string | undefined;
193
+ readonly d?: string | undefined;
194
+ } | {
195
+ readonly kty: "oct";
196
+ readonly k: string;
197
+ readonly alg?: "HS256" | "HS384" | "HS512" | undefined;
198
+ readonly kid?: string | undefined;
199
+ readonly ext?: boolean | undefined;
200
+ readonly use?: "sig" | "enc" | undefined;
201
+ readonly key_ops?: readonly ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
202
+ readonly x5c?: readonly string[] | undefined;
203
+ readonly x5t?: string | undefined;
204
+ readonly 'x5t#S256'?: string | undefined;
205
+ readonly x5u?: string | undefined;
206
+ } | {
207
+ readonly kty: string;
208
+ readonly alg?: string | undefined;
209
+ readonly kid?: string | undefined;
210
+ readonly ext?: boolean | undefined;
211
+ readonly use?: "sig" | "enc" | undefined;
212
+ readonly key_ops?: readonly ("sign" | "verify" | "encrypt" | "decrypt" | "wrapKey" | "unwrapKey" | "deriveKey" | "deriveBits")[] | undefined;
213
+ readonly x5c?: readonly string[] | undefined;
214
+ readonly x5t?: string | undefined;
215
+ readonly 'x5t#S256'?: string | undefined;
216
+ readonly x5u?: string | undefined;
217
+ })[];
218
+ };
122
219
  protected loginRequired(client: Client, parameters: OAuthAuthenticationRequestParameters, info: DeviceAccountInfo): boolean;
123
220
  protected authenticateClient(client: Client, endpoint: OAuthEndpointName, credentials: OAuthClientIdentification): Promise<ClientAuth>;
124
221
  protected decodeJAR(client: Client, input: AuthorizationRequestJar): Promise<{
@@ -149,7 +246,7 @@ export declare class OAuthProvider extends OAuthVerifier {
149
246
  consentRequired: boolean;
150
247
  matchesHint: boolean;
151
248
  }[]>;
152
- protected signIn(deviceId: DeviceId, credentials: LoginCredentials): Promise<AccountInfo>;
249
+ protected signIn(deviceId: DeviceId, credentials: SignInCredentials): Promise<AccountInfo>;
153
250
  protected acceptRequest(deviceId: DeviceId, uri: RequestUri, clientId: ClientId, sub: string): Promise<AuthorizationResultRedirect>;
154
251
  protected rejectRequest(deviceId: DeviceId, uri: RequestUri, clientId: ClientId): Promise<AuthorizationResultRedirect>;
155
252
  protected token(input: TokenRequest, dpopJkt: null | string): Promise<OAuthTokenResponse>;