@atproto/oauth-provider 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/router/assets/send-authorization-page.d.ts.map +1 -1
- package/dist/router/assets/send-authorization-page.js +1 -6
- package/dist/router/assets/send-authorization-page.js.map +1 -1
- package/package.json +4 -4
- package/src/router/assets/send-authorization-page.ts +1 -6
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# @atproto/oauth-provider
|
2
2
|
|
3
|
+
## 0.7.2
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#3755](https://github.com/bluesky-social/atproto/pull/3755) [`96de2acb3`](https://github.com/bluesky-social/atproto/commit/96de2acb301683effe4313cb93d7747f87a73b5e) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Use more secure COEP header when hCaptcha is enabled
|
8
|
+
|
9
|
+
- Updated dependencies [[`0f3899dd5`](https://github.com/bluesky-social/atproto/commit/0f3899dd52d0094c29222c65e2636217f9a8ece4)]:
|
10
|
+
- @atproto/oauth-provider-frontend@0.1.2
|
11
|
+
|
3
12
|
## 0.7.1
|
4
13
|
|
5
14
|
### Patch Changes
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"send-authorization-page.d.ts","sourceRoot":"","sources":["../../../src/router/assets/send-authorization-page.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAGhE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAA;AAMpE,OAAO,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAA;AAItG,wBAAgB,wBAAwB,CAAC,aAAa,EAAE,aAAa,
|
1
|
+
{"version":3,"file":"send-authorization-page.d.ts","sourceRoot":"","sources":["../../../src/router/assets/send-authorization-page.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAGhE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAA;AAMpE,OAAO,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAA;AAItG,wBAAgB,wBAAwB,CAAC,aAAa,EAAE,aAAa,IAWjE,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,MAAM,gCAAgC,KACrC,OAAO,CAAC,IAAI,CAAC,CA6BjB"}
|
@@ -16,11 +16,6 @@ function sendAuthorizePageFactory(customization) {
|
|
16
16
|
const customizationCss = (0, index_js_2.cssCode)((0, build_customization_css_js_1.buildCustomizationCss)(customization));
|
17
17
|
const { scripts, styles } = (0, assets_js_1.getAssets)('authorization-page');
|
18
18
|
const csp = (0, index_js_1.mergeCsp)(assets_js_1.SPA_CSP, customization?.hcaptcha ? assets_js_1.HCAPTCHA_CSP : undefined);
|
19
|
-
const coep = customization?.hcaptcha
|
20
|
-
? // https://github.com/hCaptcha/react-hcaptcha/issues/259
|
21
|
-
// @TODO Remove the use of `unsafeNone` once the issue above is resolved
|
22
|
-
security_headers_js_1.CrossOriginEmbedderPolicy.unsafeNone
|
23
|
-
: security_headers_js_1.CrossOriginEmbedderPolicy.credentialless;
|
24
19
|
return async function sendAuthorizePage(req, res, data) {
|
25
20
|
await (0, csrf_js_1.setupCsrfToken)(req, res);
|
26
21
|
const script = (0, hydration_data_js_1.declareHydrationData)({
|
@@ -40,7 +35,7 @@ function sendAuthorizePageFactory(customization) {
|
|
40
35
|
meta: [{ name: 'robots', content: 'noindex' }],
|
41
36
|
body: (0, index_js_2.html) `<div id="root"></div>`,
|
42
37
|
csp,
|
43
|
-
coep,
|
38
|
+
coep: security_headers_js_1.CrossOriginEmbedderPolicy.credentialless,
|
44
39
|
scripts: [script, ...scripts],
|
45
40
|
styles: [...styles, customizationCss],
|
46
41
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"send-authorization-page.js","sourceRoot":"","sources":["../../../src/router/assets/send-authorization-page.ts"],"names":[],"mappings":";;AAaA,
|
1
|
+
{"version":3,"file":"send-authorization-page.js","sourceRoot":"","sources":["../../../src/router/assets/send-authorization-page.ts"],"names":[],"mappings":";;AAaA,4DA2CC;AAvDD,+FAAsF;AACtF,iGAAwF;AAExF,qDAAiD;AACjD,wEAAuE;AACvE,sDAAuD;AACvD,4EAA8E;AAC9E,iEAAwD;AAExD,2CAA6E;AAC7E,uCAA0C;AAE1C,SAAgB,wBAAwB,CAAC,aAA4B;IACnE,wBAAwB;IACxB,MAAM,iBAAiB,GAAG,IAAA,oDAAsB,EAAC,aAAa,CAAC,CAAA;IAC/D,MAAM,gBAAgB,GAAG,IAAA,kBAAO,EAAC,IAAA,kDAAqB,EAAC,aAAa,CAAC,CAAC,CAAA;IACtE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAA,qBAAS,EAAC,oBAAoB,CAAC,CAAA;IAC3D,MAAM,GAAG,GAAG,IAAA,mBAAQ,EAClB,mBAAO,EACP,aAAa,EAAE,QAAQ,CAAC,CAAC,CAAC,wBAAY,CAAC,CAAC,CAAC,SAAS,CACnD,CAAA;IAED,OAAO,KAAK,UAAU,iBAAiB,CACrC,GAAoB,EACpB,GAAmB,EACnB,IAAsC;QAEtC,MAAM,IAAA,wBAAc,EAAC,GAAG,EAAE,GAAG,CAAC,CAAA;QAE9B,MAAM,MAAM,GAAG,IAAA,wCAAoB,EAAsC;YACvE,mBAAmB,EAAE,iBAAiB;YACtC,eAAe,EAAE;gBACf,UAAU,EAAE,IAAI,CAAC,GAAG;gBAEpB,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE;gBACxB,cAAc,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ;gBACpC,aAAa,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS;gBAEzC,YAAY,EAAE,IAAI,CAAC,YAAY;gBAE/B,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU;gBACrC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU;aACtC;YACD,UAAU,EAAE,IAAI,CAAC,QAAQ;SAC1B,CAAC,CAAA;QAEF,OAAO,IAAA,8BAAW,EAAC,GAAG,EAAE;YACtB,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;YAC9C,IAAI,EAAE,IAAA,eAAI,EAAA,uBAAuB;YACjC,GAAG;YACH,IAAI,EAAE,+CAAyB,CAAC,cAAc;YAC9C,OAAO,EAAE,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC;YAC7B,MAAM,EAAE,CAAC,GAAG,MAAM,EAAE,gBAAgB,CAAC;SACtC,CAAC,CAAA;IACJ,CAAC,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atproto/oauth-provider",
|
3
|
-
"version": "0.7.
|
3
|
+
"version": "0.7.2",
|
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": [
|
@@ -43,7 +43,6 @@
|
|
43
43
|
"jose": "^5.2.0",
|
44
44
|
"psl": "^1.9.0",
|
45
45
|
"zod": "^3.23.8",
|
46
|
-
"@atproto-labs/fetch": "0.2.2",
|
47
46
|
"@atproto-labs/fetch-node": "0.1.8",
|
48
47
|
"@atproto-labs/pipe": "0.1.0",
|
49
48
|
"@atproto-labs/simple-store": "0.1.2",
|
@@ -53,9 +52,10 @@
|
|
53
52
|
"@atproto/jwk-jose": "0.1.6",
|
54
53
|
"@atproto/oauth-types": "0.2.5",
|
55
54
|
"@atproto/oauth-provider-api": "0.1.0",
|
56
|
-
"@atproto/oauth-provider-frontend": "0.1.
|
55
|
+
"@atproto/oauth-provider-frontend": "0.1.2",
|
57
56
|
"@atproto/oauth-provider-ui": "0.1.1",
|
58
|
-
"@atproto/syntax": "0.4.0"
|
57
|
+
"@atproto/syntax": "0.4.0",
|
58
|
+
"@atproto-labs/fetch": "0.2.2"
|
59
59
|
},
|
60
60
|
"devDependencies": {
|
61
61
|
"@types/cookie": "^0.6.0",
|
@@ -20,11 +20,6 @@ export function sendAuthorizePageFactory(customization: Customization) {
|
|
20
20
|
SPA_CSP,
|
21
21
|
customization?.hcaptcha ? HCAPTCHA_CSP : undefined,
|
22
22
|
)
|
23
|
-
const coep = customization?.hcaptcha
|
24
|
-
? // https://github.com/hCaptcha/react-hcaptcha/issues/259
|
25
|
-
// @TODO Remove the use of `unsafeNone` once the issue above is resolved
|
26
|
-
CrossOriginEmbedderPolicy.unsafeNone
|
27
|
-
: CrossOriginEmbedderPolicy.credentialless
|
28
23
|
|
29
24
|
return async function sendAuthorizePage(
|
30
25
|
req: IncomingMessage,
|
@@ -54,7 +49,7 @@ export function sendAuthorizePageFactory(customization: Customization) {
|
|
54
49
|
meta: [{ name: 'robots', content: 'noindex' }],
|
55
50
|
body: html`<div id="root"></div>`,
|
56
51
|
csp,
|
57
|
-
coep,
|
52
|
+
coep: CrossOriginEmbedderPolicy.credentialless,
|
58
53
|
scripts: [script, ...scripts],
|
59
54
|
styles: [...styles, customizationCss],
|
60
55
|
})
|