@adobe/helix-html-pipeline 3.8.7 → 3.8.9
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 +14 -0
- package/package.json +6 -6
- package/src/utils/auth.js +2 -0
- package/src/utils/idp-configs/admin.js +25 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [3.8.9](https://github.com/adobe/helix-html-pipeline/compare/v3.8.8...v3.8.9) (2023-02-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* allow admin jwts ([#258](https://github.com/adobe/helix-html-pipeline/issues/258)) ([312f17d](https://github.com/adobe/helix-html-pipeline/commit/312f17d018b717e35189bca81dee0baa05f531ae))
|
|
7
|
+
|
|
8
|
+
## [3.8.8](https://github.com/adobe/helix-html-pipeline/compare/v3.8.7...v3.8.8) (2023-02-01)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update dependency @adobe/helix-shared-utils to v3 ([#254](https://github.com/adobe/helix-html-pipeline/issues/254)) ([7e87b87](https://github.com/adobe/helix-html-pipeline/commit/7e87b876eb1e0d02caac11d9be399bc46c358369))
|
|
14
|
+
|
|
1
15
|
## [3.8.7](https://github.com/adobe/helix-html-pipeline/compare/v3.8.6...v3.8.7) (2023-01-29)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-html-pipeline",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.9",
|
|
4
4
|
"description": "Helix HTML Pipeline",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@adobe/helix-markdown-support": "6.1.1",
|
|
43
|
-
"@adobe/helix-shared-utils": "
|
|
43
|
+
"@adobe/helix-shared-utils": "3.0.0",
|
|
44
44
|
"@adobe/mdast-util-gridtables": "1.0.6",
|
|
45
45
|
"@adobe/remark-gridtables": "1.0.2",
|
|
46
46
|
"cookie": "0.5.0",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"hastscript": "7.2.0",
|
|
53
53
|
"jose": "4.11.2",
|
|
54
54
|
"mdast-util-gfm-footnote": "1.0.2",
|
|
55
|
-
"mdast-util-gfm-strikethrough": "1.0.
|
|
56
|
-
"mdast-util-gfm-table": "1.0.
|
|
55
|
+
"mdast-util-gfm-strikethrough": "1.0.3",
|
|
56
|
+
"mdast-util-gfm-table": "1.0.7",
|
|
57
57
|
"mdast-util-gfm-task-list-item": "1.0.2",
|
|
58
|
-
"mdast-util-to-hast": "12.
|
|
58
|
+
"mdast-util-to-hast": "12.3.0",
|
|
59
59
|
"mdast-util-to-string": "3.1.1",
|
|
60
60
|
"micromark-extension-gfm-footnote": "1.0.4",
|
|
61
61
|
"micromark-extension-gfm-strikethrough": "1.0.4",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@semantic-release/git": "10.0.1",
|
|
84
84
|
"@semantic-release/npm": "9.0.2",
|
|
85
85
|
"c8": "7.12.0",
|
|
86
|
-
"eslint": "8.
|
|
86
|
+
"eslint": "8.33.0",
|
|
87
87
|
"eslint-import-resolver-exports": "1.0.0-beta.4",
|
|
88
88
|
"eslint-plugin-header": "3.1.1",
|
|
89
89
|
"eslint-plugin-import": "2.27.5",
|
package/src/utils/auth.js
CHANGED
|
@@ -16,12 +16,14 @@ import {
|
|
|
16
16
|
import { clearAuthCookie, getAuthCookie, setAuthCookie } from './auth-cookie.js';
|
|
17
17
|
|
|
18
18
|
import idpMicrosoft from './idp-configs/microsoft.js';
|
|
19
|
+
import idpAdmin from './idp-configs/admin.js';
|
|
19
20
|
|
|
20
21
|
// eslint-disable-next-line import/no-unresolved
|
|
21
22
|
import cryptoImpl from '#crypto';
|
|
22
23
|
|
|
23
24
|
export const IDPS = [
|
|
24
25
|
idpMicrosoft,
|
|
26
|
+
idpAdmin,
|
|
25
27
|
];
|
|
26
28
|
|
|
27
29
|
const AUTH_REDIRECT_URL = 'https://login.hlx.page/.auth';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2022 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* virtual idp config for the admin service
|
|
15
|
+
*/
|
|
16
|
+
export default {
|
|
17
|
+
name: 'admin',
|
|
18
|
+
client: (state) => ({
|
|
19
|
+
clientId: state.env.HLX_SITE_APP_AZURE_CLIENT_ID,
|
|
20
|
+
}),
|
|
21
|
+
validateIssuer: (iss) => iss === 'https://admin.hlx.page/',
|
|
22
|
+
discovery: {
|
|
23
|
+
jwks_uri: 'https://admin.hlx.page/auth/discovery/keys',
|
|
24
|
+
},
|
|
25
|
+
};
|