@atproto/oauth-client 0.3.0 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +21 -0
- package/dist/atproto-token-response.d.ts +8 -8
- package/dist/atproto-token-response.d.ts.map +1 -1
- package/dist/atproto-token-response.js.map +1 -1
- package/dist/oauth-client.d.ts +6 -6
- package/dist/oauth-client.d.ts.map +1 -1
- package/dist/oauth-client.js +7 -2
- package/dist/oauth-client.js.map +1 -1
- package/dist/oauth-resolver-error.d.ts.map +1 -1
- package/dist/oauth-resolver-error.js +7 -1
- package/dist/oauth-resolver-error.js.map +1 -1
- package/dist/oauth-resolver.d.ts +11 -11
- package/dist/oauth-server-agent.d.ts +1 -1
- package/dist/oauth-server-agent.d.ts.map +1 -1
- package/dist/types.d.ts +16 -16
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +5 -1
- package/dist/types.js.map +1 -1
- package/package.json +4 -4
- package/src/atproto-token-response.ts +2 -2
- package/src/oauth-client.ts +13 -2
- package/src/oauth-resolver-error.ts +10 -1
- package/src/types.ts +8 -4
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# @atproto/oauth-client
|
2
2
|
|
3
|
+
## 0.3.2
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#3066](https://github.com/bluesky-social/atproto/pull/3066) [`5ddd51235`](https://github.com/bluesky-social/atproto/commit/5ddd51235c7e064bddcad2dd218df05d144d18d3) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Verify authorization_endpoint URL protocol
|
8
|
+
|
9
|
+
- [#3066](https://github.com/bluesky-social/atproto/pull/3066) [`5ddd51235`](https://github.com/bluesky-social/atproto/commit/5ddd51235c7e064bddcad2dd218df05d144d18d3) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Ensure that client-id is a web url
|
10
|
+
|
11
|
+
- [#3066](https://github.com/bluesky-social/atproto/pull/3066) [`5ddd51235`](https://github.com/bluesky-social/atproto/commit/5ddd51235c7e064bddcad2dd218df05d144d18d3) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Improve message of OAuthResolverError in case of metadata validation error
|
12
|
+
|
13
|
+
- Updated dependencies [[`5ddd51235`](https://github.com/bluesky-social/atproto/commit/5ddd51235c7e064bddcad2dd218df05d144d18d3), [`5ddd51235`](https://github.com/bluesky-social/atproto/commit/5ddd51235c7e064bddcad2dd218df05d144d18d3), [`5ddd51235`](https://github.com/bluesky-social/atproto/commit/5ddd51235c7e064bddcad2dd218df05d144d18d3)]:
|
14
|
+
- @atproto/oauth-types@0.2.1
|
15
|
+
|
16
|
+
## 0.3.1
|
17
|
+
|
18
|
+
### Patch Changes
|
19
|
+
|
20
|
+
- Updated dependencies []:
|
21
|
+
- @atproto-labs/identity-resolver@0.1.6
|
22
|
+
- @atproto/xrpc@0.6.4
|
23
|
+
|
3
24
|
## 0.3.0
|
4
25
|
|
5
26
|
### Minor Changes
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { z } from 'zod';
|
1
|
+
import { z, TypeOf } from 'zod';
|
2
2
|
import { SpaceSeparatedValue } from './util';
|
3
3
|
export type AtprotoScope = SpaceSeparatedValue<'atproto'>;
|
4
4
|
export declare const isAtprotoScope: (input: string) => input is AtprotoScope;
|
@@ -12,14 +12,14 @@ export declare const atprotoTokenResponseSchema: z.ZodObject<z.objectUtil.extend
|
|
12
12
|
id_token: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `${string}.${string}.${string}`, string>>;
|
13
13
|
authorization_details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
14
14
|
type: z.ZodString;
|
15
|
-
locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
15
|
+
locations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `${string}:${string}`, string>, "many">>;
|
16
16
|
actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
17
17
|
datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
18
18
|
identifier: z.ZodOptional<z.ZodString>;
|
19
19
|
privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
21
21
|
type: string;
|
22
|
-
locations?: string[] | undefined;
|
22
|
+
locations?: `${string}:${string}`[] | undefined;
|
23
23
|
actions?: string[] | undefined;
|
24
24
|
datatypes?: string[] | undefined;
|
25
25
|
identifier?: string | undefined;
|
@@ -46,14 +46,14 @@ export declare const atprotoTokenResponseSchema: z.ZodObject<z.objectUtil.extend
|
|
46
46
|
id_token: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `${string}.${string}.${string}`, string>>;
|
47
47
|
authorization_details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
48
48
|
type: z.ZodString;
|
49
|
-
locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
49
|
+
locations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `${string}:${string}`, string>, "many">>;
|
50
50
|
actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
51
51
|
datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
52
52
|
identifier: z.ZodOptional<z.ZodString>;
|
53
53
|
privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
54
54
|
}, "strip", z.ZodTypeAny, {
|
55
55
|
type: string;
|
56
|
-
locations?: string[] | undefined;
|
56
|
+
locations?: `${string}:${string}`[] | undefined;
|
57
57
|
actions?: string[] | undefined;
|
58
58
|
datatypes?: string[] | undefined;
|
59
59
|
identifier?: string | undefined;
|
@@ -80,14 +80,14 @@ export declare const atprotoTokenResponseSchema: z.ZodObject<z.objectUtil.extend
|
|
80
80
|
id_token: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `${string}.${string}.${string}`, string>>;
|
81
81
|
authorization_details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
82
82
|
type: z.ZodString;
|
83
|
-
locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
83
|
+
locations: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `${string}:${string}`, string>, "many">>;
|
84
84
|
actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
85
85
|
datatypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
86
86
|
identifier: z.ZodOptional<z.ZodString>;
|
87
87
|
privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
88
88
|
}, "strip", z.ZodTypeAny, {
|
89
89
|
type: string;
|
90
|
-
locations?: string[] | undefined;
|
90
|
+
locations?: `${string}:${string}`[] | undefined;
|
91
91
|
actions?: string[] | undefined;
|
92
92
|
datatypes?: string[] | undefined;
|
93
93
|
identifier?: string | undefined;
|
@@ -106,5 +106,5 @@ export declare const atprotoTokenResponseSchema: z.ZodObject<z.objectUtil.extend
|
|
106
106
|
scope: z.ZodEffects<z.ZodString, AtprotoScope, string>;
|
107
107
|
id_token: z.ZodOptional<z.ZodNever>;
|
108
108
|
}>, z.ZodTypeAny, "passthrough">>;
|
109
|
-
export type AtprotoTokenResponse =
|
109
|
+
export type AtprotoTokenResponse = TypeOf<typeof atprotoTokenResponseSchema>;
|
110
110
|
//# sourceMappingURL=atproto-token-response.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"atproto-token-response.d.ts","sourceRoot":"","sources":["../src/atproto-token-response.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
1
|
+
{"version":3,"file":"atproto-token-response.d.ts","sourceRoot":"","sources":["../src/atproto-token-response.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,KAAK,CAAA;AAE/B,OAAO,EAA+B,mBAAmB,EAAE,MAAM,QAAQ,CAAA;AAEzE,MAAM,MAAM,YAAY,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAA;AACzD,eAAO,MAAM,cAAc,UAAW,MAAM,KAAG,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AAU,GAAG,SAG7B;mBAA+D,WAClE,GAAG,QAAQ,GAAG,SAAS;qBAAiC,WAAW,GAAG,QAAQ,GAAG,SAAS;sBAAkC,WAAW,GAAG,SAAS;sBAAyB,WAAW,GAAG,QAAQ,GAAG,SAAS;kBAA8B,UAAU;;iBAA2C,CAAC;eAAsD,CAAC;iBAAyC,CAAC;kBAA0C,CAAC;kBAAwC,CAAC;;;iBAAwE,CAAC;eAAuC,CAAC;iBAAyC,CAAC;kBAA0C,CAAC;kBAAwC,CAAC;;;;;;;;oBAhBtsB,SAAQ;kBAAoB,QAAQ,IAAI,UAAU,GAAG,SACjD,qBAAqB,UAAU,GAAG,SAAS;aACpC,WAAW,GAAG,SAAS;qBACxB,WAAW,GAAG,SAAS;kBAE3B,WAAW,GAAG,SAAS;gBAAmB,WAAW,GAE3D,UAAU,GAAG,UAAU,GAAG,SAAS;6BAElB,WACd,GAAG,QAAQ,GAAG,SAAS;gBACV,SAAS;qBAAuB,WAC3C,GAAG,QAAQ,GAAG,UAAU,GAAG,SAG7B;mBAA+D,WAClE,GAAG,QAAQ,GAAG,SAAS;qBAAiC,WAAW,GAAG,QAAQ,GAAG,SAAS;sBAAkC,WAAW,GAAG,SAAS;sBAAyB,WAAW,GAAG,QAAQ,GAAG,SAAS;kBAA8B,UAAU;;iBAA2C,CAAC;eAAsD,CAAC;iBAAyC,CAAC;kBAA0C,CAAC;kBAAwC,CAAC;;;iBAAwE,CAAC;eAAuC,CAAC;iBAAyC,CAAC;kBAA0C,CAAC;kBAAwC,CAAC;;;;;;;iCAHpsB,CAAA;AAEF,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"atproto-token-response.js","sourceRoot":"","sources":["../src/atproto-token-response.ts"],"names":[],"mappings":";;;AAAA,sCAA+C;AAC/C,sDAA+D;AAC/D,
|
1
|
+
{"version":3,"file":"atproto-token-response.js","sourceRoot":"","sources":["../src/atproto-token-response.ts"],"names":[],"mappings":";;;AAAA,sCAA+C;AAC/C,sDAA+D;AAC/D,6BAA+B;AAE/B,iCAAyE;AAGlE,MAAM,cAAc,GAAG,CAAC,KAAa,EAAyB,EAAE,CACrE,IAAA,kCAA2B,EAAC,KAAK,EAAE,SAAS,CAAC,CAAA;AADlC,QAAA,cAAc,kBACoB;AAClC,QAAA,kBAAkB,GAAG,OAAC;KAChC,MAAM,EAAE;KACR,MAAM,CAAC,sBAAc,EAAE,iCAAiC,CAAC,CAAA;AAE/C,QAAA,0BAA0B,GAAG,sCAAwB,CAAC,MAAM,CAAC;IACxE,UAAU,EAAE,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IAC7B,GAAG,EAAE,sBAAgB;IACrB,KAAK,EAAE,0BAAkB;IACzB,mDAAmD;IACnD,QAAQ,EAAE,OAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAA"}
|
package/dist/oauth-client.d.ts
CHANGED
@@ -56,7 +56,7 @@ export type OAuthClientFetchMetadataOptions = {
|
|
56
56
|
};
|
57
57
|
export declare class OAuthClient extends CustomEventTarget<OAuthClientEventMap> {
|
58
58
|
static fetchMetadata({ clientId, fetch, signal, }: OAuthClientFetchMetadataOptions): Promise<{
|
59
|
-
redirect_uris: [string
|
59
|
+
redirect_uris: [`http://[::1]${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | `${string}.${string}:/${string}`, ...(`http://[::1]${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | `${string}.${string}:/${string}`)[]];
|
60
60
|
response_types: ["code" | "none" | "token" | "code id_token token" | "code id_token" | "code token" | "id_token token" | "id_token", ...("code" | "none" | "token" | "code id_token token" | "code id_token" | "code token" | "id_token token" | "id_token")[]];
|
61
61
|
grant_types: ["authorization_code" | "implicit" | "refresh_token" | "password" | "client_credentials" | "urn:ietf:params:oauth:grant-type:jwt-bearer" | "urn:ietf:params:oauth:grant-type:saml2-bearer", ...("authorization_code" | "implicit" | "refresh_token" | "password" | "client_credentials" | "urn:ietf:params:oauth:grant-type:jwt-bearer" | "urn:ietf:params:oauth:grant-type:saml2-bearer")[]];
|
62
62
|
scope?: string | undefined;
|
@@ -64,7 +64,7 @@ export declare class OAuthClient extends CustomEventTarget<OAuthClientEventMap>
|
|
64
64
|
token_endpoint_auth_signing_alg?: string | undefined;
|
65
65
|
userinfo_signed_response_alg?: string | undefined;
|
66
66
|
userinfo_encrypted_response_alg?: string | undefined;
|
67
|
-
jwks_uri?: string | undefined;
|
67
|
+
jwks_uri?: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | undefined;
|
68
68
|
jwks?: {
|
69
69
|
keys: ({
|
70
70
|
kty: "RSA";
|
@@ -172,10 +172,10 @@ export declare class OAuthClient extends CustomEventTarget<OAuthClientEventMap>
|
|
172
172
|
authorization_encrypted_response_alg?: string | undefined;
|
173
173
|
client_id?: string | undefined;
|
174
174
|
client_name?: string | undefined;
|
175
|
-
client_uri?: string | undefined;
|
176
|
-
policy_uri?: string | undefined;
|
177
|
-
tos_uri?: string | undefined;
|
178
|
-
logo_uri?: string | undefined;
|
175
|
+
client_uri?: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | undefined;
|
176
|
+
policy_uri?: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | undefined;
|
177
|
+
tos_uri?: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | undefined;
|
178
|
+
logo_uri?: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | undefined;
|
179
179
|
default_max_age?: number | undefined;
|
180
180
|
require_auth_time?: boolean | undefined;
|
181
181
|
contacts?: string[] | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"oauth-client.d.ts","sourceRoot":"","sources":["../src/oauth-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,QAAQ,EAKT,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAC3C,OAAO,EAGL,WAAW,EACX,cAAc,EACf,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAElE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,EAEL,yBAAyB,EACzB,mBAAmB,EACnB,wBAAwB,EAExB,iBAAiB,EAClB,MAAM,sBAAsB,CAAA;AAI7B,OAAO,EACL,gCAAgC,EAEjC,MAAM,mDAAmD,CAAA;AAE1D,OAAO,EAEL,8BAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEP;IAEK,SAAS,CACb,KAAK,EAAE,MAAM,EACb,EAAE,MAAM,EAAE,GAAG,OAAO,EAAE,GAAE,gBAAqB,GAC5C,OAAO,CAAC,GAAG,CAAC;IA4Ff;;;OAGG;IACG,YAAY,CAAC,YAAY,EAAE,GAAG;IAY9B,QAAQ,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC;QAC/C,OAAO,EAAE,YAAY,CAAA;QACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;KACrB,CAAC;IA2FF;;;;;OAKG;IACG,OAAO,CACX,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,OAAO,GAAG,MAAe,GACjC,OAAO,CAAC,YAAY,CAAC;IAiBlB,MAAM,CAAC,GAAG,EAAE,MAAM;IAmBxB,SAAS,CAAC,aAAa,CACrB,MAAM,EAAE,gBAAgB,EACxB,GAAG,EAAE,UAAU,GACd,YAAY;CAGhB"}
|
package/dist/oauth-client.js
CHANGED
@@ -175,10 +175,16 @@ class OAuthClient extends util_js_1.CustomEventTarget {
|
|
175
175
|
response_type: 'code',
|
176
176
|
scope: options?.scope ?? this.clientMetadata.scope,
|
177
177
|
};
|
178
|
+
const authorizationUrl = new URL(metadata.authorization_endpoint);
|
179
|
+
// Since the user will be redirected to the authorization_endpoint url using
|
180
|
+
// a browser, we need to make sure that the url is valid.
|
181
|
+
if (authorizationUrl.protocol !== 'https:' &&
|
182
|
+
authorizationUrl.protocol !== 'http:') {
|
183
|
+
throw new TypeError(`Invalid authorization endpoint protocol: ${authorizationUrl.protocol}`);
|
184
|
+
}
|
178
185
|
if (metadata.pushed_authorization_request_endpoint) {
|
179
186
|
const server = await this.serverFactory.fromMetadata(metadata, dpopKey);
|
180
187
|
const parResponse = await server.request('pushed_authorization_request', parameters);
|
181
|
-
const authorizationUrl = new URL(metadata.authorization_endpoint);
|
182
188
|
authorizationUrl.searchParams.set('client_id', this.clientMetadata.client_id);
|
183
189
|
authorizationUrl.searchParams.set('request_uri', parResponse.request_uri);
|
184
190
|
return authorizationUrl;
|
@@ -187,7 +193,6 @@ class OAuthClient extends util_js_1.CustomEventTarget {
|
|
187
193
|
throw new Error('Server requires pushed authorization requests (PAR) but no PAR endpoint is available');
|
188
194
|
}
|
189
195
|
else {
|
190
|
-
const authorizationUrl = new URL(metadata.authorization_endpoint);
|
191
196
|
for (const [key, value] of Object.entries(parameters)) {
|
192
197
|
if (value)
|
193
198
|
authorizationUrl.searchParams.set(key, String(value));
|
package/dist/oauth-client.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"oauth-client.js","sourceRoot":"","sources":["../src/oauth-client.ts"],"names":[],"mappings":";;;AAAA,6DAQmC;AAEnC,mEAKsC;AACtC,uEAAkE;AAClE,2EAAqE;AACrE,sCAA0C;AAC1C,sDAO6B;AAE7B,iDAA6C;AAC7C,4EAAmE;AACnE,uHAG0D;AAC1D,uEAA8D;AAC9D,mHAGwD;AACxD,2DAAmD;AAEnD,uEAA8D;AAC9D,yDAAiD;AAEjD,6CAAsC;AACtC,2DAI4B;AAG5B,uCAA6C;AAC7C,+EAAsE;AAmEtE,MAAa,WAAY,SAAQ,2BAAsC;IACrE,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,EACzB,QAAQ,EACR,KAAK,GAAG,UAAU,CAAC,KAAK,EACxB,MAAM,GAC0B;QAChC,MAAM,EAAE,cAAc,EAAE,CAAA;QAExB,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,QAAQ,EAAE;YACpC,QAAQ,EAAE,OAAO;YACjB,MAAM,EAAE,MAAM;SACf,CAAC,CAAA;QACF,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,OAAO,CAAC,CAAA;QAErC,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;YAC5B,QAAQ,C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AAY,CAAC,CAAA;QAC5C,CAAC;gBAAS,CAAC;YACT,MAAM,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,0CAAiB,CAAC,GAAG,CAAC,CAAC,CAAA;QACrE,CAAC;IACH,CAAC;IAES,aAAa,CACrB,MAAwB,EACxB,GAAe;QAEf,OAAO,IAAI,+BAAY,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,KAAK,CAAC,CAAA;IACtE,CAAC;CACF;AAzZD,kCAyZC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"oauth-resolver-error.d.ts","sourceRoot":"","sources":["../src/oauth-resolver-error.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"oauth-resolver-error.d.ts","sourceRoot":"","sources":["../src/oauth-resolver-error.ts"],"names":[],"mappings":"AAEA,qBAAa,kBAAmB,SAAQ,KAAK;gBAC/B,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE;IAI1D,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,kBAAkB;CAalE"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.OAuthResolverError = void 0;
|
4
|
+
const zod_1 = require("zod");
|
4
5
|
class OAuthResolverError extends Error {
|
5
6
|
constructor(message, options) {
|
6
7
|
super(message, options);
|
@@ -8,7 +9,12 @@ class OAuthResolverError extends Error {
|
|
8
9
|
static from(cause, message) {
|
9
10
|
if (cause instanceof OAuthResolverError)
|
10
11
|
return cause;
|
11
|
-
|
12
|
+
const validationReason = cause instanceof zod_1.ZodError
|
13
|
+
? `${cause.errors[0].path} ${cause.errors[0].message}`
|
14
|
+
: null;
|
15
|
+
const fullMessage = (message ?? `Unable to resolve identity`) +
|
16
|
+
(validationReason ? ` (${validationReason})` : '');
|
17
|
+
return new OAuthResolverError(fullMessage, {
|
12
18
|
cause,
|
13
19
|
});
|
14
20
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"oauth-resolver-error.js","sourceRoot":"","sources":["../src/oauth-resolver-error.ts"],"names":[],"mappings":";;;AAAA,MAAa,kBAAmB,SAAQ,KAAK;IAC3C,YAAY,OAAe,EAAE,OAA6B;QACxD,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IACzB,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,KAAc,EAAE,OAAgB;QAC1C,IAAI,KAAK,YAAY,kBAAkB;YAAE,OAAO,KAAK,CAAA;QACrD,OAAO,IAAI,
|
1
|
+
{"version":3,"file":"oauth-resolver-error.js","sourceRoot":"","sources":["../src/oauth-resolver-error.ts"],"names":[],"mappings":";;;AAAA,6BAA8B;AAE9B,MAAa,kBAAmB,SAAQ,KAAK;IAC3C,YAAY,OAAe,EAAE,OAA6B;QACxD,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IACzB,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,KAAc,EAAE,OAAgB;QAC1C,IAAI,KAAK,YAAY,kBAAkB;YAAE,OAAO,KAAK,CAAA;QACrD,MAAM,gBAAgB,GACpB,KAAK,YAAY,cAAQ;YACvB,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE;YACtD,CAAC,CAAC,IAAI,CAAA;QACV,MAAM,WAAW,GACf,CAAC,OAAO,IAAI,4BAA4B,CAAC;YACzC,CAAC,gBAAgB,CAAC,CAAC,CAAC,KAAK,gBAAgB,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;QACpD,OAAO,IAAI,kBAAkB,CAAC,WAAW,EAAE;YACzC,KAAK;SACN,CAAC,CAAA;IACJ,CAAC;CACF;AAlBD,gDAkBC"}
|
package/dist/oauth-resolver.d.ts
CHANGED
@@ -30,10 +30,10 @@ export declare class OAuthResolver {
|
|
30
30
|
resolveIdentity(input: string, options?: ResolveIdentityOptions): Promise<ResolvedIdentity>;
|
31
31
|
getAuthorizationServerMetadata(issuer: string, options?: GetCachedOptions): Promise<OAuthAuthorizationServerMetadata>;
|
32
32
|
getResourceServerMetadata(pdsUrl: string | URL, options?: GetCachedOptions): Promise<{
|
33
|
-
issuer: `http
|
34
|
-
authorization_endpoint: string
|
35
|
-
token_endpoint: string
|
36
|
-
jwks_uri?: string | undefined;
|
33
|
+
issuer: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}`;
|
34
|
+
authorization_endpoint: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}`;
|
35
|
+
token_endpoint: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}`;
|
36
|
+
jwks_uri?: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | undefined;
|
37
37
|
claims_supported?: string[] | undefined;
|
38
38
|
claims_locales_supported?: string[] | undefined;
|
39
39
|
claims_parameter_supported?: boolean | undefined;
|
@@ -56,15 +56,15 @@ export declare class OAuthResolver {
|
|
56
56
|
request_object_encryption_enc_values_supported?: string[] | undefined;
|
57
57
|
token_endpoint_auth_methods_supported?: string[] | undefined;
|
58
58
|
token_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
|
59
|
-
revocation_endpoint?: string | undefined;
|
60
|
-
introspection_endpoint?: string | undefined;
|
61
|
-
pushed_authorization_request_endpoint?: string | undefined;
|
59
|
+
revocation_endpoint?: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | undefined;
|
60
|
+
introspection_endpoint?: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | undefined;
|
61
|
+
pushed_authorization_request_endpoint?: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | undefined;
|
62
62
|
require_pushed_authorization_requests?: boolean | undefined;
|
63
|
-
userinfo_endpoint?: string | undefined;
|
64
|
-
end_session_endpoint?: string | undefined;
|
65
|
-
registration_endpoint?: string | undefined;
|
63
|
+
userinfo_endpoint?: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | undefined;
|
64
|
+
end_session_endpoint?: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | undefined;
|
65
|
+
registration_endpoint?: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | undefined;
|
66
66
|
dpop_signing_alg_values_supported?: string[] | undefined;
|
67
|
-
protected_resources?: string[] | undefined;
|
67
|
+
protected_resources?: (`http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}`)[] | undefined;
|
68
68
|
client_id_metadata_document_supported?: boolean | undefined;
|
69
69
|
}>;
|
70
70
|
}
|
@@ -29,7 +29,7 @@ export declare class OAuthServerAgent {
|
|
29
29
|
readonly keyset?: Keyset | undefined;
|
30
30
|
protected dpopFetch: Fetch<unknown>;
|
31
31
|
constructor(dpopKey: Key, serverMetadata: OAuthAuthorizationServerMetadata, clientMetadata: ClientMetadata, dpopNonces: DpopNonceCache, oauthResolver: OAuthResolver, runtime: Runtime, keyset?: Keyset | undefined, fetch?: Fetch);
|
32
|
-
get issuer(): `http
|
32
|
+
get issuer(): `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}`;
|
33
33
|
revoke(token: string): Promise<void>;
|
34
34
|
exchangeCode(code: string, codeVerifier?: string): Promise<TokenSet>;
|
35
35
|
refresh(tokenSet: TokenSet): Promise<TokenSet>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"oauth-server-agent.d.ts","sourceRoot":"","sources":["../src/oauth-server-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAiC,MAAM,qBAAqB,CAAA;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,EAEL,4BAA4B,EAC5B,gCAAgC,EAChC,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EAElB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EACL,YAAY,EACZ,oBAAoB,EAErB,MAAM,6BAA6B,CAAA;AAIpC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAEnD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAG3C,MAAM,MAAM,QAAQ,GAAG;IACrB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,UAAU,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,YAAY,CAAA;IAEnB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe;IACf,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,MAAM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;;OASG;cACa,YAAY,CAAC,GAAG,EAAE,UAAU;IAmBtC,OAAO,CAAC,QAAQ,SAAS,iBAAiB,EAC9C,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,QAAQ,SAAS,OAAO,GAC7B,iBAAiB,GACjB,QAAQ,SAAS,8BAA8B,GAC7C,4BAA4B,GAC5B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,OAAO,CACR,QAAQ,SAAS,OAAO,GACpB,oBAAoB,GACpB,QAAQ,SAAS,8BAA8B,GAC7C,gBAAgB,GAChB,IAAI,CACX;IA8BK,eAAe,CAAC,QAAQ,EAAE,iBAAiB,GAAG,OAAO,CAAC;QAC1D,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QAChC,OAAO,EAAE,sBAAsB,CAAA;KAChC,CAAC;CA+DH"}
|
package/dist/types.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { OAuthAuthorizationRequestParameters } from '@atproto/oauth-types';
|
2
|
-
import z from 'zod';
|
2
|
+
import { TypeOf, z } from 'zod';
|
3
3
|
import { Simplify } from './util.js';
|
4
4
|
export type AuthorizeOptions = Simplify<Omit<OAuthAuthorizationRequestParameters, 'client_id' | 'response_mode' | 'response_type' | 'login_hint' | 'code_challenge' | 'code_challenge_method'> & {
|
5
5
|
signal?: AbortSignal;
|
6
6
|
}>;
|
7
7
|
export declare const clientMetadataSchema: z.ZodObject<z.objectUtil.extendShape<{
|
8
|
-
redirect_uris: z.ZodArray<z.ZodString, "atleastone">;
|
8
|
+
redirect_uris: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, `${string}:${string}`, string>, `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}`, string>, `http://[::1]${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}`, string>, z.ZodEffects<z.ZodEffects<z.ZodString, `${string}:${string}`, string>, `https://${string}`, string>, z.ZodEffects<z.ZodEffects<z.ZodString, `${string}:${string}`, string>, `${string}.${string}:/${string}`, string>]>, "atleastone">;
|
9
9
|
response_types: z.ZodDefault<z.ZodArray<z.ZodEnum<["code", "token", "none", "code id_token token", "code id_token", "code token", "id_token token", "id_token"]>, "atleastone">>;
|
10
10
|
grant_types: z.ZodDefault<z.ZodArray<z.ZodEnum<["authorization_code", "implicit", "refresh_token", "password", "client_credentials", "urn:ietf:params:oauth:grant-type:jwt-bearer", "urn:ietf:params:oauth:grant-type:saml2-bearer"]>, "atleastone">>;
|
11
11
|
scope: z.ZodOptional<z.ZodString>;
|
@@ -13,7 +13,7 @@ export declare const clientMetadataSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
13
13
|
token_endpoint_auth_signing_alg: z.ZodOptional<z.ZodString>;
|
14
14
|
userinfo_signed_response_alg: z.ZodOptional<z.ZodString>;
|
15
15
|
userinfo_encrypted_response_alg: z.ZodOptional<z.ZodString>;
|
16
|
-
jwks_uri: z.ZodOptional<z.ZodString
|
16
|
+
jwks_uri: z.ZodOptional<z.ZodEffects<z.ZodString, `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}`, string>>;
|
17
17
|
jwks: z.ZodOptional<z.ZodObject<{
|
18
18
|
keys: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
19
19
|
kty: z.ZodString;
|
@@ -1286,10 +1286,10 @@ export declare const clientMetadataSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
1286
1286
|
authorization_encrypted_response_alg: z.ZodOptional<z.ZodString>;
|
1287
1287
|
client_id: z.ZodOptional<z.ZodString>;
|
1288
1288
|
client_name: z.ZodOptional<z.ZodString>;
|
1289
|
-
client_uri: z.ZodOptional<z.ZodString
|
1290
|
-
policy_uri: z.ZodOptional<z.ZodString
|
1291
|
-
tos_uri: z.ZodOptional<z.ZodString
|
1292
|
-
logo_uri: z.ZodOptional<z.ZodString
|
1289
|
+
client_uri: z.ZodOptional<z.ZodEffects<z.ZodString, `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}`, string>>;
|
1290
|
+
policy_uri: z.ZodOptional<z.ZodEffects<z.ZodString, `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}`, string>>;
|
1291
|
+
tos_uri: z.ZodOptional<z.ZodEffects<z.ZodString, `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}`, string>>;
|
1292
|
+
logo_uri: z.ZodOptional<z.ZodEffects<z.ZodString, `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}`, string>>;
|
1293
1293
|
default_max_age: z.ZodOptional<z.ZodNumber>;
|
1294
1294
|
require_auth_time: z.ZodOptional<z.ZodBoolean>;
|
1295
1295
|
contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
@@ -1297,10 +1297,10 @@ export declare const clientMetadataSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
1297
1297
|
dpop_bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
|
1298
1298
|
authorization_details_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
1299
1299
|
}, {
|
1300
|
-
client_id: z.ZodString
|
1300
|
+
client_id: z.ZodUnion<[z.ZodEffects<z.ZodIntersection<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodString, `${string}:${string}`, string>, `https://${string}`, string>>, `https://${string}/${string}`, string>, z.ZodEffects<z.ZodString, "http://localhost" | `http://localhost?${string}` | "http://localhost/" | `http://localhost/?${string}`, string>]>;
|
1301
1301
|
}>, "strip", z.ZodTypeAny, {
|
1302
|
-
client_id: string
|
1303
|
-
redirect_uris: [string
|
1302
|
+
client_id: "http://localhost" | `http://localhost?${string}` | `https://${string}/${string}` | "http://localhost/" | `http://localhost/?${string}`;
|
1303
|
+
redirect_uris: [`http://[::1]${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | `${string}.${string}:/${string}`, ...(`http://[::1]${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | `${string}.${string}:/${string}`)[]];
|
1304
1304
|
response_types: ["code" | "id_token" | "token" | "none" | "code id_token token" | "code id_token" | "code token" | "id_token token", ...("code" | "id_token" | "token" | "none" | "code id_token token" | "code id_token" | "code token" | "id_token token")[]];
|
1305
1305
|
grant_types: ["refresh_token" | "authorization_code" | "implicit" | "password" | "client_credentials" | "urn:ietf:params:oauth:grant-type:jwt-bearer" | "urn:ietf:params:oauth:grant-type:saml2-bearer", ...("refresh_token" | "authorization_code" | "implicit" | "password" | "client_credentials" | "urn:ietf:params:oauth:grant-type:jwt-bearer" | "urn:ietf:params:oauth:grant-type:saml2-bearer")[]];
|
1306
1306
|
scope?: string | undefined;
|
@@ -1308,7 +1308,7 @@ export declare const clientMetadataSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
1308
1308
|
token_endpoint_auth_signing_alg?: string | undefined;
|
1309
1309
|
userinfo_signed_response_alg?: string | undefined;
|
1310
1310
|
userinfo_encrypted_response_alg?: string | undefined;
|
1311
|
-
jwks_uri?: string | undefined;
|
1311
|
+
jwks_uri?: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | undefined;
|
1312
1312
|
jwks?: {
|
1313
1313
|
keys: ({
|
1314
1314
|
kty: "RSA";
|
@@ -1415,10 +1415,10 @@ export declare const clientMetadataSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
1415
1415
|
authorization_encrypted_response_enc?: "A128CBC-HS256" | undefined;
|
1416
1416
|
authorization_encrypted_response_alg?: string | undefined;
|
1417
1417
|
client_name?: string | undefined;
|
1418
|
-
client_uri?: string | undefined;
|
1419
|
-
policy_uri?: string | undefined;
|
1420
|
-
tos_uri?: string | undefined;
|
1421
|
-
logo_uri?: string | undefined;
|
1418
|
+
client_uri?: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | undefined;
|
1419
|
+
policy_uri?: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | undefined;
|
1420
|
+
tos_uri?: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | undefined;
|
1421
|
+
logo_uri?: `http://[::1]${string}` | "http://localhost" | `http://localhost#${string}` | `http://localhost?${string}` | `http://localhost/${string}` | `http://localhost:${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | undefined;
|
1422
1422
|
default_max_age?: number | undefined;
|
1423
1423
|
require_auth_time?: boolean | undefined;
|
1424
1424
|
contacts?: string[] | undefined;
|
@@ -1553,5 +1553,5 @@ export declare const clientMetadataSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
1553
1553
|
dpop_bound_access_tokens?: boolean | undefined;
|
1554
1554
|
authorization_details_types?: string[] | undefined;
|
1555
1555
|
}>;
|
1556
|
-
export type ClientMetadata =
|
1556
|
+
export type ClientMetadata = TypeOf<typeof clientMetadataSchema>;
|
1557
1557
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mCAAmC,EAGpC,MAAM,sBAAsB,CAAA;AAC7B,OAAO,CAAC,MAAM,KAAK,CAAA;AAEnB,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,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(exports, "__esModule", { value: true });
|
3
3
|
exports.clientMetadataSchema = void 0;
|
4
4
|
const oauth_types_1 = require("@atproto/oauth-types");
|
5
|
+
const zod_1 = require("zod");
|
5
6
|
exports.clientMetadataSchema = oauth_types_1.oauthClientMetadataSchema.extend({
|
6
|
-
client_id:
|
7
|
+
client_id: zod_1.z.union([
|
8
|
+
oauth_types_1.oauthClientIdDiscoverableSchema,
|
9
|
+
oauth_types_1.oauthClientIdLoopbackSchema,
|
10
|
+
]),
|
7
11
|
});
|
8
12
|
//# sourceMappingURL=types.js.map
|
package/dist/types.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAAA,sDAK6B;AAC7B,6BAA+B;AAsBlB,QAAA,oBAAoB,GAAG,uCAAyB,CAAC,MAAM,CAAC;IACnE,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC;QACjB,6CAA+B;QAC/B,yCAA2B;KAC5B,CAAC;CACH,CAAC,CAAA"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atproto/oauth-client",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.2",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "OAuth client for ATPROTO PDS. This package serves as common base for environment-specific implementations (NodeJS, Browser, React-Native).",
|
6
6
|
"keywords": [
|
@@ -30,13 +30,13 @@
|
|
30
30
|
"@atproto-labs/did-resolver": "0.1.5",
|
31
31
|
"@atproto-labs/fetch": "0.1.1",
|
32
32
|
"@atproto-labs/handle-resolver": "0.1.4",
|
33
|
-
"@atproto-labs/identity-resolver": "0.1.
|
33
|
+
"@atproto-labs/identity-resolver": "0.1.6",
|
34
34
|
"@atproto-labs/simple-store": "0.1.1",
|
35
35
|
"@atproto-labs/simple-store-memory": "0.1.1",
|
36
36
|
"@atproto/did": "0.1.3",
|
37
37
|
"@atproto/jwk": "0.1.1",
|
38
|
-
"@atproto/oauth-types": "0.2.
|
39
|
-
"@atproto/xrpc": "0.6.
|
38
|
+
"@atproto/oauth-types": "0.2.1",
|
39
|
+
"@atproto/xrpc": "0.6.4"
|
40
40
|
},
|
41
41
|
"devDependencies": {
|
42
42
|
"typescript": "^5.6.3"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { atprotoDidSchema } from '@atproto/did'
|
2
2
|
import { oauthTokenResponseSchema } from '@atproto/oauth-types'
|
3
|
-
import { z } from 'zod'
|
3
|
+
import { z, TypeOf } from 'zod'
|
4
4
|
|
5
5
|
import { includesSpaceSeparatedValue, SpaceSeparatedValue } from './util'
|
6
6
|
|
@@ -19,4 +19,4 @@ export const atprotoTokenResponseSchema = oauthTokenResponseSchema.extend({
|
|
19
19
|
id_token: z.never().optional(),
|
20
20
|
})
|
21
21
|
|
22
|
-
export type AtprotoTokenResponse =
|
22
|
+
export type AtprotoTokenResponse = TypeOf<typeof atprotoTokenResponseSchema>
|
package/src/oauth-client.ts
CHANGED
@@ -316,6 +316,19 @@ export class OAuthClient extends CustomEventTarget<OAuthClientEventMap> {
|
|
316
316
|
scope: options?.scope ?? this.clientMetadata.scope,
|
317
317
|
}
|
318
318
|
|
319
|
+
const authorizationUrl = new URL(metadata.authorization_endpoint)
|
320
|
+
|
321
|
+
// Since the user will be redirected to the authorization_endpoint url using
|
322
|
+
// a browser, we need to make sure that the url is valid.
|
323
|
+
if (
|
324
|
+
authorizationUrl.protocol !== 'https:' &&
|
325
|
+
authorizationUrl.protocol !== 'http:'
|
326
|
+
) {
|
327
|
+
throw new TypeError(
|
328
|
+
`Invalid authorization endpoint protocol: ${authorizationUrl.protocol}`,
|
329
|
+
)
|
330
|
+
}
|
331
|
+
|
319
332
|
if (metadata.pushed_authorization_request_endpoint) {
|
320
333
|
const server = await this.serverFactory.fromMetadata(metadata, dpopKey)
|
321
334
|
const parResponse = await server.request(
|
@@ -323,7 +336,6 @@ export class OAuthClient extends CustomEventTarget<OAuthClientEventMap> {
|
|
323
336
|
parameters,
|
324
337
|
)
|
325
338
|
|
326
|
-
const authorizationUrl = new URL(metadata.authorization_endpoint)
|
327
339
|
authorizationUrl.searchParams.set(
|
328
340
|
'client_id',
|
329
341
|
this.clientMetadata.client_id,
|
@@ -335,7 +347,6 @@ export class OAuthClient extends CustomEventTarget<OAuthClientEventMap> {
|
|
335
347
|
'Server requires pushed authorization requests (PAR) but no PAR endpoint is available',
|
336
348
|
)
|
337
349
|
} else {
|
338
|
-
const authorizationUrl = new URL(metadata.authorization_endpoint)
|
339
350
|
for (const [key, value] of Object.entries(parameters)) {
|
340
351
|
if (value) authorizationUrl.searchParams.set(key, String(value))
|
341
352
|
}
|
@@ -1,3 +1,5 @@
|
|
1
|
+
import { ZodError } from 'zod'
|
2
|
+
|
1
3
|
export class OAuthResolverError extends Error {
|
2
4
|
constructor(message: string, options?: { cause?: unknown }) {
|
3
5
|
super(message, options)
|
@@ -5,7 +7,14 @@ export class OAuthResolverError extends Error {
|
|
5
7
|
|
6
8
|
static from(cause: unknown, message?: string): OAuthResolverError {
|
7
9
|
if (cause instanceof OAuthResolverError) return cause
|
8
|
-
|
10
|
+
const validationReason =
|
11
|
+
cause instanceof ZodError
|
12
|
+
? `${cause.errors[0].path} ${cause.errors[0].message}`
|
13
|
+
: null
|
14
|
+
const fullMessage =
|
15
|
+
(message ?? `Unable to resolve identity`) +
|
16
|
+
(validationReason ? ` (${validationReason})` : '')
|
17
|
+
return new OAuthResolverError(fullMessage, {
|
9
18
|
cause,
|
10
19
|
})
|
11
20
|
}
|
package/src/types.ts
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
import {
|
2
|
+
oauthClientIdLoopbackSchema,
|
2
3
|
OAuthAuthorizationRequestParameters,
|
3
|
-
|
4
|
+
oauthClientIdDiscoverableSchema,
|
4
5
|
oauthClientMetadataSchema,
|
5
6
|
} from '@atproto/oauth-types'
|
6
|
-
import z from 'zod'
|
7
|
+
import { TypeOf, z } from 'zod'
|
7
8
|
|
8
9
|
import { Simplify } from './util.js'
|
9
10
|
|
@@ -26,7 +27,10 @@ export type AuthorizeOptions = Simplify<
|
|
26
27
|
>
|
27
28
|
|
28
29
|
export const clientMetadataSchema = oauthClientMetadataSchema.extend({
|
29
|
-
client_id:
|
30
|
+
client_id: z.union([
|
31
|
+
oauthClientIdDiscoverableSchema,
|
32
|
+
oauthClientIdLoopbackSchema,
|
33
|
+
]),
|
30
34
|
})
|
31
35
|
|
32
|
-
export type ClientMetadata =
|
36
|
+
export type ClientMetadata = TypeOf<typeof clientMetadataSchema>
|