@atproto/pds 0.4.46 → 0.4.47
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# @atproto/pds
|
2
2
|
|
3
|
+
## 0.4.47
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#2688](https://github.com/bluesky-social/atproto/pull/2688) [`269cbc87c`](https://github.com/bluesky-social/atproto/commit/269cbc87c5ec9d65d1d479269ac5e91dffbb186c) Thanks [@dholms](https://github.com/dholms)! - Inspect bearer auth token on uploadBlob
|
8
|
+
|
3
9
|
## 0.4.46
|
4
10
|
|
5
11
|
### Patch Changes
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth-verifier.d.ts","sourceRoot":"","sources":["../src/auth-verifier.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAoC,MAAM,aAAa,CAAA;AAEzE,OAAO,EAEL,aAAa,EAEd,MAAM,yBAAyB,CAAA;AAQhC,OAAO,EAAE,UAAU,EAA0B,MAAM,mBAAmB,CAAA;AACtE,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,KAAK,IAAI,MAAM,MAAM,CAAA;AAE5B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAIlD,KAAK,MAAM,GAAG;IACZ,GAAG,EAAE,OAAO,CAAC,OAAO,CAAA;IAEpB,GAAG,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAA;CACvB,CAAA;AAGD,oBAAY,SAAS;IACnB,MAAM,uBAAuB;IAC7B,OAAO,wBAAwB;IAC/B,OAAO,wBAAwB;IAC/B,iBAAiB,kCAAkC;IACnD,YAAY,6BAA6B;CAC1C;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,EAAE,SAAS,EAAE,CAAA;IACvB,aAAa,EAAE,OAAO,CAAA;IACtB,gBAAgB,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,oBAAY,UAAU;IACpB,KAAK,IAA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,gBAAgB;IAevC,SAAS,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,EAAE,MAAM;CAMzC;AAKD,aAAK,QAAQ;IACX,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,eAAO,MAAM,wBAAwB,mBACnB,MAAM,KACrB,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,CAqB/C,CAAA;AAsBD,eAAO,MAAM,cAAc,yBACH,MAAM,KAC3B;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,IAc3C,CAAA;AAOD,eAAO,MAAM,qBAAqB,WAAY,MAAM,KAAG,SAEtD,CAAA;AAED,eAAO,MAAM,qBAAqB,iBAAkB,MAAM,KAAG,SAG5D,CAAA"}
|
package/dist/auth-verifier.js
CHANGED
@@ -225,12 +225,14 @@ class AuthVerifier {
|
|
225
225
|
configurable: true,
|
226
226
|
writable: true,
|
227
227
|
value: (opts = {}) => async (ctx) => {
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
228
|
+
const token = bearerTokenFromReq(ctx.req);
|
229
|
+
if (token) {
|
230
|
+
const payload = jose.decodeJwt(token);
|
231
|
+
if (payload['lxm']) {
|
232
|
+
return this.userServiceAuth(ctx);
|
233
|
+
}
|
233
234
|
}
|
235
|
+
return this.accessStandard(opts)(ctx);
|
234
236
|
}
|
235
237
|
});
|
236
238
|
Object.defineProperty(this, "modService", {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth-verifier.js","sourceRoot":"","sources":["../src/auth-verifier.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAyE;AAEzE,4DAIgC;AAChC,sDAM6B;AAC7B,gDAAsE;AAEtE,2CAA4B;AAC5B,8DAAoC;AAEpC,6BAAkC;AAClC,4CAAyD;AAQzD,sEA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E,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAChD,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;QAC3B,IAAI,CAAC,eAAe,EAAE,CAAC;YACrB,GAAG,CAAC,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;QACjC,CAAC;IACH,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atproto/pds",
|
3
|
-
"version": "0.4.
|
3
|
+
"version": "0.4.47",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Reference implementation of atproto Personal Data Server (PDS)",
|
6
6
|
"keywords": [
|
@@ -49,12 +49,12 @@
|
|
49
49
|
"@atproto/common": "^0.4.1",
|
50
50
|
"@atproto/crypto": "^0.4.0",
|
51
51
|
"@atproto/identity": "^0.4.0",
|
52
|
-
"@atproto/lexicon": "^0.4.0",
|
53
52
|
"@atproto/oauth-provider": "^0.1.1",
|
53
|
+
"@atproto/lexicon": "^0.4.0",
|
54
54
|
"@atproto/repo": "^0.4.1",
|
55
55
|
"@atproto/syntax": "^0.3.0",
|
56
|
-
"@atproto/xrpc": "^0.
|
57
|
-
"@atproto/xrpc
|
56
|
+
"@atproto/xrpc-server": "^0.6.0",
|
57
|
+
"@atproto/xrpc": "^0.5.0"
|
58
58
|
},
|
59
59
|
"devDependencies": {
|
60
60
|
"@atproto/pds-entryway": "npm:@atproto/pds@0.3.0-entryway.3",
|
package/src/auth-verifier.ts
CHANGED
@@ -249,11 +249,14 @@ export class AuthVerifier {
|
|
249
249
|
accessOrUserServiceAuth =
|
250
250
|
(opts: Partial<AccessOpts> = {}) =>
|
251
251
|
async (ctx: ReqCtx): Promise<UserServiceAuthOutput | AccessOutput> => {
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
252
|
+
const token = bearerTokenFromReq(ctx.req)
|
253
|
+
if (token) {
|
254
|
+
const payload = jose.decodeJwt(token)
|
255
|
+
if (payload['lxm']) {
|
256
|
+
return this.userServiceAuth(ctx)
|
257
|
+
}
|
256
258
|
}
|
259
|
+
return this.accessStandard(opts)(ctx)
|
257
260
|
}
|
258
261
|
|
259
262
|
modService = async (ctx: ReqCtx): Promise<ModServiceOutput> => {
|