@atproto/oauth-provider 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -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.d.ts +2 -2
- package/dist/client/client.d.ts.map +1 -1
- package/dist/client/client.js.map +1 -1
- package/dist/oauth-verifier.d.ts +2 -2
- package/dist/oauth-verifier.d.ts.map +1 -1
- package/dist/oauth-verifier.js.map +1 -1
- package/dist/request/request-uri.d.ts.map +1 -1
- package/dist/request/request-uri.js +0 -1
- package/dist/request/request-uri.js.map +1 -1
- 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 +2 -2
- package/src/client/client.ts +2 -1
- package/src/oauth-verifier.ts +2 -1
- package/src/request/request-uri.ts +0 -1
package/dist/client/client.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Jwks } from '@atproto/jwk';
|
2
|
-
import { OAuthAuthorizationRequestParameters, OAuthClientCredentials, OAuthClientMetadata } from '@atproto/oauth-types';
|
2
|
+
import { OAuthAuthorizationRequestParameters, OAuthClientCredentials, OAuthClientMetadata, OAuthRedirectUri } from '@atproto/oauth-types';
|
3
3
|
import { type JWTPayload, type JWTVerifyOptions, type JWTVerifyResult, type KeyLike, type ResolvedKey, type UnsecuredResult } from 'jose';
|
4
4
|
import { ClientAuth } from './client-auth.js';
|
5
5
|
import { ClientId } from './client-id.js';
|
@@ -40,6 +40,6 @@ export declare class Client {
|
|
40
40
|
* Validates the request parameters against the client metadata.
|
41
41
|
*/
|
42
42
|
validateRequest(parameters: Readonly<OAuthAuthorizationRequestParameters>): Readonly<OAuthAuthorizationRequestParameters>;
|
43
|
-
get defaultRedirectUri():
|
43
|
+
get defaultRedirectUri(): OAuthRedirectUri | undefined;
|
44
44
|
}
|
45
45
|
//# sourceMappingURL=client.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAEL,mCAAmC,EACnC,sBAAsB,EACtB,mBAAmB,
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAEL,mCAAmC,EACnC,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAML,KAAK,UAAU,EAEf,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,eAAe,EACrB,MAAM,MAAM,CAAA;AAUb,OAAO,EAAE,UAAU,EAAqB,MAAM,kBAAkB,CAAA;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAI7C,qBAAa,MAAM;aASC,EAAE,EAAE,QAAQ;aACZ,QAAQ,EAAE,mBAAmB;aAC7B,IAAI,EAAE,SAAS,GAAG,IAAI;aACtB,IAAI,EAAE,UAAU;IAXlC;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,sBAAsB,uCAAuC;IAE7E,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiB;gBAGzB,EAAE,EAAE,QAAQ,EACZ,QAAQ,EAAE,mBAAmB,EAC7B,IAAI,EAAE,SAAS,GAAG,IAAoB,EACtC,IAAI,EAAE,UAAU;IASrB,mBAAmB,CAAC,GAAG,EAAE,MAAM;cA8B5B,kBAAkB,CAAC,WAAW,GAAG,UAAU,EACzD,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GACzC,OAAO,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;cAOxB,SAAS,CAAC,WAAW,GAAG,UAAU,EAChD,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GACzC,OAAO,CAAC,eAAe,CAAC,WAAW,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;IAO/D;;;;OAIG;IACU,iBAAiB,CAC5B,KAAK,EAAE,sBAAsB,EAC7B,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAA;KACjB,GACA,OAAO,CAAC;QACT,UAAU,EAAE,UAAU,CAAA;QAEtB,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,CAAC;IAsEF;;;;;OAKG;IACU,kBAAkB,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC;IA6BzE;;OAEG;IACI,eAAe,CACpB,UAAU,EAAE,QAAQ,CAAC,mCAAmC,CAAC,GACxD,QAAQ,CAAC,mCAAmC,CAAC;IA8FhD,IAAI,kBAAkB,IAAI,gBAAgB,GAAG,SAAS,CAGrD;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client/client.ts"],"names":[],"mappings":";;;AACA,
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client/client.ts"],"names":[],"mappings":";;;AACA,sDAM6B;AAC7B,+BAaa;AAEb,kDAAuE;AACvE,6GAAmG;AACnG,+EAAsE;AACtE,iGAAuF;AACvF,uFAA8E;AAC9E,iFAAwE;AACxE,6EAAoE;AACpE,iEAAgE;AAChE,qDAAgE;AAIhE,MAAM,EAAE,SAAS,EAAE,GAAG,aAAM,CAAA;AAE5B,MAAa,MAAM;IASC;IACA;IACA;IACA;IAXlB;;OAEG;IACH,MAAM,CAAU,sBAAsB,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAU,CAAA;IAE5D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ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Key, Keyset } from '@atproto/jwk';
|
2
|
-
import { OAuthAccessToken, OAuthTokenType } from '@atproto/oauth-types';
|
2
|
+
import { OAuthAccessToken, OAuthIssuerIdentifier, OAuthTokenType } from '@atproto/oauth-types';
|
3
3
|
import type { Redis, RedisOptions } from 'ioredis';
|
4
4
|
import { AccessTokenType } from './access-token/access-token-type.js';
|
5
5
|
import { DpopManager, DpopManagerOptions } from './dpop/dpop-manager.js';
|
@@ -45,7 +45,7 @@ export type OAuthVerifierOptions = Override<DpopManagerOptions, {
|
|
45
45
|
}>;
|
46
46
|
export { AccessTokenType, DpopNonce, Keyset, type ReplayStore, type VerifyTokenClaimsOptions, };
|
47
47
|
export declare class OAuthVerifier {
|
48
|
-
readonly issuer:
|
48
|
+
readonly issuer: OAuthIssuerIdentifier;
|
49
49
|
readonly keyset: Keyset;
|
50
50
|
protected readonly accessTokenType: AccessTokenType;
|
51
51
|
protected readonly dpopManager: DpopManager;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"oauth-verifier.d.ts","sourceRoot":"","sources":["../src/oauth-verifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,EAAe,MAAM,cAAc,CAAA;AACvD,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAElD,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AACrE,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAMhD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAG1D,OAAO,EAAE,WAAW,EAAE,MAAM,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AAG,EACjB,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAgBzB,SAAS,CAAC,sBAAsB,CAC9B,SAAS,EAAE,cAAc,EACzB,eAAe,EAAE,eAAe;cAUlB,iBAAiB,CAC/B,SAAS,EAAE,cAAc,EACzB,KAAK,EAAE,gBAAgB,EACvB,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,aAAa,CAAC,EAAE,wBAAwB,GACvC,OAAO,CAAC,uBAAuB,CAAC;IAuBtB,mBAAmB,CAC9B,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,GAAG,EACR,OAAO,EAAE;QACP,aAAa,CAAC,EAAE,MAAM,CAAA;QACtB,IAAI,CAAC,EAAE,OAAO,CAAA;KACf,EACD,aAAa,CAAC,EAAE,wBAAwB,GACvC,OAAO,CAAC,uBAAuB,CAAC;CA2BpC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"oauth-verifier.js","sourceRoot":"","sources":["../src/oauth-verifier.ts"],"names":[],"mappings":";;;AAAA,sCAAuD;
|
1
|
+
{"version":3,"file":"oauth-verifier.js","sourceRoot":"","sources":["../src/oauth-verifier.ts"],"names":[],"mappings":";;;AAAA,sCAAuD;AA0ErD,uFA1EY,YAAM,OA0EZ;AAzER,sDAK6B;AAG7B,8EAAqE;AA+DnE,gGA/DO,sCAAe,OA+DP;AA9DjB,4DAAwE;AACxE,wDAAgD;AA8D9C,0FA9DO,yBAAS,OA8DP;AA7DX,sFAA4E;AAC5E,4EAAmE;AACnE,8EAAoE;AACpE,kFAAyE;AACzE,gFAA6E;AAE7E,kEAA0D;AAC1D,4EAAmE;AACnE,0EAAiE;AAEjE,kDAA2C;AAC3C,2EAIuC;AAoDvC,MAAa,aAAa;IACR,MAAM,CAAuB;IAC7B,MAAM,CAAQ;IAEX,eAAe,CAAiB;IAChC,WAAW,CAAa;IACxB,aAAa,CAAe;IAC5B,MAAM,CAAQ;IAEjC,YAAY,EACV,K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,EACD,aAAwC;QAExC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,GAAG,IAAA,kDAAwB,EAAC,OAAO,CAAC,aAAa,CAAC,CAAA;QAC1E,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,cAAc,CACvC,OAAO,CAAC,IAAI,EACZ,MAAM,EACN,GAAG,EACH,KAAK,CACN,CAAA;YAED,IAAI,SAAS,KAAK,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;gBACrC,MAAM,IAAI,mDAAqB,CAAC,qBAAqB,CAAC,CAAA;YACxD,CAAC;YAED,OAAO,MAAM,IAAI,CAAC,iBAAiB,CACjC,SAAS,EACT,KAAK,EACL,OAAO,EACP,aAAa,CACd,CAAA;QACH,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,GAAG,YAAY,2CAAiB;gBAAE,MAAM,GAAG,CAAC,sBAAsB,EAAE,CAAA;YACxE,IAAI,GAAG,YAAY,gDAAoB;gBAAE,MAAM,GAAG,CAAA;YAElD,MAAM,0CAAiB,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC,CAAA;QAC9C,CAAC;IACH,CAAC;CACF;AA3ID,sCA2IC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"request-uri.d.ts","sourceRoot":"","sources":["../../src/request/request-uri.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,SAAS,EAAmB,MAAM,iBAAiB,CAAA;AAE5D,eAAO,MAAM,kBAAkB,uCAAuC,CAAA;AAEtE,eAAO,MAAM,gBAAgB,
|
1
|
+
{"version":3,"file":"request-uri.d.ts","sourceRoot":"","sources":["../../src/request/request-uri.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,SAAS,EAAmB,MAAM,iBAAiB,CAAA;AAE5D,eAAO,MAAM,kBAAkB,uCAAuC,CAAA;AAEtE,eAAO,MAAM,gBAAgB,sFAU1B,CAAA;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEzD,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,SAAS,GAAG,UAAU,CAEjE;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,SAAS,CAGlE"}
|
@@ -8,7 +8,6 @@ const request_id_js_1 = require("./request-id.js");
|
|
8
8
|
exports.REQUEST_URI_PREFIX = 'urn:ietf:params:oauth:request_uri:';
|
9
9
|
exports.requestUriSchema = zod_1.z
|
10
10
|
.string()
|
11
|
-
.url()
|
12
11
|
.refinement((data) => data.startsWith(exports.REQUEST_URI_PREFIX) &&
|
13
12
|
request_id_js_1.requestIdSchema.safeParse(decodeRequestUri(data)).success, {
|
14
13
|
code: zod_1.z.ZodIssueCode.custom,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"request-uri.js","sourceRoot":"","sources":["../../src/request/request-uri.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"request-uri.js","sourceRoot":"","sources":["../../src/request/request-uri.ts"],"names":[],"mappings":";;;AAoBA,4CAEC;AAED,4CAGC;AA3BD,6BAAuB;AAEvB,mDAA4D;AAE/C,QAAA,kBAAkB,GAAG,oCAAoC,CAAA;AAEzD,QAAA,gBAAgB,GAAG,OAAC;KAC9B,MAAM,EAAE;KACR,UAAU,CACT,CAAC,IAAI,EAAsD,EAAE,CAC3D,IAAI,CAAC,UAAU,CAAC,0BAAkB,CAAC;IACnC,+BAAe,CAAC,SAAS,CAAC,gBAAgB,CAAC,IAAW,CAAC,CAAC,CAAC,OAAO,EAClE;IACE,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;IAC3B,OAAO,EAAE,4BAA4B;CACtC,CACF,CAAA;AAIH,SAAgB,gBAAgB,CAAC,SAAoB;IACnD,OAAO,GAAG,0BAAkB,GAAG,kBAAkB,CAAC,SAAS,CAAc,EAAE,CAAA;AAC7E,CAAC;AAED,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,MAAM,YAAY,GAAG,UAAU,CAAC,KAAK,CAAC,0BAAkB,CAAC,MAAM,CAAC,CAAA;IAChE,OAAO,kBAAkB,CAAC,YAAY,CAAc,CAAA;AACtD,CAAC"}
|
@@ -42,6 +42,7 @@ export declare const signedTokenPayloadSchema: z.ZodIntersection<z.ZodObject<{
|
|
42
42
|
identifier: z.ZodOptional<z.ZodString>;
|
43
43
|
privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
44
44
|
}, z.ZodTypeAny, "passthrough">>, "many">>>;
|
45
|
+
email: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
45
46
|
auth_time: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
46
47
|
acr: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
47
48
|
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
@@ -58,7 +59,6 @@ export declare const signedTokenPayloadSchema: z.ZodIntersection<z.ZodObject<{
|
|
58
59
|
zoneinfo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
59
60
|
locale: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
60
61
|
updated_at: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
61
|
-
email: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
62
62
|
email_verified: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
63
63
|
phone_number: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
64
64
|
phone_number_verified: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
@@ -1393,6 +1393,7 @@ export declare const signedTokenPayloadSchema: z.ZodIntersection<z.ZodObject<{
|
|
1393
1393
|
identifier: z.ZodOptional<z.ZodString>;
|
1394
1394
|
privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
1395
1395
|
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
1396
|
+
email?: string | undefined;
|
1396
1397
|
auth_time?: number | undefined;
|
1397
1398
|
acr?: string | undefined;
|
1398
1399
|
name?: string | undefined;
|
@@ -1409,7 +1410,6 @@ export declare const signedTokenPayloadSchema: z.ZodIntersection<z.ZodObject<{
|
|
1409
1410
|
zoneinfo?: string | undefined;
|
1410
1411
|
locale?: string | undefined;
|
1411
1412
|
updated_at?: number | undefined;
|
1412
|
-
email?: string | undefined;
|
1413
1413
|
email_verified?: boolean | undefined;
|
1414
1414
|
phone_number?: string | undefined;
|
1415
1415
|
phone_number_verified?: boolean | undefined;
|
@@ -1548,6 +1548,7 @@ export declare const signedTokenPayloadSchema: z.ZodIntersection<z.ZodObject<{
|
|
1548
1548
|
identifier: z.ZodOptional<z.ZodString>;
|
1549
1549
|
privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
1550
1550
|
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
1551
|
+
email?: string | undefined;
|
1551
1552
|
auth_time?: number | undefined;
|
1552
1553
|
acr?: string | undefined;
|
1553
1554
|
name?: string | undefined;
|
@@ -1564,7 +1565,6 @@ export declare const signedTokenPayloadSchema: z.ZodIntersection<z.ZodObject<{
|
|
1564
1565
|
zoneinfo?: string | undefined;
|
1565
1566
|
locale?: string | undefined;
|
1566
1567
|
updated_at?: number | undefined;
|
1567
|
-
email?: string | undefined;
|
1568
1568
|
email_verified?: boolean | undefined;
|
1569
1569
|
phone_number?: string | undefined;
|
1570
1570
|
phone_number_verified?: boolean | undefined;
|
package/dist/signer/signer.d.ts
CHANGED
@@ -39,6 +39,7 @@ export declare class Signer {
|
|
39
39
|
identifier: import("zod").ZodOptional<import("zod").ZodString>;
|
40
40
|
privileges: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
41
41
|
}, import("zod").ZodTypeAny, "passthrough">[] | undefined;
|
42
|
+
email?: string | undefined;
|
42
43
|
auth_time?: number | undefined;
|
43
44
|
acr?: string | undefined;
|
44
45
|
name?: string | undefined;
|
@@ -55,7 +56,6 @@ export declare class Signer {
|
|
55
56
|
zoneinfo?: string | undefined;
|
56
57
|
locale?: string | undefined;
|
57
58
|
updated_at?: number | undefined;
|
58
|
-
email?: string | undefined;
|
59
59
|
email_verified?: boolean | undefined;
|
60
60
|
phone_number?: string | undefined;
|
61
61
|
phone_number_verified?: boolean | undefined;
|
@@ -38,6 +38,7 @@ export declare const tokenClaimsSchema: z.ZodIntersection<z.ZodObject<{
|
|
38
38
|
identifier: z.ZodOptional<z.ZodString>;
|
39
39
|
privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
40
40
|
}, z.ZodTypeAny, "passthrough">>, "many">>>;
|
41
|
+
email: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
41
42
|
auth_time: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
42
43
|
acr: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
43
44
|
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
@@ -54,7 +55,6 @@ export declare const tokenClaimsSchema: z.ZodIntersection<z.ZodObject<{
|
|
54
55
|
zoneinfo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
55
56
|
locale: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
56
57
|
updated_at: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
57
|
-
email: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
58
58
|
email_verified: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
59
59
|
phone_number: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
60
60
|
phone_number_verified: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
@@ -1387,6 +1387,7 @@ export declare const tokenClaimsSchema: z.ZodIntersection<z.ZodObject<{
|
|
1387
1387
|
identifier: z.ZodOptional<z.ZodString>;
|
1388
1388
|
privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
1389
1389
|
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
1390
|
+
email?: string | undefined;
|
1390
1391
|
auth_time?: number | undefined;
|
1391
1392
|
acr?: string | undefined;
|
1392
1393
|
name?: string | undefined;
|
@@ -1403,7 +1404,6 @@ export declare const tokenClaimsSchema: z.ZodIntersection<z.ZodObject<{
|
|
1403
1404
|
zoneinfo?: string | undefined;
|
1404
1405
|
locale?: string | undefined;
|
1405
1406
|
updated_at?: number | undefined;
|
1406
|
-
email?: string | undefined;
|
1407
1407
|
email_verified?: boolean | undefined;
|
1408
1408
|
phone_number?: string | undefined;
|
1409
1409
|
phone_number_verified?: boolean | undefined;
|
@@ -1541,6 +1541,7 @@ export declare const tokenClaimsSchema: z.ZodIntersection<z.ZodObject<{
|
|
1541
1541
|
identifier: z.ZodOptional<z.ZodString>;
|
1542
1542
|
privileges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
1543
1543
|
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
1544
|
+
email?: string | undefined;
|
1544
1545
|
auth_time?: number | undefined;
|
1545
1546
|
acr?: string | undefined;
|
1546
1547
|
name?: string | undefined;
|
@@ -1557,7 +1558,6 @@ export declare const tokenClaimsSchema: z.ZodIntersection<z.ZodObject<{
|
|
1557
1558
|
zoneinfo?: string | undefined;
|
1558
1559
|
locale?: string | undefined;
|
1559
1560
|
updated_at?: number | undefined;
|
1560
|
-
email?: string | undefined;
|
1561
1561
|
email_verified?: boolean | undefined;
|
1562
1562
|
phone_number?: string | undefined;
|
1563
1563
|
phone_number_verified?: boolean | undefined;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atproto/oauth-provider",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.8",
|
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": [
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"@atproto/common": "^0.4.4",
|
47
47
|
"@atproto/jwk": "0.1.1",
|
48
48
|
"@atproto/jwk-jose": "0.1.2",
|
49
|
-
"@atproto/oauth-types": "0.2.
|
49
|
+
"@atproto/oauth-types": "0.2.1"
|
50
50
|
},
|
51
51
|
"devDependencies": {
|
52
52
|
"@rollup/plugin-commonjs": "^25.0.7",
|
package/src/client/client.ts
CHANGED
@@ -4,6 +4,7 @@ import {
|
|
4
4
|
OAuthAuthorizationRequestParameters,
|
5
5
|
OAuthClientCredentials,
|
6
6
|
OAuthClientMetadata,
|
7
|
+
OAuthRedirectUri,
|
7
8
|
} from '@atproto/oauth-types'
|
8
9
|
import {
|
9
10
|
UnsecuredJWT,
|
@@ -323,7 +324,7 @@ export class Client {
|
|
323
324
|
return parameters
|
324
325
|
}
|
325
326
|
|
326
|
-
get defaultRedirectUri():
|
327
|
+
get defaultRedirectUri(): OAuthRedirectUri | undefined {
|
327
328
|
const { redirect_uris } = this.metadata
|
328
329
|
return redirect_uris.length === 1 ? redirect_uris[0] : undefined
|
329
330
|
}
|
package/src/oauth-verifier.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import { Key, Keyset, isSignedJwt } from '@atproto/jwk'
|
2
2
|
import {
|
3
3
|
OAuthAccessToken,
|
4
|
+
OAuthIssuerIdentifier,
|
4
5
|
OAuthTokenType,
|
5
6
|
oauthIssuerIdentifierSchema,
|
6
7
|
} from '@atproto/oauth-types'
|
@@ -77,7 +78,7 @@ export {
|
|
77
78
|
}
|
78
79
|
|
79
80
|
export class OAuthVerifier {
|
80
|
-
public readonly issuer:
|
81
|
+
public readonly issuer: OAuthIssuerIdentifier
|
81
82
|
public readonly keyset: Keyset
|
82
83
|
|
83
84
|
protected readonly accessTokenType: AccessTokenType
|