@eeacms/volto-eea-website-policy 0.2.0 → 0.2.1

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 CHANGED
@@ -4,8 +4,15 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### [0.2.1](https://github.com/eea/volto-eea-website-policy/compare/0.2.0...0.2.1)
8
+
9
+ - 137187 keycloak integration for plone6 [`#3`](https://github.com/eea/volto-eea-website-policy/pull/3)
10
+
7
11
  #### [0.2.0](https://github.com/eea/volto-eea-website-policy/compare/0.1.1...0.2.0)
8
12
 
13
+ > 18 March 2022
14
+
15
+ - Release [`#5`](https://github.com/eea/volto-eea-website-policy/pull/5)
9
16
  - Enable multilingual - refs #146771 [`#4`](https://github.com/eea/volto-eea-website-policy/pull/4)
10
17
  - Release 0.2.0 [`4b72206`](https://github.com/eea/volto-eea-website-policy/commit/4b72206675ab13ed81567df590849613581d7f10)
11
18
  - Update index.js [`0f5be15`](https://github.com/eea/volto-eea-website-policy/commit/0f5be1553b608f49c9a61bbc69a0f90219260a83)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-website-policy",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "@eeacms/volto-eea-website-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
package/src/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ import { runtimeConfig } from '@plone/volto/runtime_config';
2
+
1
3
  const applyConfig = (config) => {
2
4
  // if (process.env.NODE_ENV === 'production') {
3
5
  // // Restrict block-style to Layout only
@@ -19,6 +21,27 @@ const applyConfig = (config) => {
19
21
  // Date format for EU
20
22
  config.settings.dateLocale = 'en-gb';
21
23
 
24
+ // #137187 Keycloak integration
25
+ if (runtimeConfig['RAZZLE_KEYCLOAK'] === 'Yes') {
26
+ config.settings.externalRoutes = [
27
+ ...(config.settings.externalRoutes || []),
28
+ {
29
+ match: {
30
+ path: '/login',
31
+ exact: true,
32
+ strict: false,
33
+ },
34
+ },
35
+ {
36
+ match: {
37
+ path: '/logout',
38
+ exact: true,
39
+ strict: false,
40
+ },
41
+ },
42
+ ];
43
+ }
44
+
22
45
  // Working-copy
23
46
  config.settings.hasWorkingCopySupport = true;
24
47