@atproto/oauth-provider 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. package/CHANGELOG.md +29 -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 +1 -1
  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 +60 -37
  15. package/dist/client/client-manager.js.map +1 -1
  16. package/dist/client/client.d.ts.map +1 -1
  17. package/dist/client/client.js +1 -3
  18. package/dist/client/client.js.map +1 -1
  19. package/dist/constants.d.ts +2 -0
  20. package/dist/constants.d.ts.map +1 -1
  21. package/dist/constants.js +3 -1
  22. package/dist/constants.js.map +1 -1
  23. package/dist/device/device-manager.d.ts +1 -1
  24. package/dist/device/device-manager.d.ts.map +1 -1
  25. package/dist/device/device-manager.js +2 -2
  26. package/dist/device/device-manager.js.map +1 -1
  27. package/dist/errors/invalid-authorization-details-error.d.ts +4 -3
  28. package/dist/errors/invalid-authorization-details-error.d.ts.map +1 -1
  29. package/dist/errors/invalid-authorization-details-error.js +4 -4
  30. package/dist/errors/invalid-authorization-details-error.js.map +1 -1
  31. package/dist/lib/http/request.d.ts +3 -0
  32. package/dist/lib/http/request.d.ts.map +1 -1
  33. package/dist/lib/http/request.js +24 -12
  34. package/dist/lib/http/request.js.map +1 -1
  35. package/dist/metadata/build-metadata.d.ts +0 -1
  36. package/dist/metadata/build-metadata.d.ts.map +1 -1
  37. package/dist/metadata/build-metadata.js +9 -35
  38. package/dist/metadata/build-metadata.js.map +1 -1
  39. package/dist/oauth-hooks.d.ts +3 -10
  40. package/dist/oauth-hooks.d.ts.map +1 -1
  41. package/dist/oauth-provider.d.ts +8 -13
  42. package/dist/oauth-provider.d.ts.map +1 -1
  43. package/dist/oauth-provider.js +169 -109
  44. package/dist/oauth-provider.js.map +1 -1
  45. package/dist/oauth-verifier.d.ts +1 -2
  46. package/dist/oauth-verifier.d.ts.map +1 -1
  47. package/dist/oauth-verifier.js.map +1 -1
  48. package/dist/output/build-authorize-data.d.ts +6 -0
  49. package/dist/output/build-authorize-data.d.ts.map +1 -1
  50. package/dist/output/build-authorize-data.js +1 -0
  51. package/dist/output/build-authorize-data.js.map +1 -1
  52. package/dist/replay/replay-manager.d.ts +1 -0
  53. package/dist/replay/replay-manager.d.ts.map +1 -1
  54. package/dist/replay/replay-manager.js +3 -0
  55. package/dist/replay/replay-manager.js.map +1 -1
  56. package/dist/replay/replay-store.d.ts +1 -1
  57. package/dist/request/request-info.d.ts +2 -0
  58. package/dist/request/request-info.d.ts.map +1 -1
  59. package/dist/request/request-manager.d.ts +3 -9
  60. package/dist/request/request-manager.d.ts.map +1 -1
  61. package/dist/request/request-manager.js +52 -77
  62. package/dist/request/request-manager.js.map +1 -1
  63. package/dist/request/types.d.ts +10 -10
  64. package/dist/signer/signed-token-payload.d.ts +85 -85
  65. package/dist/signer/signer.d.ts +23 -30
  66. package/dist/signer/signer.d.ts.map +1 -1
  67. package/dist/signer/signer.js +0 -40
  68. package/dist/signer/signer.js.map +1 -1
  69. package/dist/token/token-claims.d.ts +81 -81
  70. package/dist/token/token-manager.d.ts +1 -2
  71. package/dist/token/token-manager.d.ts.map +1 -1
  72. package/dist/token/token-manager.js +10 -37
  73. package/dist/token/token-manager.js.map +1 -1
  74. package/dist/token/types.d.ts +10 -10
  75. package/package.json +2 -3
  76. package/src/account/account.ts +11 -7
  77. package/src/assets/app/backend-data.ts +9 -2
  78. package/src/assets/app/components/accept-form.tsx +65 -51
  79. package/src/assets/app/components/client-name.tsx +24 -16
  80. package/src/assets/app/components/url-viewer.tsx +3 -3
  81. package/src/assets/app/views/accept-view.tsx +7 -4
  82. package/src/assets/app/views/authorize-view.tsx +2 -1
  83. package/src/assets/assets-middleware.ts +14 -2
  84. package/src/client/client-manager.ts +78 -60
  85. package/src/client/client.ts +1 -4
  86. package/src/constants.ts +3 -0
  87. package/src/device/device-manager.ts +7 -1
  88. package/src/errors/invalid-authorization-details-error.ts +9 -4
  89. package/src/lib/http/request.ts +61 -15
  90. package/src/metadata/build-metadata.ts +9 -42
  91. package/src/oauth-hooks.ts +3 -13
  92. package/src/oauth-provider.ts +181 -159
  93. package/src/oauth-verifier.ts +1 -2
  94. package/src/output/build-authorize-data.ts +8 -0
  95. package/src/replay/replay-manager.ts +9 -0
  96. package/src/replay/replay-store.ts +1 -1
  97. package/src/request/request-info.ts +2 -0
  98. package/src/request/request-manager.ts +81 -107
  99. package/src/signer/signer.ts +0 -63
  100. package/src/token/token-manager.ts +8 -41
  101. package/dist/oidc/claims.d.ts +0 -16
  102. package/dist/oidc/claims.d.ts.map +0 -1
  103. package/dist/oidc/claims.js +0 -29
  104. package/dist/oidc/claims.js.map +0 -1
  105. package/dist/oidc/userinfo.d.ts +0 -7
  106. package/dist/oidc/userinfo.d.ts.map +0 -1
  107. package/dist/oidc/userinfo.js +0 -3
  108. package/dist/oidc/userinfo.js.map +0 -1
  109. package/dist/parameters/claims-requested.d.ts +0 -3
  110. package/dist/parameters/claims-requested.d.ts.map +0 -1
  111. package/dist/parameters/claims-requested.js +0 -77
  112. package/dist/parameters/claims-requested.js.map +0 -1
  113. package/dist/parameters/oidc-payload.d.ts +0 -31
  114. package/dist/parameters/oidc-payload.d.ts.map +0 -1
  115. package/dist/parameters/oidc-payload.js +0 -25
  116. package/dist/parameters/oidc-payload.js.map +0 -1
  117. package/src/assets/app/components/client-identifier.tsx +0 -31
  118. package/src/oidc/claims.ts +0 -35
  119. package/src/oidc/userinfo.ts +0 -11
  120. package/src/parameters/claims-requested.ts +0 -106
  121. package/src/parameters/oid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AA;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-data.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oCAAoC,EACpC,mBAAmB,EACpB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAEtD,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,oCAAoC,CAAA;IAChD,SAAS,EAAE;Q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;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,oCAAoC,CAAA;IAChD,SAAS,EAAE;QACT,GAAG,EAAE,UAAU,CAAA;QACf,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;QAC5B,QAAQ,EAAE,SAAS;YACjB,OAAO,EAAE,OAAO,CAAA;YAChB,IAAI,EAAE,iBAAiB,CAAA;YAEvB,QAAQ,EAAE,OAAO,CAAA;YACjB,aAAa,EAAE,OAAO,CAAA;YACtB,eAAe,EAAE,OAAO,CAAA;SACzB,EAAE,CAAA;KACJ,CAAA;CACF,CAAA;AAKD,KAAK,OAAO,GAAG;IACb,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,CAAC,EAAE,KAAK,CAAA;IAEZ,QAAQ,EAAE,OAAO,CAAA;IACjB,aAAa,EAAE,OAAO,CAAA;IACtB,eAAe,EAAE,OAAO,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,EAAE,mBAAmB,CAAA;IACnC,aAAa,EAAE,OAAO,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.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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,EAAE,CAAC,CAAC,CAAC,MAAM,EACtC,GAAG,EACH,WAAW,CAAC,iCAAkB,CAAC,CAChC,CAAA;IACH,CAAC;IAED,KAAK,CAAC,mBAAmB,CAAC,SAAiB;QACzC,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAC5B,eAAe,EACf,SAAS,EACT,WAAW,CAAC,8CAA+B,CAAC,CAC7C,CAAA;IACH,CAAC;CACF;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,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,YAAY,EAAqB,MAAM,oBAAoB,CAAA;AACpE,OAAO,EAGL,UAAU,EACX,MAAM,kBAAkB,CAAA;AAEzB,qBAAa,cAAc;IAEvB,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,YAAY;IACtC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM;IACjC,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,gCAAgC;IAC7D,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,UAAU;IACpC,SAAS,CAAC,QAAQ,CAAC,YAAY;IAC/B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_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;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;QAC1E,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAA;IAC9D,CAAC;IAES,KAAK,CAAC,MAAM,CACpB,MAAc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ZD,wCA6ZC"}
@@ -45,7 +45,7 @@ export declare const pushedAuthorizationRequestSchema: z.ZodIntersection<z.ZodUn
45
45
  state: z.ZodOptional<z.ZodString>;
46
46
  nonce: z.ZodOptional<z.ZodString>;
47
47
  dpop_jkt: z.ZodOptional<z.ZodString>;
48
- response_type: z.ZodEnum<["code", "token", "id_token", "none", "code token", "code id_token", "id_token token", "code id_token token"]>;
48
+ response_type: z.ZodEnum<["code", "token", "none", "code id_token token", "code id_token", "code token", "id_token token", "id_token"]>;
49
49
  response_mode: z.ZodOptional<z.ZodEnum<["query", "fragment", "form_post"]>>;
50
50
  code_challenge: z.ZodOptional<z.ZodString>;
51
51
  code_challenge_method: z.ZodOptional<z.ZodDefault<z.ZodEnum<["S256", "plain"]>>>;
@@ -94,7 +94,7 @@ export declare const pushedAuthorizationRequestSchema: z.ZodIntersection<z.ZodUn
94
94
  }>, "many">>;
95
95
  }, "strip", z.ZodTypeAny, {
96
96
  client_id: string;
97
- response_type: "none" | "code" | "id_token" | "token" | "code id_token token" | "code id_token" | "code token" | "id_token token";
97
+ response_type: "none" | "code" | "token" | "code id_token token" | "code id_token" | "code token" | "id_token token" | "id_token";
98
98
  scope?: string | undefined;
99
99
  redirect_uri?: string | undefined;
100
100
  nonce?: string | undefined;
@@ -104,7 +104,7 @@ export declare const pushedAuthorizationRequestSchema: z.ZodIntersection<z.ZodUn
104
104
  code_challenge?: string | undefined;
105
105
  code_challenge_method?: "S256" | "plain" | undefined;
106
106
  max_age?: number | undefined;
107
- claims?: Partial<Record<"id_token" | "userinfo", Partial<Record<"nonce" | "name" | "email" | "email_verified" | "phone_number" | "phone_number_verified" | "address" | "profile" | "family_name" | "given_name" | "middle_name" | "nickname" | "preferred_username" | "gender" | "picture" | "website" | "birthdate" | "zoneinfo" | "locale" | "updated_at" | "acr" | "auth_time", {
107
+ claims?: Partial<Record<"id_token" | "userinfo", Partial<Record<"nonce" | "name" | "preferred_username" | "email" | "email_verified" | "picture" | "acr" | "auth_time" | "family_name" | "given_name" | "middle_name" | "nickname" | "gender" | "profile" | "website" | "birthdate" | "zoneinfo" | "locale" | "updated_at" | "phone_number" | "phone_number_verified" | "address", {
108
108
  values?: (string | number | boolean)[] | undefined;
109
109
  value?: string | number | boolean | undefined;
110
110
  essential?: boolean | undefined;
@@ -124,7 +124,7 @@ export declare const pushedAuthorizationRequestSchema: z.ZodIntersection<z.ZodUn
124
124
  }[] | undefined;
125
125
  }, {
126
126
  client_id: string;
127
- response_type: "none" | "code" | "id_token" | "token" | "code id_token token" | "code id_token" | "code token" | "id_token token";
127
+ response_type: "none" | "code" | "token" | "code id_token token" | "code id_token" | "code token" | "id_token token" | "id_token";
128
128
  scope?: string | undefined;
129
129
  redirect_uri?: string | undefined;
130
130
  nonce?: string | undefined;
@@ -134,7 +134,7 @@ export declare const pushedAuthorizationRequestSchema: z.ZodIntersection<z.ZodUn
134
134
  code_challenge?: string | undefined;
135
135
  code_challenge_method?: "S256" | "plain" | undefined;
136
136
  max_age?: number | undefined;
137
- claims?: Partial<Record<"id_token" | "userinfo", Partial<Record<"nonce" | "name" | "email" | "email_verified" | "phone_number" | "phone_number_verified" | "address" | "profile" | "family_name" | "given_name" | "middle_name" | "nickname" | "preferred_username" | "gender" | "picture" | "website" | "birthdate" | "zoneinfo" | "locale" | "updated_at" | "acr" | "auth_time", {
137
+ claims?: Partial<Record<"id_token" | "userinfo", Partial<Record<"nonce" | "name" | "preferred_username" | "email" | "email_verified" | "picture" | "acr" | "auth_time" | "family_name" | "given_name" | "middle_name" | "nickname" | "gender" | "profile" | "website" | "birthdate" | "zoneinfo" | "locale" | "updated_at" | "phone_number" | "phone_number_verified" | "address", {
138
138
  values?: (string | number | boolean)[] | undefined;
139
139
  value?: string | number | boolean | undefined;
140
140
  essential?: boolean | undefined;
@@ -198,7 +198,7 @@ export declare const authorizationRequestQuerySchema: z.ZodIntersection<z.ZodUni
198
198
  state: z.ZodOptional<z.ZodString>;
199
199
  nonce: z.ZodOptional<z.ZodString>;
200
200
  dpop_jkt: z.ZodOptional<z.ZodString>;
201
- response_type: z.ZodEnum<["code", "token", "id_token", "none", "code token", "code id_token", "id_token token", "code id_token token"]>;
201
+ response_type: z.ZodEnum<["code", "token", "none", "code id_token token", "code id_token", "code token", "id_token token", "id_token"]>;
202
202
  response_mode: z.ZodOptional<z.ZodEnum<["query", "fragment", "form_post"]>>;
203
203
  code_challenge: z.ZodOptional<z.ZodString>;
204
204
  code_challenge_method: z.ZodOptional<z.ZodDefault<z.ZodEnum<["S256", "plain"]>>>;
@@ -247,7 +247,7 @@ export declare const authorizationRequestQuerySchema: z.ZodIntersection<z.ZodUni
247
247
  }>, "many">>;
248
248
  }, "strip", z.ZodTypeAny, {
249
249
  client_id: string;
250
- response_type: "none" | "code" | "id_token" | "token" | "code id_token token" | "code id_token" | "code token" | "id_token token";
250
+ response_type: "none" | "code" | "token" | "code id_token token" | "code id_token" | "code token" | "id_token token" | "id_token";
251
251
  scope?: string | undefined;
252
252
  redirect_uri?: string | undefined;
253
253
  nonce?: string | undefined;
@@ -257,7 +257,7 @@ export declare const authorizationRequestQuerySchema: z.ZodIntersection<z.ZodUni
257
257
  code_challenge?: string | undefined;
258
258
  code_challenge_method?: "S256" | "plain" | undefined;
259
259
  max_age?: number | undefined;
260
- claims?: Partial<Record<"id_token" | "userinfo", Partial<Record<"nonce" | "name" | "email" | "email_verified" | "phone_number" | "phone_number_verified" | "address" | "profile" | "family_name" | "given_name" | "middle_name" | "nickname" | "preferred_username" | "gender" | "picture" | "website" | "birthdate" | "zoneinfo" | "locale" | "updated_at" | "acr" | "auth_time", {
260
+ claims?: Partial<Record<"id_token" | "userinfo", Partial<Record<"nonce" | "name" | "preferred_username" | "email" | "email_verified" | "picture" | "acr" | "auth_time" | "family_name" | "given_name" | "middle_name" | "nickname" | "gender" | "profile" | "website" | "birthdate" | "zoneinfo" | "locale" | "updated_at" | "phone_number" | "phone_number_verified" | "address", {
261
261
  values?: (string | number | boolean)[] | undefined;
262
262
  value?: string | number | boolean | undefined;
263
263
  essential?: boolean | undefined;
@@ -277,7 +277,7 @@ export declare const authorizationRequestQuerySchema: z.ZodIntersection<z.ZodUni
277
277
  }[] | undefined;
278
278
  }, {
279
279
  client_id: string;
280
- response_type: "none" | "code" | "id_token" | "token" | "code id_token token" | "code id_token" | "code token" | "id_token token";
280
+ response_type: "none" | "code" | "token" | "code id_token token" | "code id_token" | "code token" | "id_token token" | "id_token";
281
281
  scope?: string | undefined;
282
282
  redirect_uri?: string | undefined;
283
283
  nonce?: string | undefined;
@@ -287,7 +287,7 @@ export declare const authorizationRequestQuerySchema: z.ZodIntersection<z.ZodUni
287
287
  code_challenge?: string | undefined;
288
288
  code_challenge_method?: "S256" | "plain" | undefined;
289
289
  max_age?: number | undefined;
290
- claims?: Partial<Record<"id_token" | "userinfo", Partial<Record<"nonce" | "name" | "email" | "email_verified" | "phone_number" | "phone_number_verified" | "address" | "profile" | "family_name" | "given_name" | "middle_name" | "nickname" | "preferred_username" | "gender" | "picture" | "website" | "birthdate" | "zoneinfo" | "locale" | "updated_at" | "acr" | "auth_time", {
290
+ claims?: Partial<Record<"id_token" | "userinfo", Partial<Record<"nonce" | "name" | "preferred_username" | "email" | "email_verified" | "picture" | "acr" | "auth_time" | "family_name" | "given_name" | "middle_name" | "nickname" | "gender" | "profile" | "website" | "birthdate" | "zoneinfo" | "locale" | "updated_at" | "phone_number" | "phone_number_verified" | "address", {
291
291
  values?: (string | number | boolean)[] | undefined;
292
292
  value?: string | number | boolean | undefined;
293
293
  essential?: boolean | undefined;