@atproto/oauth-provider 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/account/account.d.ts +6 -2
  3. package/dist/account/account.d.ts.map +1 -1
  4. package/dist/assets/app/bundle-manifest.json +3 -3
  5. package/dist/assets/app/main.css +1 -1
  6. package/dist/assets/app/main.js +3 -3
  7. package/dist/assets/app/main.js.map +1 -1
  8. package/dist/assets/assets-middleware.d.ts +2 -1
  9. package/dist/assets/assets-middleware.d.ts.map +1 -1
  10. package/dist/assets/assets-middleware.js +7 -0
  11. package/dist/assets/assets-middleware.js.map +1 -1
  12. package/dist/client/client-manager.d.ts +4 -3
  13. package/dist/client/client-manager.d.ts.map +1 -1
  14. package/dist/client/client-manager.js +91 -77
  15. package/dist/client/client-manager.js.map +1 -1
  16. package/dist/client/client.d.ts +2 -3
  17. package/dist/client/client.d.ts.map +1 -1
  18. package/dist/client/client.js +6 -12
  19. package/dist/client/client.js.map +1 -1
  20. package/dist/constants.d.ts +2 -0
  21. package/dist/constants.d.ts.map +1 -1
  22. package/dist/constants.js +3 -1
  23. package/dist/constants.js.map +1 -1
  24. package/dist/device/device-manager.d.ts +1 -1
  25. package/dist/device/device-manager.d.ts.map +1 -1
  26. package/dist/device/device-manager.js +2 -2
  27. package/dist/device/device-manager.js.map +1 -1
  28. package/dist/dpop/dpop-manager.d.ts +0 -1
  29. package/dist/dpop/dpop-manager.d.ts.map +1 -1
  30. package/dist/dpop/dpop-manager.js +1 -4
  31. package/dist/dpop/dpop-manager.js.map +1 -1
  32. package/dist/errors/invalid-authorization-details-error.d.ts +4 -3
  33. package/dist/errors/invalid-authorization-details-error.d.ts.map +1 -1
  34. package/dist/errors/invalid-authorization-details-error.js +4 -4
  35. package/dist/errors/invalid-authorization-details-error.js.map +1 -1
  36. package/dist/lib/http/parser.d.ts +13 -7
  37. package/dist/lib/http/parser.d.ts.map +1 -1
  38. package/dist/lib/http/parser.js +29 -9
  39. package/dist/lib/http/parser.js.map +1 -1
  40. package/dist/lib/http/request.d.ts +8 -5
  41. package/dist/lib/http/request.d.ts.map +1 -1
  42. package/dist/lib/http/request.js +24 -12
  43. package/dist/lib/http/request.js.map +1 -1
  44. package/dist/lib/http/stream.d.ts.map +1 -1
  45. package/dist/lib/http/stream.js +3 -2
  46. package/dist/lib/http/stream.js.map +1 -1
  47. package/dist/metadata/build-metadata.d.ts +0 -1
  48. package/dist/metadata/build-metadata.d.ts.map +1 -1
  49. package/dist/metadata/build-metadata.js +9 -49
  50. package/dist/metadata/build-metadata.js.map +1 -1
  51. package/dist/oauth-hooks.d.ts +3 -10
  52. package/dist/oauth-hooks.d.ts.map +1 -1
  53. package/dist/oauth-provider.d.ts +10 -15
  54. package/dist/oauth-provider.d.ts.map +1 -1
  55. package/dist/oauth-provider.js +176 -114
  56. package/dist/oauth-provider.js.map +1 -1
  57. package/dist/oauth-verifier.d.ts +1 -2
  58. package/dist/oauth-verifier.d.ts.map +1 -1
  59. package/dist/oauth-verifier.js.map +1 -1
  60. package/dist/output/build-authorize-data.d.ts +6 -0
  61. package/dist/output/build-authorize-data.d.ts.map +1 -1
  62. package/dist/output/build-authorize-data.js +1 -0
  63. package/dist/output/build-authorize-data.js.map +1 -1
  64. package/dist/replay/replay-manager.d.ts +1 -0
  65. package/dist/replay/replay-manager.d.ts.map +1 -1
  66. package/dist/replay/replay-manager.js +3 -0
  67. package/dist/replay/replay-manager.js.map +1 -1
  68. package/dist/replay/replay-store.d.ts +1 -1
  69. package/dist/request/request-info.d.ts +2 -0
  70. package/dist/request/request-info.d.ts.map +1 -1
  71. package/dist/request/request-manager.d.ts +3 -9
  72. package/dist/request/request-manager.d.ts.map +1 -1
  73. package/dist/request/request-manager.js +52 -77
  74. package/dist/request/request-manager.js.map +1 -1
  75. package/dist/request/types.d.ts +10 -10
  76. package/dist/signer/signed-token-payload.d.ts +88 -88
  77. package/dist/signer/signer.d.ts +24 -31
  78. package/dist/signer/signer.d.ts.map +1 -1
  79. package/dist/signer/signer.js +0 -40
  80. package/dist/signer/signer.js.map +1 -1
  81. package/dist/token/token-claims.d.ts +84 -84
  82. package/dist/token/token-manager.d.ts +1 -2
  83. package/dist/token/token-manager.d.ts.map +1 -1
  84. package/dist/token/token-manager.js +10 -37
  85. package/dist/token/token-manager.js.map +1 -1
  86. package/dist/token/types.d.ts +10 -10
  87. package/package.json +3 -3
  88. package/src/account/account.ts +11 -7
  89. package/src/assets/app/backend-data.ts +9 -2
  90. package/src/assets/app/components/accept-form.tsx +65 -51
  91. package/src/assets/app/components/client-name.tsx +24 -16
  92. package/src/assets/app/components/url-viewer.tsx +3 -3
  93. package/src/assets/app/views/accept-view.tsx +7 -4
  94. package/src/assets/app/views/authorize-view.tsx +2 -1
  95. package/src/assets/assets-middleware.ts +14 -2
  96. package/src/client/client-manager.ts +124 -120
  97. package/src/client/client.ts +5 -17
  98. package/src/constants.ts +3 -0
  99. package/src/device/device-manager.ts +7 -1
  100. package/src/dpop/dpop-manager.ts +1 -6
  101. package/src/errors/invalid-authorization-details-error.ts +9 -4
  102. package/src/lib/http/parser.ts +37 -13
  103. package/src/lib/http/request.ts +61 -15
  104. package/src/lib/http/stream.ts +5 -2
  105. package/src/metadata/build-metadata.ts +9 -56
  106. package/src/oauth-hooks.ts +3 -13
  107. package/src/oauth-provider.ts +187 -177
  108. package/src/oauth-verifier.ts +1 -2
  109. package/src/output/build-authorize-data.ts +8 -0
  110. package/src/replay/replay-manager.ts +9 -0
  111. package/src/replay/replay-store.ts +1 -1
  112. package/src/request/request-info.ts +2 -0
  113. package/src/request/request-manager.ts +81 -107
  114. package/src/signer/signer.ts +0 -63
  115. package/src/token/token-manager.ts +8 -41
  116. package/dist/oidc/claims.d.ts +0 -16
  117. package/dist/oidc/claims.d.ts.map +0 -1
  118. package/dist/oidc/claims.js +0 -29
  119. package/dist/oidc/claims.js.map +0 -1
  120. package/dist/oidc/userinfo.d.ts +0 -7
  121. package/dist/oidc/userinfo.d.ts.map +0 -1
  122. package/dist/oidc/userinfo.js +0 -3
  123. package/dist/oidc/userinfo.js.map +0 -1
  124. package/dist/parameters/claims-requested.d.ts +0 -3
  125. package/dist/parameters/claims-requested.d.ts.map +0 -1
  126. package/dist/parameters/claims-requested.js +0 -77
  127. package/dist/parameters/claims-requested.js.map +0 -1
  128. package/dist/parameters/oidc-payload.d.ts +0 -31
  129. package/dist/parameters/oidc-payload.d.ts.map +0 -1
  130. package/dist/parameters/oidc-payload.js +0 -25
  131. package/dist/parameters/oidc-payload.js.map +0 -1
  132. package/src/assets/app/components/client-identifier.tsx +0 -31
  133. package/src/oidc/claims.ts +0 -35
  134. package/src/oidc/userinfo.ts +0 -11
  135. package/src/parameters/claims-requested.ts +0 -106
  136. package/src/parameters/oidc-payload.ts +0 -28
@@ -1 +1 @@
1
- {"version":3,"file":"oauth-provider.js","sourceRoot":"","sources":["../src/oauth-provider.ts"],"names":[],"mappings":";;;AAAA,yDAAwD;AAExD,2EAAqE;AACrE,sCAAuE;AA+HrE,uFA/Ha,YAAM,OA+Hb;AA9HR,sDAY6B;AAE7B,6BAAuB;AAEvB,8EAAqE;AACrE,qEAA6D;AAC7D,iEAOmC;AAEnC,wEAAyE;AACzE,4DAAuE;AACvE,wDAAgE;AAChE,kEAGmC;AACnC,8DAAqE;AAErE,iDAAsE;AAEtE,kEAA0D;AAC1D,8DAAqE;AACrE,4EAAmE;AACnE,sGAA4F;AAC5F,kFAAyE;AACzE,8EAAqE;AACrE,4EAAmE;AACnE,sFAA6E;AAC7E,gFAAuE;AACvE,8EAAqE;AACrE,4DAAoD;AACpD,wFAA+E;AAC/E,kFAAyE;AACzE,kDAgB4B;AAC5B,gDAAuE;AAEvE,oEAA4E;AAE5E,2DAAyE;AAGzE,4EAGwC;AAExC,kEAA0D;AAC1D,oFAG4C;AAC5C,kEAA0D;AAC1D,8DAAqE;AAErE,qEAA6D;AAC7D,+EAAsE;AACtE,6EAAoE;AACpE,iEAAyE;AACzE,6DAAuE;AACvE,iDAM2B;A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C;QACb,IAAI,GAAG,YAAY,cAAQ,EAAE,CAAC;YAC5B,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;YAC3B,IAAI,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC;gBACvB,2BAA2B;gBAC3B,MAAM,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,IAAI,CAAA;gBAClC,MAAM,IAAI,8CAAmB,CAC3B,iBAAiB,IAAI,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,iBAAiB,KAAK,CAAC,OAAO,EAAE,EAC1E,GAAG,CACJ,CAAA;YACH,CAAC;QACH,CAAC;QAED,MAAM,IAAI,8CAAmB,CAAC,wBAAwB,EAAE,GAAG,CAAC,CAAA;IAC9D,CAAC;AACH,CAAC"}
@@ -17,8 +17,7 @@ export type OAuthVerifierOptions = Override<DpopManagerOptions, {
17
17
  */
18
18
  issuer: URL | string;
19
19
  /**
20
- * The keyset used to sign tokens. Note that OIDC requires that at least one
21
- * RS256 key is present in the keyset. ATPROTO requires ES256.
20
+ * The keyset used to sign access tokens.
22
21
  */
23
22
  keyset: Keyset | Iterable<Key | undefined | null | false>;
24
23
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"oauth-verifier.d.ts","sourceRoot":"","sources":["../src/oauth-verifier.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,EAAe,MAAM,cAAc,CAAA;AACvD,OAAO,EACL,WAAW,EACX,cAAc,EAEf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAElD,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AACrE,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAMhD,OAAO,EAAE,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AM,OAAO,GAAG,MAAM,IAAI,CAAC,cAAc,CACvC,OAAO,CAAC,IAAI,EACZ,MAAM,EACN,GAAG,EACH,KAAK,CACN,CAAA;YAED,IAAI,SAAS,KAAK,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;gBACrC,MAAM,IAAI,mDAAqB,CAAC,qBAAqB,CAAC,CAAA;YACxD,CAAC;YAED,OAAO,MAAM,IAAI,CAAC,iBAAiB,CACjC,SAAS,EACT,KAAK,EACL,OAAO,EACP,aAAa,CACd,CAAA;QACH,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,GAAG,YAAY,2CAAiB;gBAAE,MAAM,GAAG,CAAC,sBAAsB,EAAE,CAAA;YACxE,IAAI,GAAG,YAAY,gDAAoB;gBAAE,MAAM,GAAG,CAAA;YAElD,MAAM,0CAAiB,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC,CAAA;QAC9C,CAAC;IACH,CAAC;CACF;AA3ID,sCA2IC"}
@@ -3,12 +3,17 @@ import { DeviceAccountInfo } from '../account/account-store.js';
3
3
  import { Account } from '../account/account.js';
4
4
  import { Client } from '../client/client.js';
5
5
  import { RequestUri } from '../request/request-uri.js';
6
+ export type ScopeDetail = {
7
+ scope: string;
8
+ description?: string;
9
+ };
6
10
  export type AuthorizationResultAuthorize = {
7
11
  issuer: string;
8
12
  client: Client;
9
13
  parameters: OAuthAuthenticationRequestParameters;
10
14
  authorize: {
11
15
  uri: RequestUri;
16
+ scopeDetails?: ScopeDetail[];
12
17
  sessions: readonly {
13
18
  account: Account;
14
19
  info: DeviceAccountInfo;
@@ -32,6 +37,7 @@ export type AuthorizeData = {
32
37
  requestUri: string;
33
38
  csrfCookie: string;
34
39
  loginHint?: string;
40
+ scopeDetails?: ScopeDetail[];
35
41
  newSessionsRequireConsent: boolean;
36
42
  sessions: Session[];
37
43
  };
@@ -1 +1 @@
1
- {"version":3,"file":"build-authorize-data.d.ts","sourceRoot":"","sources":["../../src/output/build-authorize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CAAA;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;IAC5B,yBAAyB,EAAE,OAAO,CAAA;IAClC,QAAQ,EAAE,OAAO,EAAE,CAAA;CACpB,CAAA;AAED,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,4BAA4B,GACjC,aAAa,CAmBf"}
@@ -10,6 +10,7 @@ function buildAuthorizeData(data) {
10
10
  csrfCookie: `csrf-${data.authorize.uri}`,
11
11
  loginHint: data.parameters.login_hint,
12
12
  newSessionsRequireConsent: data.parameters.prompt === 'consent',
13
+ scopeDetails: data.authorize.scopeDetails,
13
14
  sessions: data.authorize.sessions.map((session) => ({
14
15
  account: session.account,
15
16
  selected: session.selected,
@@ -1 +1 @@
1
- {"version":3,"file":"build-authorize-data.js","sourceRoot":"","sources":["../../src/output/build-authorize-data.ts"],"names":[],"mappings":";;;AAkDA,SAAgB,kBAAkB,CAChC,IAAkC;IAElC,OAAO;QACL,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE;QACxB,cAAc,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ;QACpC,aAAa,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS;QACzC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG;QAC9B,UAAU,EAAE,QAAQ,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE;QACxC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU;QACrC,yBAAyB,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,SAAS;QAC/D,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,CACnC,CAAC,OAAO,EAAW,EAAE,CAAC,CAAC;YACrB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,aAAa,EAAE,OAAO,CAAC,aAAa;YACpC,eAAe,EAAE,OAAO,CAAC,eAAe;SACzC,CAAC,CACH;KACF,CAAA;AACH,CAAC;AApBD,gDAoBC"}
1
+ {"version":3,"file":"build-authorize-data.js","sourceRoot":"","sources":["../../src/output/build-authorize-data.ts"],"names":[],"mappings":";;;AAyDA,SAAgB,kBAAkB,CAChC,IAAkC;IAElC,OAAO;QACL,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE;QACxB,cAAc,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ;QACpC,aAAa,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS;QACzC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG;QAC9B,UAAU,EAAE,QAAQ,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE;QACxC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU;QACrC,yBAAyB,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,SAAS;QAC/D,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY;QACzC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,CACnC,CAAC,OAAO,EAAW,EAAE,CAAC,CAAC;YACrB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,aAAa,EAAE,OAAO,CAAC,aAAa;YACpC,eAAe,EAAE,OAAO,CAAC,eAAe;SACzC,CAAC,CACH;KACF,CAAA;AACH,CAAC;AArBD,gDAqBC"}
@@ -6,5 +6,6 @@ export declare class ReplayManager {
6
6
  uniqueAuth(jti: string, clientId: ClientId): Promise<boolean>;
7
7
  uniqueJar(jti: string, clientId: ClientId): Promise<boolean>;
8
8
  uniqueDpop(jti: string, clientId?: ClientId): Promise<boolean>;
9
+ uniqueCodeChallenge(challenge: string): Promise<boolean>;
9
10
  }
10
11
  //# sourceMappingURL=replay-manager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"replay-manager.d.ts","sourceRoot":"","sources":["../../src/replay/replay-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAMjD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAK/C,qBAAa,aAAa;IACZ,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW;gBAAxB,WAAW,EAAE,WAAW;IAEjD,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC;IAQ7D,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC;IAQ5D,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC;CAOrE"}
1
+ {"version":3,"file":"replay-manager.d.ts","sourceRoot":"","sources":["../../src/replay/replay-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAOjD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAK/C,qBAAa,aAAa;IACZ,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW;gBAAxB,WAAW,EAAE,WAAW;IAEjD,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC;IAQ7D,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC;IAQ5D,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC;IAQ9D,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAO/D"}
@@ -18,6 +18,9 @@ class ReplayManager {
18
18
  async uniqueDpop(jti, clientId) {
19
19
  return this.replayStore.unique(clientId ? `DPoP@${clientId}` : `DPoP`, jti, asTimeFrame(constants_js_1.DPOP_NONCE_MAX_AGE));
20
20
  }
21
+ async uniqueCodeChallenge(challenge) {
22
+ return this.replayStore.unique('CodeChallenge', challenge, asTimeFrame(constants_js_1.CODE_CHALLENGE_REPLAY_TIMEFRAME));
23
+ }
21
24
  }
22
25
  exports.ReplayManager = ReplayManager;
23
26
  //# sourceMappingURL=replay-manager.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"replay-manager.js","sourceRoot":"","sources":["../../src/replay/replay-manager.ts"],"names":[],"mappings":";;;AACA,kDAIwB;AAGxB,MAAM,cAAc,GAAG,GAAG,CAAA,CAAC,8BAA8B;AACzD,MAAM,WAAW,GAAG,CAAC,SAAiB,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,cAAc,CAAC,CAAA;AAEhF,MAAa,aAAa;IACO;IAA/B,YAA+B,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IAAG,CAAC;IAE3D,KAAK,CAAC,UAAU,CAAC,GAAW,EAAE,QAAkB;QAC9C,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAC5B,QAAQ,QAAQ,EAAE,EAClB,GAAG,EACH,WAAW,CAAC,uCAAwB,CAAC,CACtC,CAAA;IACH,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,GAAW,EAAE,QAAkB;QAC7C,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAC5B,OAAO,QAAQ,EAAE,EACjB,GAAG,EACH,WAAW,CAAC,0BAAW,CAAC,CACzB,CAAA;IACH,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,GAAW,EAAE,QAAmB;QAC/C,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAC5B,QAAQ,CAAC,CAAC,CAAC,QAAQ,QAAQ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F;AAlCD,sCAkCC"}
@@ -6,7 +6,7 @@ export interface ReplayStore {
6
6
  * strictly necessary for security purposes, the namespace should be used to
7
7
  * mitigate denial of service attacks from one client to the other.
8
8
  *
9
- * @param timeFrame expressed in milliseconds. Will never exceed 24 hours.
9
+ * @param timeFrame expressed in milliseconds.
10
10
  */
11
11
  unique(namespace: string, nonce: string, timeFrame: number): Awaitable<boolean>;
12
12
  }
@@ -1,4 +1,5 @@
1
1
  import { OAuthAuthenticationRequestParameters } from '@atproto/oauth-types';
2
+ import { ClientId } from '../client/client-id.js';
2
3
  import { ClientAuth } from '../client/client-auth.js';
3
4
  import { RequestId } from './request-id.js';
4
5
  import { RequestUri } from './request-uri.js';
@@ -7,6 +8,7 @@ export type RequestInfo = {
7
8
  uri: RequestUri;
8
9
  parameters: Readonly<OAuthAuthenticationRequestParameters>;
9
10
  expiresAt: Date;
11
+ clientId: ClientId;
10
12
  clientAuth: ClientAuth;
11
13
  };
12
14
  //# sourceMappingURL=request-info.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"request-info.d.ts","sourceRoot":"","sources":["../../src/request/request-info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,sBAAsB,CAAA;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7C,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,SAAS,CAAA;IACb,GAAG,EAAE,UAAU,CAAA;IACf,UAAU,EAAE,QAAQ,CAAC,oCAAoC,CAAC,CAAA;IAC1D,SAAS,EAAE,IAAI,CAAA;IACf,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA"}
1
+ {"version":3,"file":"request-info.d.ts","sourceRoot":"","sources":["../../src/request/request-info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,sBAAsB,CAAA;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7C,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,SAAS,CAAA;IACb,GAAG,EAAE,UAAU,CAAA;IACf,UAAU,EAAE,QAAQ,CAAC,oCAAoC,CAAC,CAAA;IAC1D,SAAS,EAAE,IAAI,CAAA;IACf,QAAQ,EAAE,QAAQ,CAAA;IAClB,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA"}
@@ -1,5 +1,4 @@
1
1
  import { OAuthAuthenticationRequestParameters, OAuthAuthorizationServerMetadata } from '@atproto/oauth-types';
2
- import { DeviceAccountInfo } from '../account/account-store.js';
3
2
  import { Account } from '../account/account.js';
4
3
  import { ClientAuth } from '../client/client-auth.js';
5
4
  import { ClientId } from '../client/client-id.js';
@@ -17,19 +16,14 @@ export declare class RequestManager {
17
16
  protected readonly signer: Signer;
18
17
  protected readonly metadata: OAuthAuthorizationServerMetadata;
19
18
  protected readonly hooks: OAuthHooks;
20
- protected readonly pkceRequired: boolean;
21
19
  protected readonly tokenMaxAge: number;
22
- constructor(store: RequestStore, signer: Signer, metadata: OAuthAuthorizationServerMetadata, hooks: OAuthHooks, pkceRequired?: boolean, tokenMaxAge?: number);
20
+ constructor(store: RequestStore, signer: Signer, metadata: OAuthAuthorizationServerMetadata, hooks: OAuthHooks, tokenMaxAge?: number);
23
21
  protected createTokenExpiry(): Date;
24
22
  createAuthorizationRequest(client: Client, clientAuth: ClientAuth, input: Readonly<OAuthAuthenticationRequestParameters>, deviceId: null | DeviceId, dpopJkt: null | string): Promise<RequestInfo>;
25
23
  protected create(client: Client, clientAuth: ClientAuth, parameters: Readonly<OAuthAuthenticationRequestParameters>, deviceId?: null | DeviceId): Promise<RequestInfo>;
26
- validate(client: Client, clientAuth: ClientAuth, parameters: Readonly<OAuthAuthenticationRequestParameters>, dpopJkt: null | string, pkceRequired?: boolean): Promise<Readonly<OAuthAuthenticationRequestParameters>>;
24
+ validate(client: Client, clientAuth: ClientAuth, parameters: Readonly<OAuthAuthenticationRequestParameters>, dpopJkt: null | string): Promise<Readonly<OAuthAuthenticationRequestParameters>>;
27
25
  get(uri: RequestUri, clientId: ClientId, deviceId: DeviceId): Promise<RequestInfo>;
28
- setAuthorized(client: Client, uri: RequestUri, deviceId: DeviceId, account: Account, info: DeviceAccountInfo): Promise<{
29
- code?: Code;
30
- token?: string;
31
- id_token?: string;
32
- }>;
26
+ setAuthorized(client: Client, uri: RequestUri, deviceId: DeviceId, account: Account): Promise<Code>;
33
27
  /**
34
28
  * @note If this method throws an error, any token previously generated from
35
29
  * the same `code` **must** me revoked.
@@ -1 +1 @@
1
- {"version":3,"file":"request-manager.d.ts","sourceRoot":"","sources":["../../src/request/request-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,oCAAoC,EACpC,gCAAgC,EACjC,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAM5C,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAOjD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE9C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,IAAI,EAAgB,MAAM,WAAW,CAAA;AAC9C,OAAO,EAEL,qBAAqB,EACtB,M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,GACjB,OAAO,CAAC,WAAW,CAAC;IA4DjB,aAAa,CACjB,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,UAAU,EACf,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,IAAI,CAAC;IA+ChB;;;OAGG;IACU,QAAQ,CACnB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,IAAI,GACT,OAAO,CAAC,qBAAqB,CAAC;IA2C3B,MAAM,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;CAI7C"}
@@ -5,11 +5,11 @@ const oauth_types_1 = require("@atproto/oauth-types");
5
5
  const constants_js_1 = require("../constants.js");
6
6
  const access_denied_error_js_1 = require("../errors/access-denied-error.js");
7
7
  const consent_required_error_js_1 = require("../errors/consent-required-error.js");
8
+ const invalid_authorization_details_error_js_1 = require("../errors/invalid-authorization-details-error.js");
8
9
  const invalid_grant_error_js_1 = require("../errors/invalid-grant-error.js");
9
10
  const invalid_parameters_error_js_1 = require("../errors/invalid-parameters-error.js");
10
11
  const invalid_request_error_js_1 = require("../errors/invalid-request-error.js");
11
12
  const redirect_uri_js_1 = require("../lib/util/redirect-uri.js");
12
- const claims_js_1 = require("../oidc/claims.js");
13
13
  const code_js_1 = require("./code.js");
14
14
  const request_data_js_1 = require("./request-data.js");
15
15
  const request_id_js_1 = require("./request-id.js");
@@ -19,14 +19,12 @@ class RequestManager {
19
19
  signer;
20
20
  metadata;
21
21
  hooks;
22
- pkceRequired;
23
22
  tokenMaxAge;
24
- constructor(store, signer, metadata, hooks, pkceRequired = true, tokenMaxAge = constants_js_1.TOKEN_MAX_AGE) {
23
+ constructor(store, signer, metadata, hooks, tokenMaxAge = constants_js_1.TOKEN_MAX_AGE) {
25
24
  this.store = store;
26
25
  this.signer = signer;
27
26
  this.metadata = metadata;
28
27
  this.hooks = hooks;
29
- this.pkceRequired = pkceRequired;
30
28
  this.tokenMaxAge = tokenMaxAge;
31
29
  }
32
30
  createTokenExpiry() {
@@ -49,9 +47,22 @@ class RequestManager {
49
47
  code: null,
50
48
  });
51
49
  const uri = (0, request_uri_js_1.encodeRequestUri)(id);
52
- return { id, uri, expiresAt, parameters, clientAuth };
50
+ return { id, uri, expiresAt, parameters, clientId: client.id, clientAuth };
53
51
  }
54
- async validate(client, clientAuth, parameters, dpopJkt, pkceRequired = this.pkceRequired) {
52
+ async validate(client, clientAuth, parameters, dpopJkt) {
53
+ for (const k of [
54
+ // Known unsupported OIDC parameters
55
+ 'claims',
56
+ 'id_token_hint',
57
+ 'nonce', // note that OIDC "nonce" is redundant with PKCE
58
+ ]) {
59
+ if (parameters[k]) {
60
+ throw new invalid_parameters_error_js_1.InvalidParametersError(parameters, `Unsupported "${k}" parameter`);
61
+ }
62
+ }
63
+ if (parameters.response_type !== 'code') {
64
+ throw new invalid_parameters_error_js_1.InvalidParametersError(parameters, 'Only "code" response type is allowed');
65
+ }
55
66
  // https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1-10#section-1.4.1
56
67
  // > The authorization server MAY fully or partially ignore the scope
57
68
  // > requested by the client, based on the authorization server policy or
@@ -59,36 +70,39 @@ class RequestManager {
59
70
  // > different from the one requested by the client, the authorization
60
71
  // > server MUST include the scope response parameter in the token response
61
72
  // > (Section 3.2.3) to inform the client of the actual scope granted.
62
- const cScopes = client.metadata.scope?.split(' ');
73
+ const cScopes = client.metadata.scope?.split(' ').filter(Boolean);
63
74
  const sScopes = this.metadata.scopes_supported;
64
- const scopes = (parameters.scope || client.metadata.scope)
65
- ?.split(' ')
66
- .filter((scope) => !!scope && (sScopes?.includes(scope) ?? true)) ?? [];
75
+ const scopes = new Set(parameters.scope?.split(' ').filter(Boolean) || cScopes);
76
+ if (scopes.has('openid')) {
77
+ throw new invalid_parameters_error_js_1.InvalidParametersError(parameters, 'OpenID Connect is not supported');
78
+ }
79
+ if (!scopes.has('atproto')) {
80
+ throw new invalid_parameters_error_js_1.InvalidParametersError(parameters, 'The "atproto" scope is required');
81
+ }
67
82
  for (const scope of scopes) {
68
- if (!cScopes?.includes(scope)) {
83
+ // Loopback clients do not define any scope in their metadata
84
+ if (cScopes && !cScopes.includes(scope)) {
69
85
  throw new invalid_parameters_error_js_1.InvalidParametersError(parameters, `Scope "${scope}" is not registered for this client`);
70
86
  }
71
- }
72
- for (const [scope, claims] of Object.entries(claims_js_1.OIDC_SCOPE_CLAIMS)) {
73
- for (const claim of claims) {
74
- if (parameters?.claims?.id_token?.[claim]?.essential === true ||
75
- parameters?.claims?.userinfo?.[claim]?.essential === true) {
76
- if (!scopes?.includes(scope)) {
77
- throw new invalid_parameters_error_js_1.InvalidParametersError(parameters, `Essential ${claim} claim requires "${scope}" scope`);
78
- }
79
- }
87
+ // Currently, the implementation requires all the scopes to be statically
88
+ // defined in the server metadata. In the future, we might add support
89
+ // for dynamic scopes.
90
+ if (!sScopes?.includes(scope)) {
91
+ throw new invalid_parameters_error_js_1.InvalidParametersError(parameters, `Scope "${scope}" is not supported by this server`);
80
92
  }
81
93
  }
82
- parameters = { ...parameters, scope: scopes.join(' ') };
83
- const responseTypes = parameters.response_type.split(' ');
94
+ parameters = { ...parameters, scope: [...scopes].join(' ') || undefined };
84
95
  if (parameters.authorization_details) {
85
96
  const clientAuthDetailsTypes = client.metadata.authorization_details_types;
86
97
  if (!clientAuthDetailsTypes) {
87
- throw new invalid_parameters_error_js_1.InvalidParametersError(parameters, 'Client Metadata does not declare any "authorization_details"');
98
+ throw new invalid_authorization_details_error_js_1.InvalidAuthorizationDetailsError(parameters, 'Client Metadata does not declare any "authorization_details"');
88
99
  }
89
100
  for (const detail of parameters.authorization_details) {
101
+ if (!this.metadata.authorization_details_types_supported?.includes(detail.type)) {
102
+ throw new invalid_authorization_details_error_js_1.InvalidAuthorizationDetailsError(parameters, `Unsupported "authorization_details" type "${detail.type}"`);
103
+ }
90
104
  if (!clientAuthDetailsTypes?.includes(detail.type)) {
91
- throw new invalid_parameters_error_js_1.InvalidParametersError(parameters, `Unsupported "authorization_details" type "${detail.type}"`);
105
+ throw new invalid_authorization_details_error_js_1.InvalidAuthorizationDetailsError(parameters, `Client Metadata does not declare any "authorization_details" of type "${detail.type}"`);
92
106
  }
93
107
  }
94
108
  }
@@ -113,11 +127,9 @@ class RequestManager {
113
127
  if (!client.metadata.response_types.includes(parameters.response_type)) {
114
128
  throw new invalid_parameters_error_js_1.InvalidParametersError(parameters, `Unsupported response_type "${parameters.response_type}"`, 'unsupported_response_type');
115
129
  }
116
- if (pkceRequired && responseTypes.includes('token')) {
117
- throw new invalid_parameters_error_js_1.InvalidParametersError(parameters, `Response type "${parameters.response_type}" is incompatible with PKCE`, 'unsupported_response_type');
118
- }
119
130
  // https://datatracker.ietf.org/doc/html/rfc7636#section-4.4.1
120
- if (pkceRequired && !parameters.code_challenge) {
131
+ // PKCE is mandatory
132
+ if (!parameters.code_challenge) {
121
133
  throw new invalid_parameters_error_js_1.InvalidParametersError(parameters, 'code_challenge is required');
122
134
  }
123
135
  if (parameters.code_challenge &&
@@ -129,39 +141,13 @@ class RequestManager {
129
141
  if (parameters.code_challenge_method && !parameters.code_challenge) {
130
142
  throw new invalid_parameters_error_js_1.InvalidParametersError(parameters, 'code_challenge_method requires code_challenge');
131
143
  }
132
- // https://openid.net/specs/openid-connect-core-1_0.html#HybridAuthRequest
133
- //
134
- // > nonce: REQUIRED if the Response Type of the request is "code id_token" or
135
- // > "code id_token token" and OPTIONAL when the Response Type of the
136
- // > request is "code token". It is a string value used to associate a
137
- // > Client session with an ID Token, and to mitigate replay attacks. The
138
- // > value is passed through unmodified from the Authentication Request to
139
- // > the ID Token. Sufficient entropy MUST be present in the nonce values
140
- // > used to prevent attackers from guessing values. For implementation
141
- // > notes, see Section 15.5.2.
142
- if (responseTypes.includes('id_token') && !parameters.nonce) {
143
- throw new invalid_parameters_error_js_1.InvalidParametersError(parameters, 'nonce is required for implicit and hybrid flows');
144
- }
145
- // Make "expensive" checks after the "cheaper" checks
146
- if (parameters.id_token_hint != null) {
147
- const { payload } = await this.signer.verify(parameters.id_token_hint, {
148
- // these are meant to be outdated when used as a hint
149
- clockTolerance: Infinity,
150
- });
151
- if (!payload.sub) {
152
- throw new invalid_parameters_error_js_1.InvalidParametersError(parameters, `Unexpected empty id_token_hint "sub"`);
153
- }
154
- else if (parameters.login_hint == null) {
155
- parameters = { ...parameters, login_hint: payload.sub };
156
- }
157
- else if (parameters.login_hint !== payload.sub) {
158
- throw new invalid_parameters_error_js_1.InvalidParametersError(parameters, 'login_hint does not match "sub" of id_token_hint');
159
- }
160
- }
161
- // ATPROTO extension: if the client is not trusted, force users to consent
162
- // to authorization requests. We do this to avoid unauthenticated clients
163
- // from being able to silently re-authenticate users.
164
- if (clientAuth.method === 'none' && !client.info.isFirstParty) {
144
+ // ATPROTO extension: if the client is not trusted, and not authenticated,
145
+ // force users to consent to authorization requests. We do this to avoid
146
+ // unauthenticated clients from being able to silently re-authenticate
147
+ // users.
148
+ if (!client.info.isTrusted &&
149
+ !client.info.isFirstParty &&
150
+ clientAuth.method === 'none') {
165
151
  if (parameters.prompt === 'none') {
166
152
  throw new consent_required_error_js_1.ConsentRequiredError(parameters, 'Public clients are not allowed to use silent-sign-on');
167
153
  }
@@ -210,10 +196,11 @@ class RequestManager {
210
196
  uri,
211
197
  expiresAt: updates.expiresAt || data.expiresAt,
212
198
  parameters: data.parameters,
199
+ clientId: data.clientId,
213
200
  clientAuth: data.clientAuth,
214
201
  };
215
202
  }
216
- async setAuthorized(client, uri, deviceId, account, info) {
203
+ async setAuthorized(client, uri, deviceId, account) {
217
204
  const id = (0, request_uri_js_1.decodeRequestUri)(uri);
218
205
  const data = await this.store.readRequest(id);
219
206
  if (!data)
@@ -231,13 +218,8 @@ class RequestManager {
231
218
  if (data.sub || data.code) {
232
219
  throw new access_denied_error_js_1.AccessDeniedError(data.parameters, 'This request was already authorized');
233
220
  }
234
- const responseType = data.parameters.response_type.split(' ');
235
- if (responseType.includes('token')) {
236
- throw new access_denied_error_js_1.AccessDeniedError(data.parameters, 'Implicit "token" forbidden (use "code" with PKCE instead)');
237
- }
238
- const code = responseType.includes('code')
239
- ? await (0, code_js_1.generateCode)()
240
- : undefined;
221
+ // Only response_type=code is supported
222
+ const code = await (0, code_js_1.generateCode)();
241
223
  // Bind the request to the account, preventing it from being used again.
242
224
  await this.store.updateRequest(id, {
243
225
  sub: account.sub,
@@ -245,14 +227,7 @@ class RequestManager {
245
227
  // Allow the client to exchange the code for a token within the next 60 seconds.
246
228
  expiresAt: new Date(Date.now() + constants_js_1.AUTHORIZATION_INACTIVITY_TIMEOUT),
247
229
  });
248
- const id_token = responseType.includes('id_token')
249
- ? await this.signer.idToken(client, data.parameters, account, {
250
- auth_time: info.authenticatedAt,
251
- exp: this.createTokenExpiry(),
252
- code,
253
- })
254
- : undefined;
255
- return { code, id_token };
230
+ return code;
256
231
  }
257
232
  catch (err) {
258
233
  await this.store.deleteRequest(id);
@@ -1 +1 @@
1
- {"version":3,"file":"request-manager.js","sourceRoot":"","sources":["../../src/request/request-manager.ts"],"names":[],"mappings":";;;AAAA,sDAI6B;AAO7B,kDAIwB;AAExB,6EAAoE;AACpE,mFAA0E;AAC1E,6EAAoE;AACpE,uFAA8E;AAC9E,iFAAwE;AACxE,iEAAgE;AAEhE,iDAAqD;AAErD,uCAA8C;AAC9C,uDAG0B;AAC1B,mDAAmD;AAGnD,qDAIyB;AAEzB,MAAa,cAAc;IAEJ;IACA;IACA;IACA;IACA;IACA;IANrB,YACqB,KAAmB,EACnB,MAAc,EACd,QAA0C,EAC1C,KAAiB,EACjB,eAAe,IAAI,EACnB,cAAc,4BAAa;QAL3B,UAAK,GAAL,KAAK,CAAc;QACnB,WAAM,GAAN,MAAM,CAAQ;QACd,aAAQ,GAAR,QAAQ,CAAkC;QAC1C,UAAK,GAAL,KAAK,CAAY;QACjB,iBAAY,GAAZ,YAAY,CAAO;QACnB,gBAAW,GAAX,WAAW,CAAgB;IAC7C,CAAC;IAEM,iBAAiB;QAC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