@atproto/oauth-provider 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +17 -0
- package/dist/assets/app/bundle-manifest.json +2 -2
- package/dist/assets/app/main.js +3 -3
- package/dist/assets/app/main.js.map +1 -1
- package/dist/client/client-manager.d.ts.map +1 -1
- package/dist/client/client-manager.js +31 -40
- package/dist/client/client-manager.js.map +1 -1
- package/dist/client/client.d.ts +2 -3
- package/dist/client/client.d.ts.map +1 -1
- package/dist/client/client.js +5 -9
- package/dist/client/client.js.map +1 -1
- package/dist/dpop/dpop-manager.d.ts +0 -1
- package/dist/dpop/dpop-manager.d.ts.map +1 -1
- package/dist/dpop/dpop-manager.js +1 -4
- package/dist/dpop/dpop-manager.js.map +1 -1
- package/dist/lib/http/parser.d.ts +13 -7
- package/dist/lib/http/parser.d.ts.map +1 -1
- package/dist/lib/http/parser.js +29 -9
- package/dist/lib/http/parser.js.map +1 -1
- package/dist/lib/http/request.d.ts +5 -5
- package/dist/lib/http/stream.d.ts.map +1 -1
- package/dist/lib/http/stream.js +3 -2
- package/dist/lib/http/stream.js.map +1 -1
- package/dist/metadata/build-metadata.d.ts.map +1 -1
- package/dist/metadata/build-metadata.js +0 -14
- package/dist/metadata/build-metadata.js.map +1 -1
- package/dist/oauth-provider.d.ts +2 -2
- package/dist/oauth-provider.d.ts.map +1 -1
- package/dist/oauth-provider.js +7 -5
- package/dist/oauth-provider.js.map +1 -1
- package/dist/request/types.d.ts +4 -4
- package/dist/signer/signed-token-payload.d.ts +3 -3
- package/dist/signer/signer.d.ts +1 -1
- package/dist/token/token-claims.d.ts +3 -3
- package/package.json +3 -2
- package/src/client/client-manager.ts +46 -60
- package/src/client/client.ts +4 -13
- package/src/dpop/dpop-manager.ts +1 -6
- package/src/lib/http/parser.ts +37 -13
- package/src/lib/http/stream.ts +5 -2
- package/src/metadata/build-metadata.ts +0 -14
- package/src/oauth-provider.ts +6 -18
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"oauth-provider.d.ts","sourceRoot":"","sources":["../src/oauth-provider.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAExD,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAmB,MAAM,cAAc,CAAA;AACvE,OAAO,EACL,WAAW,EAEX,oCAAoC,EACpC,gCAAgC,EAChC,yBAAyB,EACzB,mBAAmB,EACnB,
|
1
|
+
{"version":3,"file":"oauth-provider.d.ts","sourceRoot":"","sources":["../src/oauth-provider.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAExD,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAmB,MAAM,cAAc,CAAA;AACvE,OAAO,EACL,WAAW,EAEX,oCAAoC,EACpC,gCAAgC,EAChC,yBAAyB,EACzB,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EAGf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAIlD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,EACL,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EAGlB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAE9C,OAAO,EAAE,UAAU,EAAqB,MAAM,yBAAyB,CAAA;AACvE,OAAO,EAAE,QAAQ,EAAkB,MAAM,uBAAuB,CAAA;AAChE,OAAO,EACL,aAAa,EACb,sBAAsB,EACvB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,WAAW,EAAiB,MAAM,0BAA0B,CAAA;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAE3C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAEhD,OAAO,EAAE,WAAW,EAAiB,MAAM,0BA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B,EACvB,OAAO,EAAE,IAAI,GAAG,MAAM,GACrB,OAAO,CAAC,kBAAkB,CAAC;IAgCxB,iBAAiB,CACrB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,mBAAmB,EAC1B,OAAO,EAAE,IAAI,GAAG,MAAM,GACrB,OAAO,CAAC,kBAAkB,CAAC;IAI9B;;OAEG;cACa,MAAM,CAAC,KAAK,EAAE,MAAM;IAMpC;;OAEG;cACa,UAAU,CACxB,KAAK,EAAE,UAAU,GAChB,OAAO,CAAC,qBAAqB,CAAC;IAkDjC;;OAEG;cACa,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC;cAWzD,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC;cAW3C,iBAAiB,CACxC,SAAS,EAAE,cAAc,EACzB,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,aAAa,CAAC,EAAE,wBAAwB;IAgB1C;;;OAGG;IACI,WAAW,CAChB,CAAC,GAAG,IAAI,EACR,GAAG,SAAS,eAAe,GAAG,eAAe,EAC7C,GAAG,SAAS,cAAc,GAAG,cAAc,EAC3C,OAAO,CAAC,EAAE,aAAa,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC;IAKnD,WAAW,CAChB,CAAC,GAAG,IAAI,EACR,GAAG,SAAS,eAAe,GAAG,eAAe,EAC7C,GAAG,SAAS,cAAc,GAAG,cAAc,EAC3C,EACA,OAGa,GACd,GAAE,aAAa,CAAC,GAAG,EAAE,GAAG,CAAM;CA+bhC"}
|
package/dist/oauth-provider.js
CHANGED
@@ -102,8 +102,10 @@ class OAuthProvider extends oauth_verifier_js_1.OAuthVerifier {
|
|
102
102
|
return authAge >= this.authenticationMaxAge;
|
103
103
|
}
|
104
104
|
}
|
105
|
-
async authenticateClient(client,
|
106
|
-
const { clientAuth, nonce } = await client.verifyCredentials(credentials,
|
105
|
+
async authenticateClient(client, credentials) {
|
106
|
+
const { clientAuth, nonce } = await client.verifyCredentials(credentials, {
|
107
|
+
audience: this.issuer,
|
108
|
+
});
|
107
109
|
if (nonce != null) {
|
108
110
|
const unique = await this.replayManager.uniqueAuth(nonce, client.id);
|
109
111
|
if (!unique) {
|
@@ -145,7 +147,7 @@ class OAuthProvider extends oauth_verifier_js_1.OAuthVerifier {
|
|
145
147
|
async pushedAuthorizationRequest(input, dpopJkt) {
|
146
148
|
try {
|
147
149
|
const client = await this.clientManager.getClient(input.client_id);
|
148
|
-
const clientAuth = await this.authenticateClient(client,
|
150
|
+
const clientAuth = await this.authenticateClient(client, input);
|
149
151
|
const { payload: parameters } = 'request' in input // Handle JAR
|
150
152
|
? await this.decodeJAR(client, input)
|
151
153
|
: { payload: input };
|
@@ -335,7 +337,7 @@ class OAuthProvider extends oauth_verifier_js_1.OAuthVerifier {
|
|
335
337
|
}
|
336
338
|
async token(input, dpopJkt) {
|
337
339
|
const client = await this.clientManager.getClient(input.client_id);
|
338
|
-
const clientAuth = await this.authenticateClient(client,
|
340
|
+
const clientAuth = await this.authenticateClient(client, input);
|
339
341
|
if (!client.metadata.grant_types.includes(input.grant_type)) {
|
340
342
|
throw new invalid_grant_error_js_1.InvalidGrantError(`"${input.grant_type}" grant type is not allowed for this client`);
|
341
343
|
}
|
@@ -380,7 +382,7 @@ class OAuthProvider extends oauth_verifier_js_1.OAuthVerifier {
|
|
380
382
|
*/
|
381
383
|
async introspect(input) {
|
382
384
|
const client = await this.clientManager.getClient(input.client_id);
|
383
|
-
const clientAuth = await this.authenticateClient(client,
|
385
|
+
const clientAuth = await this.authenticateClient(client, input);
|
384
386
|
// RFC7662 states the following:
|
385
387
|
//
|
386
388
|
// > To prevent token scanning attacks, the endpoint MUST also require some
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"oauth-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W,EAAE,KAAK,CAAC,SAAS,CAAC;iBAC/B;aACF,CAAC,CAAA;YACF,IAAA,4BAAiB,EACf,GAAG,EACH,GAAG,EACH,KAAK,CAAC,UAAU,EAChB,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,EAC7B,IAAI,CACL,CAAA;YAED,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,aAAa,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;YAEvD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,aAAa,CACrC,QAAQ,EACR,KAAK,CAAC,WAAW,EACjB,KAAK,CAAC,SAAS,CAChB,CAAA;YAED,OAAO,MAAM,IAAA,kDAAqB,EAAC,GAAG,EAAE,IAAI,CAAC,CAAA;QAC/C,CAAC,CAAC,CACH,CAAA;QAED,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AA3pCD,sCA2pCC"}
|
package/dist/request/types.d.ts
CHANGED
@@ -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" | "
|
97
|
+
response_type: "none" | "code" | "id_token" | "token" | "code id_token token" | "code id_token" | "code token" | "id_token token";
|
98
98
|
scope?: string | undefined;
|
99
99
|
redirect_uri?: string | undefined;
|
100
100
|
nonce?: string | 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" | "
|
127
|
+
response_type: "none" | "code" | "id_token" | "token" | "code id_token token" | "code id_token" | "code token" | "id_token token";
|
128
128
|
scope?: string | undefined;
|
129
129
|
redirect_uri?: string | undefined;
|
130
130
|
nonce?: string | undefined;
|
@@ -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" | "
|
250
|
+
response_type: "none" | "code" | "id_token" | "token" | "code id_token token" | "code id_token" | "code token" | "id_token token";
|
251
251
|
scope?: string | undefined;
|
252
252
|
redirect_uri?: string | undefined;
|
253
253
|
nonce?: string | 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" | "
|
280
|
+
response_type: "none" | "code" | "id_token" | "token" | "code id_token token" | "code id_token" | "code token" | "id_token token";
|
281
281
|
scope?: string | undefined;
|
282
282
|
redirect_uri?: string | undefined;
|
283
283
|
nonce?: string | undefined;
|
@@ -2,19 +2,19 @@ import z from 'zod';
|
|
2
2
|
import { Simplify } from '../lib/util/type.js';
|
3
3
|
export declare const signedTokenPayloadSchema: z.ZodIntersection<z.ZodObject<{
|
4
4
|
iat: z.ZodNumber;
|
5
|
-
exp: z.ZodNumber;
|
6
5
|
iss: z.ZodString;
|
7
6
|
aud: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "atleastone">]>;
|
7
|
+
exp: z.ZodNumber;
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
9
9
|
iat: number;
|
10
|
-
exp: number;
|
11
10
|
iss: string;
|
12
11
|
aud: string | [string, ...string[]];
|
12
|
+
exp: number;
|
13
13
|
}, {
|
14
14
|
iat: number;
|
15
|
-
exp: number;
|
16
15
|
iss: string;
|
17
16
|
aud: string | [string, ...string[]];
|
17
|
+
exp: number;
|
18
18
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
19
19
|
nonce: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
20
20
|
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
package/dist/signer/signer.d.ts
CHANGED
@@ -22,9 +22,9 @@ export declare class Signer {
|
|
22
22
|
}): Promise<SignedJwt>;
|
23
23
|
verifyAccessToken(token: SignedJwt): Promise<import("@atproto/jwk").VerifyResult<{
|
24
24
|
iat: number;
|
25
|
-
exp: number;
|
26
25
|
iss: string;
|
27
26
|
aud: string | [string, ...string[]];
|
27
|
+
exp: number;
|
28
28
|
jti: `tok-${string}`;
|
29
29
|
sub: string;
|
30
30
|
client_id: string;
|
@@ -2,16 +2,16 @@ import z from 'zod';
|
|
2
2
|
import { Simplify } from '../lib/util/type.js';
|
3
3
|
export declare const tokenClaimsSchema: z.ZodIntersection<z.ZodObject<{
|
4
4
|
iat: z.ZodNumber;
|
5
|
-
exp: z.ZodNumber;
|
6
5
|
aud: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "atleastone">]>;
|
6
|
+
exp: z.ZodNumber;
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
8
8
|
iat: number;
|
9
|
-
exp: number;
|
10
9
|
aud: string | [string, ...string[]];
|
10
|
+
exp: number;
|
11
11
|
}, {
|
12
12
|
iat: number;
|
13
|
-
exp: number;
|
14
13
|
aud: string | [string, ...string[]];
|
14
|
+
exp: number;
|
15
15
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
16
16
|
nonce: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
17
17
|
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atproto/oauth-provider",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.3",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Generic OAuth2 and OpenID Connect provider for Node.js. Currently only supports features needed for Atproto.",
|
6
6
|
"keywords": [
|
@@ -30,6 +30,7 @@
|
|
30
30
|
"dependencies": {
|
31
31
|
"@hapi/accept": "^6.0.3",
|
32
32
|
"@hapi/bourne": "^3.0.0",
|
33
|
+
"@hapi/content": "^6.0.0",
|
33
34
|
"cookie": "^0.6.0",
|
34
35
|
"http-errors": "^2.0.0",
|
35
36
|
"ioredis": "^5.3.2",
|
@@ -45,7 +46,7 @@
|
|
45
46
|
"@atproto-labs/simple-store-memory": "0.1.1",
|
46
47
|
"@atproto/jwk": "0.1.1",
|
47
48
|
"@atproto/jwk-jose": "0.1.2",
|
48
|
-
"@atproto/oauth-types": "0.1.
|
49
|
+
"@atproto/oauth-types": "0.1.3"
|
49
50
|
},
|
50
51
|
"devDependencies": {
|
51
52
|
"@rollup/plugin-commonjs": "^25.0.7",
|
@@ -17,7 +17,6 @@ import {
|
|
17
17
|
isLoopbackUrl,
|
18
18
|
isOAuthClientIdDiscoverable,
|
19
19
|
isOAuthClientIdLoopback,
|
20
|
-
OAUTH_AUTHENTICATED_ENDPOINT_NAMES,
|
21
20
|
OAuthClientIdDiscoverable,
|
22
21
|
OAuthClientIdLoopback,
|
23
22
|
OAuthClientMetadata,
|
@@ -271,49 +270,43 @@ export class ClientManager {
|
|
271
270
|
)
|
272
271
|
}
|
273
272
|
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
for (const endpoint of OAUTH_AUTHENTICATED_ENDPOINT_NAMES) {
|
281
|
-
const method =
|
282
|
-
metadata[`${endpoint}_endpoint_auth_method`] ||
|
283
|
-
metadata[`token_endpoint_auth_method`]
|
284
|
-
|
285
|
-
switch (method) {
|
286
|
-
case 'none':
|
287
|
-
if (metadata.token_endpoint_auth_signing_alg) {
|
288
|
-
throw new InvalidClientMetadataError(
|
289
|
-
`${endpoint}_endpoint_auth_method "none" must not have ${endpoint}_endpoint_auth_signing_alg`,
|
290
|
-
)
|
291
|
-
}
|
292
|
-
break
|
273
|
+
const method = metadata[`token_endpoint_auth_method`]
|
274
|
+
switch (method) {
|
275
|
+
case undefined:
|
276
|
+
throw new InvalidClientMetadataError(
|
277
|
+
'Missing token_endpoint_auth_method client metadata',
|
278
|
+
)
|
293
279
|
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
throw new InvalidClientMetadataError(
|
302
|
-
`private_key_jwt auth method requires at least one key in jwks`,
|
303
|
-
)
|
304
|
-
}
|
305
|
-
if (!metadata.token_endpoint_auth_signing_alg) {
|
306
|
-
throw new InvalidClientMetadataError(
|
307
|
-
`Missing token_endpoint_auth_signing_alg client metadata`,
|
308
|
-
)
|
309
|
-
}
|
310
|
-
break
|
280
|
+
case 'none':
|
281
|
+
if (metadata.token_endpoint_auth_signing_alg) {
|
282
|
+
throw new InvalidClientMetadataError(
|
283
|
+
`token_endpoint_auth_method "none" must not have token_endpoint_auth_signing_alg`,
|
284
|
+
)
|
285
|
+
}
|
286
|
+
break
|
311
287
|
|
312
|
-
|
288
|
+
case 'private_key_jwt':
|
289
|
+
if (!metadata.jwks && !metadata.jwks_uri) {
|
313
290
|
throw new InvalidClientMetadataError(
|
314
|
-
|
291
|
+
`private_key_jwt auth method requires jwks or jwks_uri`,
|
315
292
|
)
|
316
|
-
|
293
|
+
}
|
294
|
+
if (metadata.jwks?.keys.length === 0) {
|
295
|
+
throw new InvalidClientMetadataError(
|
296
|
+
`private_key_jwt auth method requires at least one key in jwks`,
|
297
|
+
)
|
298
|
+
}
|
299
|
+
if (!metadata.token_endpoint_auth_signing_alg) {
|
300
|
+
throw new InvalidClientMetadataError(
|
301
|
+
`Missing token_endpoint_auth_signing_alg client metadata`,
|
302
|
+
)
|
303
|
+
}
|
304
|
+
break
|
305
|
+
|
306
|
+
default:
|
307
|
+
throw new InvalidClientMetadataError(
|
308
|
+
`${method} is not a supported "token_endpoint_auth_method". Use "private_key_jwt" or "none".`,
|
309
|
+
)
|
317
310
|
}
|
318
311
|
|
319
312
|
if (metadata.authorization_encrypted_response_enc) {
|
@@ -693,16 +686,11 @@ export class ClientManager {
|
|
693
686
|
)
|
694
687
|
}
|
695
688
|
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
if (method !== 'none') {
|
702
|
-
throw new InvalidClientMetadataError(
|
703
|
-
`Loopback clients are not allowed to use "${endpoint}_endpoint_auth_method" ${method}`,
|
704
|
-
)
|
705
|
-
}
|
689
|
+
const method = metadata[`token_endpoint_auth_method`]
|
690
|
+
if (method !== 'none') {
|
691
|
+
throw new InvalidClientMetadataError(
|
692
|
+
`Loopback clients are not allowed to use "token_endpoint_auth_method" ${method}`,
|
693
|
+
)
|
706
694
|
}
|
707
695
|
|
708
696
|
for (const redirectUri of metadata.redirect_uris) {
|
@@ -766,16 +754,14 @@ export class ClientManager {
|
|
766
754
|
}
|
767
755
|
}
|
768
756
|
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
)
|
778
|
-
}
|
757
|
+
const method = metadata[`token_endpoint_auth_method`]
|
758
|
+
switch (method) {
|
759
|
+
case 'client_secret_post':
|
760
|
+
case 'client_secret_basic':
|
761
|
+
case 'client_secret_jwt':
|
762
|
+
throw new InvalidClientMetadataError(
|
763
|
+
`Client authentication method "${method}" is not allowed for discoverable clients`,
|
764
|
+
)
|
779
765
|
}
|
780
766
|
|
781
767
|
for (const redirectUri of metadata.redirect_uris) {
|
package/src/client/client.ts
CHANGED
@@ -3,7 +3,6 @@ import {
|
|
3
3
|
CLIENT_ASSERTION_TYPE_JWT_BEARER,
|
4
4
|
OAuthClientIdentification,
|
5
5
|
OAuthClientMetadata,
|
6
|
-
OAuthEndpointName,
|
7
6
|
} from '@atproto/oauth-types'
|
8
7
|
import {
|
9
8
|
UnsecuredJWT,
|
@@ -101,13 +100,6 @@ export class Client {
|
|
101
100
|
})
|
102
101
|
}
|
103
102
|
|
104
|
-
protected getAuthMethod(endpoint: OAuthEndpointName) {
|
105
|
-
return (
|
106
|
-
this.metadata[`${endpoint}_endpoint_auth_method`] ||
|
107
|
-
this.metadata[`token_endpoint_auth_method`]
|
108
|
-
)
|
109
|
-
}
|
110
|
-
|
111
103
|
/**
|
112
104
|
* @see {@link https://datatracker.ietf.org/doc/html/rfc6749#section-2.3.1}
|
113
105
|
* @see {@link https://datatracker.ietf.org/doc/html/draft-ietf-oauth-jwt-bearer-11#section-3}
|
@@ -115,7 +107,6 @@ export class Client {
|
|
115
107
|
*/
|
116
108
|
public async verifyCredentials(
|
117
109
|
input: OAuthClientIdentification,
|
118
|
-
endpoint: OAuthEndpointName,
|
119
110
|
checks: {
|
120
111
|
audience: string
|
121
112
|
},
|
@@ -124,7 +115,7 @@ export class Client {
|
|
124
115
|
// for replay protection
|
125
116
|
nonce?: string
|
126
117
|
}> {
|
127
|
-
const method = this.
|
118
|
+
const method = this.metadata[`token_endpoint_auth_method`]
|
128
119
|
|
129
120
|
if (method === 'none') {
|
130
121
|
const clientAuth: ClientAuth = { method: 'none' }
|
@@ -192,7 +183,7 @@ export class Client {
|
|
192
183
|
}
|
193
184
|
|
194
185
|
throw new InvalidClientMetadataError(
|
195
|
-
`Unsupported
|
186
|
+
`Unsupported token_endpoint_auth_method "${method}"`,
|
196
187
|
)
|
197
188
|
}
|
198
189
|
|
@@ -204,11 +195,11 @@ export class Client {
|
|
204
195
|
*/
|
205
196
|
public async validateClientAuth(clientAuth: ClientAuth): Promise<boolean> {
|
206
197
|
if (clientAuth.method === 'none') {
|
207
|
-
return this.
|
198
|
+
return this.metadata[`token_endpoint_auth_method`] === 'none'
|
208
199
|
}
|
209
200
|
|
210
201
|
if (clientAuth.method === CLIENT_ASSERTION_TYPE_JWT_BEARER) {
|
211
|
-
if (this.
|
202
|
+
if (this.metadata[`token_endpoint_auth_method`] !== 'private_key_jwt') {
|
212
203
|
return false
|
213
204
|
}
|
214
205
|
try {
|
package/src/dpop/dpop-manager.ts
CHANGED
@@ -52,13 +52,12 @@ export class DpopManager {
|
|
52
52
|
|
53
53
|
const { protectedHeader, payload } = await jwtVerify<{
|
54
54
|
iat: number
|
55
|
-
exp: number
|
56
55
|
jti: string
|
57
56
|
}>(proof, EmbeddedJWK, {
|
58
57
|
typ: 'dpop+jwt',
|
59
58
|
maxTokenAge: 10,
|
60
59
|
clockTolerance: DPOP_NONCE_MAX_AGE / 1e3,
|
61
|
-
requiredClaims: ['iat', '
|
60
|
+
requiredClaims: ['iat', 'jti'],
|
62
61
|
}).catch((err) => {
|
63
62
|
const message =
|
64
63
|
err instanceof JOSEError
|
@@ -71,10 +70,6 @@ export class DpopManager {
|
|
71
70
|
throw new InvalidDpopProofError('Invalid or missing jti property')
|
72
71
|
}
|
73
72
|
|
74
|
-
if (payload.exp - payload.iat > DPOP_NONCE_MAX_AGE / 3 / 1e3) {
|
75
|
-
throw new InvalidDpopProofError('DPoP proof validity too long')
|
76
|
-
}
|
77
|
-
|
78
73
|
// Note rfc9110#section-9.1 states that the method name is case-sensitive
|
79
74
|
if (!htm || htm !== payload['htm']) {
|
80
75
|
throw new InvalidDpopProofError('DPoP htm mismatch')
|
package/src/lib/http/parser.ts
CHANGED
@@ -1,13 +1,33 @@
|
|
1
1
|
import { parse as parseJson } from '@hapi/bourne'
|
2
|
+
import { type as hapiContentType } from '@hapi/content'
|
2
3
|
import createHttpError from 'http-errors'
|
3
4
|
|
4
5
|
export type JsonScalar = string | number | boolean | null
|
5
6
|
export type Json = JsonScalar | Json[] | { [_ in string]?: Json }
|
6
7
|
|
8
|
+
export const parseContentType = (type: string): ContentType => {
|
9
|
+
try {
|
10
|
+
return hapiContentType(type)
|
11
|
+
} catch (err) {
|
12
|
+
// De-boomify the error
|
13
|
+
if (err?.['isBoom']) {
|
14
|
+
throw createHttpError(err['output']['statusCode'], err['message'])
|
15
|
+
}
|
16
|
+
|
17
|
+
throw err
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
export type ContentType = {
|
22
|
+
mime: string
|
23
|
+
charset?: string
|
24
|
+
boundary?: string
|
25
|
+
}
|
26
|
+
|
7
27
|
export type Parser<T extends string = string, R = unknown> = {
|
8
28
|
readonly name: string
|
9
|
-
readonly test: (
|
10
|
-
readonly parse: (buffer: Buffer) => R
|
29
|
+
readonly test: (mime: string) => mime is T
|
30
|
+
readonly parse: (buffer: Buffer, type: ContentType) => R
|
11
31
|
}
|
12
32
|
|
13
33
|
export type ParserName<P extends Parser> = P extends { readonly name: infer N }
|
@@ -22,12 +42,13 @@ export type ParserForType<P extends Parser, T> =
|
|
22
42
|
export const parsers = [
|
23
43
|
{
|
24
44
|
name: 'json',
|
25
|
-
test: (
|
26
|
-
|
27
|
-
): type is `application/json` | `application/${string}+json` => {
|
28
|
-
return /^application\/(?:.+\+)?json$/.test(type)
|
45
|
+
test: (mime): mime is `application/json` | `application/${string}+json` => {
|
46
|
+
return /^application\/(?:.+\+)?json$/.test(mime)
|
29
47
|
},
|
30
|
-
parse: (buffer
|
48
|
+
parse: (buffer, { charset }): Json => {
|
49
|
+
if (charset != null && !/^utf-?8$/i.test(charset)) {
|
50
|
+
throw createHttpError(415, 'Unsupported charset')
|
51
|
+
}
|
31
52
|
try {
|
32
53
|
return parseJson(buffer.toString())
|
33
54
|
} catch (err) {
|
@@ -37,10 +58,13 @@ export const parsers = [
|
|
37
58
|
},
|
38
59
|
{
|
39
60
|
name: 'urlencoded',
|
40
|
-
test: (
|
41
|
-
return
|
61
|
+
test: (mime): mime is 'application/x-www-form-urlencoded' => {
|
62
|
+
return mime === 'application/x-www-form-urlencoded'
|
42
63
|
},
|
43
|
-
parse: (buffer
|
64
|
+
parse: (buffer, { charset }): Partial<Record<string, string>> => {
|
65
|
+
if (charset != null && !/^utf-?8$/i.test(charset)) {
|
66
|
+
throw createHttpError(415, 'Unsupported charset')
|
67
|
+
}
|
44
68
|
try {
|
45
69
|
if (!buffer.length) return {}
|
46
70
|
return Object.fromEntries(new URLSearchParams(buffer.toString()))
|
@@ -51,10 +75,10 @@ export const parsers = [
|
|
51
75
|
},
|
52
76
|
{
|
53
77
|
name: 'bytes',
|
54
|
-
test: (
|
55
|
-
return
|
78
|
+
test: (mime): mime is 'application/octet-stream' => {
|
79
|
+
return mime === 'application/octet-stream'
|
56
80
|
},
|
57
|
-
parse: (buffer
|
81
|
+
parse: (buffer): Buffer => buffer,
|
58
82
|
},
|
59
83
|
] as const satisfies Parser[]
|
60
84
|
|