@eui/cli 17.3.1-snapshot-1711129041669 → 18.0.0-next.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.
Files changed (22) hide show
  1. package/.version.properties +1 -1
  2. package/lib/build.js +0 -8
  3. package/lib/cli.js +0 -1
  4. package/lib/config.js +0 -2
  5. package/lib/skeletons/_angular/base/gitignore_TO_REPLACE +0 -1
  6. package/lib/skeletons/_angular/base/package.json +2 -2
  7. package/lib/skeletons/_angular/base/src/app/core/core.module.ts +0 -1
  8. package/lib/skeletons/_angular/base-mobile/package.json +1 -1
  9. package/lib/skeletons/_angular/base-mobile/src/app/core/core.module.ts +0 -1
  10. package/lib/skeletons/web-symfony/myapp-web/package.json +2 -3
  11. package/package.json +3 -3
  12. package/lib/skeletons/_angular/options/merged-ecl-openid-jwt/package.json +0 -26
  13. package/lib/skeletons/_angular/options/openid-jwt/package.json +0 -23
  14. package/lib/skeletons/_angular/options/openid-jwt/src/app/core/core.module.ts +0 -94
  15. package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-dev.json +0 -24
  16. package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-local-mock.json +0 -10
  17. package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-local.json +0 -23
  18. package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-prod.json +0 -23
  19. package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config.json +0 -10
  20. package/lib/skeletons/_angular/options/openid-jwt/src/environments/environment.prod.ts +0 -11
  21. package/lib/skeletons/_angular/options/openid-jwt/src/environments/environment.ts +0 -11
  22. package/lib/skeletons/_angular/options/openid-jwt/src/index.html +0 -21
@@ -1 +1 @@
1
- 17.3.1-snapshot-1711129041669
1
+ 18.0.0-next.1
package/lib/build.js CHANGED
@@ -149,14 +149,6 @@ const copyAngular = (targetPath, cliConfig, overwrite = true) => {
149
149
  }
150
150
  return Promise.resolve();
151
151
  })
152
- .then(() => {
153
- const allAvaiableOptionsCount = Object.keys(config.optionsPath).length - 1;
154
- if (cliConfig.appOptions && cliConfig.appOptions.length === allAvaiableOptionsCount) {
155
- tools.copydir(config.optionsPath["ecl-openid-jwt"], targetPath, true);
156
- console.log('Applying options merge : ecl-openid-jwt');
157
- }
158
- return Promise.resolve();
159
- })
160
152
  .catch((e) => {
161
153
  throw e;
162
154
  })
package/lib/cli.js CHANGED
@@ -79,7 +79,6 @@ module.exports.start = (options) => {
79
79
  default: defaultConfig.appOptions,
80
80
  message: 'Select one or more additional configuration options :',
81
81
  choices: [
82
- { name: 'OpenId Connect JWT implementation', value: 'openid-jwt' },
83
82
  { name: 'eUI ECL app-shell template and configuration - for ec.europa.eu apps', value: 'ecl' },
84
83
  ],
85
84
  when: function (answers) {
package/lib/config.js CHANGED
@@ -16,10 +16,8 @@ module.exports.webPhpStarterRepo = 'webgate.ec.europa.eu/CITnet/stash/scm/csdr/e
16
16
  module.exports.webSymfonyPath = path.join(skeletonsPath, 'web-symfony');
17
17
 
18
18
  module.exports.optionsPath = {
19
- "openid-jwt": path.join(skeletonsPath, '_angular/options/openid-jwt'),
20
19
  "ecl-ec": path.join(skeletonsPath, '_angular/options/ecl-ec'),
21
20
  "ecl-eu": path.join(skeletonsPath, '_angular/options/ecl-eu'),
22
- "ecl-openid-jwt": path.join(skeletonsPath, '_angular/options/merged-ecl-openid-jwt'),
23
21
  };
24
22
 
25
23
  module.exports.version = version;
@@ -47,4 +47,3 @@ yarn-error.log
47
47
  Thumbs.db
48
48
 
49
49
  /assets/env-json-config.json
50
- /assets/openid-login-config.json
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eui-angular-app",
3
- "version": "17.3.1-snapshot-1711129041669",
3
+ "version": "18.0.0-next.1",
4
4
  "license": "EUPL-1.1",
5
5
  "scripts": {
6
6
  "ng": "ng",
@@ -20,6 +20,6 @@
20
20
  },
21
21
  "private": true,
22
22
  "dependencies": {
23
- "@eui/deps-base": "17.3.1-snapshot-1711129041669"
23
+ "@eui/deps-base": "18.0.0-next.1"
24
24
  }
25
25
  }
@@ -58,7 +58,6 @@ import { SharedModule } from '@shared/shared.module';
58
58
  multi: true,
59
59
  },
60
60
  {
61
- // WARNING: in case of OpenID this is not needed since OpenID is stateless therefore no revalidation needed.
62
61
  // When the authentication session is invalid, we need to re-authenticate. The browser refreshes the current URL,
63
62
  // and lets the EU Login client redirect to the official EU Login page.
64
63
  provide: HTTP_INTERCEPTORS,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eui-angular-app",
3
- "version": "17.3.1-snapshot-1711129041669",
3
+ "version": "18.0.0-next.1",
4
4
  "license": "EUPL-1.1",
5
5
  "scripts": {
6
6
  "ng": "ng",
@@ -60,7 +60,6 @@ import { SharedModule } from '@shared/shared.module';
60
60
  multi: true,
61
61
  },
62
62
  {
63
- // WARNING: in case of OpenID this is not needed since OpenID is stateless therefore no revalidation needed.
64
63
  // When the authentication session is invalid, we need to re-authenticate. The browser refreshes the current URL,
65
64
  // and lets the EU Login client redirect to the official EU Login page.
66
65
  provide: HTTP_INTERCEPTORS,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eui-angular-app",
3
- "version": "17.3.1-snapshot-1711129041669",
3
+ "version": "18.0.0-next.1",
4
4
  "license": "EUPL-1.1",
5
5
  "description": "eUI JEE Symfony app scripts",
6
6
  "scripts": {
@@ -14,11 +14,10 @@
14
14
  "start": "npm run clean && npm-run-all --parallel start-symfony start-serve",
15
15
  "start-mean": "npm run clean && npm-run-all --parallel start-mock-server-mean start-serve",
16
16
  "start-proxy": "npm run clean && eui-scripts serve-app --configuration=proxy",
17
- "start-openid": "npm run clean && eui-scripts serve-app --configuration=local-openid",
18
17
  "generate-changelog": "eui-scripts generate-changelog"
19
18
  },
20
19
  "private": true,
21
20
  "dependencies": {
22
- "@eui/deps-base": "17.3.1-snapshot-1711129041669"
21
+ "@eui/deps-base": "18.0.0-next.1"
23
22
  }
24
23
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eui/cli",
3
- "version": "17.3.1-snapshot-1711129041669",
4
- "tag": "snapshot",
3
+ "version": "18.0.0-next.1",
4
+ "tag": "next",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI CLI app generator",
7
7
  "bin": {
@@ -27,7 +27,7 @@
27
27
  "homepage": "https://eui.ecdevops.eu",
28
28
  "author": "ec.europa.eui@gmail.com",
29
29
  "engines": {
30
- "node": "^18.13.0 || >=20.9.0",
30
+ "node": "^18.19.1 || >=20.11.1",
31
31
  "yarn": ">=1.22.4 <2"
32
32
  }
33
33
  }
@@ -1,26 +0,0 @@
1
- {
2
- "name": "eui-angular-app",
3
- "version": "17.3.1-snapshot-1711129041669",
4
- "license": "EUPL-1.1",
5
- "scripts": {
6
- "ng": "ng",
7
- "start-mock-server": "nodemon --watch ./mock ./mock/server.js",
8
- "start-serve": "eui-scripts serve-app --openid --configuration=proxy-mock --configEnvTarget=local-mock",
9
- "start": "npm-run-all --parallel start-mock-server start-serve",
10
- "start-proxy": "eui-scripts serve-app --openid",
11
- "start-openid": "eui-scripts serve-app --openid --configEnvTarget=local",
12
- "build-dev": "eui-scripts build-app --configuration=development --configEnvTarget=dev",
13
- "build-prod": "eui-scripts build-app --configuration=production-optimized --configEnvTarget=prod",
14
- "build-prod-skip-test": "eui-scripts build-app --configuration=production-optimized --configEnvTarget=prod --skipTest",
15
- "build-prod-stats": "eui-scripts build-app --configuration=production-optimized --configEnvTarget=prod --statsJson",
16
- "build-openid-dev": "eui-scripts build-app --configuration=production-optimized --openid --configEnvTarget=dev",
17
- "build-openid-prd": "eui-scripts build-app --configuration=production-optimized --openid --configEnvTarget=prod",
18
- "app:build": "eui-scripts build-app",
19
- "app:inject-config": "eui-scripts inject-config-app",
20
- "generate-changelog": "eui-scripts generate-changelog"
21
- },
22
- "private": true,
23
- "dependencies": {
24
- "@eui/deps-base": "17.3.1-snapshot-1711129041669"
25
- }
26
- }
@@ -1,23 +0,0 @@
1
- {
2
- "name": "eui-angular-app",
3
- "version": "17.3.1-snapshot-1711129041669",
4
- "license": "EUPL-1.1",
5
- "scripts": {
6
- "ng": "ng",
7
- "start-mock-server": "nodemon --watch ./mock ./mock/server.js",
8
- "start-serve": "eui-scripts serve-app --openid --configuration=proxy-mock --configEnvTarget=local-mock",
9
- "start": "npm-run-all --parallel start-mock-server start-serve",
10
- "start-proxy": "eui-scripts serve-app --openid",
11
- "start-openid": "eui-scripts serve-app --openid --configEnvTarget=local",
12
- "build": "eui-scripts build-app",
13
- "build-openid-dev": "eui-scripts build-app --configuration=production-optimized --openid --configEnvTarget=dev",
14
- "build-openid-prod": "eui-scripts build-app --configuration=production-optimized --openid --configEnvTarget=prod",
15
- "app:build": "eui-scripts build-app",
16
- "app:inject-config": "eui-scripts inject-config-app",
17
- "generate-changelog": "eui-scripts generate-changelog"
18
- },
19
- "private": true,
20
- "dependencies": {
21
- "@eui/deps-base": "17.3.1-snapshot-1711129041669"
22
- }
23
- }
@@ -1,94 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { TranslateModule } from '@ngx-translate/core';
3
- import { StoreModule } from '@ngrx/store';
4
- import { EffectsModule } from '@ngrx/effects';
5
- import { StoreDevtoolsModule } from '@ngrx/store-devtools';
6
- import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
7
-
8
- import {
9
- CachePreventionInterceptor,
10
- CorsSecurityInterceptor,
11
- CsrfPreventionInterceptor,
12
- EuLoginSessionTimeoutHandlingInterceptor,
13
- OpenIdConnectInterceptor,
14
- CoreModule as EuiCoreModule,
15
- translateConfig,
16
- CoreModuleEffects,
17
- EUI_CONFIG_TOKEN,
18
- } from '@eui/core';
19
- import { EuiLayoutModule } from '@eui/components/layout';
20
-
21
- import { appConfig } from '../../config/index';
22
- import { environment } from '../../environments/environment';
23
-
24
- import { REDUCER_TOKEN, getReducers, metaReducers } from './reducers/index';
25
-
26
- import { SharedModule } from '@shared/shared.module';
27
-
28
- @NgModule({
29
- imports: [
30
- EuiLayoutModule,
31
- SharedModule,
32
- HttpClientModule,
33
- EuiCoreModule.forRoot(),
34
- EffectsModule.forRoot([...CoreModuleEffects]),
35
- TranslateModule.forRoot(translateConfig),
36
- StoreModule.forRoot(REDUCER_TOKEN, { metaReducers }),
37
- !environment.production ? StoreDevtoolsModule.instrument({ maxAge: 50 }) : [],
38
- ],
39
- declarations: [
40
- ],
41
- exports: [
42
- EuiLayoutModule,
43
- SharedModule,
44
- ],
45
- providers: [
46
- {
47
- provide: REDUCER_TOKEN,
48
- deps: [],
49
- useFactory: getReducers,
50
- },
51
- {
52
- provide: EUI_CONFIG_TOKEN,
53
- useValue: { appConfig, environment },
54
- },
55
- {
56
- // Sets the withCredentials on Ajax Request to send the JSESSIONID cookie to another domain.
57
- // This is necessary when a request is being made to another domain that is protected by EU Login.
58
- provide: HTTP_INTERCEPTORS,
59
- useClass: CorsSecurityInterceptor,
60
- multi: true,
61
- },
62
- {
63
- // WARNING: in case of OpenID this is not needed since OpenID is stateless therefore no revalidation needed.
64
- // When the authentication session is invalid, we need to re-authenticate. The browser refreshes the current URL,
65
- // and lets the EU Login client redirect to the official EU Login page.
66
- provide: HTTP_INTERCEPTORS,
67
- useClass: EuLoginSessionTimeoutHandlingInterceptor,
68
- multi: true,
69
- },
70
- {
71
- // Adds HTTP header to each Ajax request that ensures the request is set by a piece of JavaScript code in the application.
72
- // This prevents dynamically-loaded content from forging a request in the name of the currently logged-in user.
73
- // Be aware that this assumes that cross-site scripting (XSS) is already put in place, (default setting in Angular).
74
- provide: HTTP_INTERCEPTORS,
75
- useClass: CsrfPreventionInterceptor,
76
- multi: true,
77
- },
78
- {
79
- // Asks the intermediate proxies not to return a cache copy of the resource.
80
- // In matter of fact forces each server in the chain to validate the freshness of the resource.
81
- provide: HTTP_INTERCEPTORS,
82
- useClass: CachePreventionInterceptor,
83
- multi: true,
84
- },
85
- {
86
- provide: HTTP_INTERCEPTORS,
87
- useClass: OpenIdConnectInterceptor,
88
- multi: true,
89
- },
90
- ]
91
- })
92
- export class CoreModule {
93
-
94
- }
@@ -1,24 +0,0 @@
1
- {
2
- "openIdConnect": {
3
- "enabled": true,
4
- "allowDevelopmentLogin": true,
5
- "stripIdTokenFromLocation": true,
6
- "maximumRequestRetries": 1,
7
- "metadataUrl": "https://webgate.ec.europa.eu/cas/oauth2/.well-known/openid-configuration",
8
- "spaClientId": "your-webapp-EU-Login-ACC-client-ID-here",
9
- "spaRedirectUrl": "https://your-development-server-url/",
10
- "apiGatewayAccessTokenUrl": "https://api.tech.ec.europa.eu/federation/oauth/token",
11
- "apiGatewayAccessTokenAudienceId": "DFlp4emQ6jCLjNw8U7ko18zNjb9bwJ3ACrnP89iPsVv4zcChOEVRPHCT88Q7jPpNGCFa0hJEtV77rBj6L1XvOt-Jj71zxYb8yr7ujzQt669zSG",
12
- "apiGatewayConsumerKey": "API-Gateway-sandbox-URL-consumer-key-here",
13
- "apiGatewayServices": {
14
- },
15
- "services": {
16
- }
17
- },
18
- "modules": {
19
- "core": {
20
- "base": "/api",
21
- "userDetails": "/user-details"
22
- }
23
- }
24
- }
@@ -1,10 +0,0 @@
1
- {
2
- "openIdConnect": {
3
- "enabled": false
4
- },
5
- "modules": {
6
- "core": {
7
- "userDetails": "/user-details"
8
- }
9
- }
10
- }
@@ -1,23 +0,0 @@
1
- {
2
- "openIdConnect": {
3
- "enabled": true,
4
- "stripIdTokenFromLocation": true,
5
- "maximumRequestRetries": 1,
6
- "metadataUrl": "https://webgate.ec.europa.eu/cas/oauth2/.well-known/openid-configuration",
7
- "spaClientId": "your-webapp-EU-Login-ACC-client-ID-here",
8
- "spaRedirectUrl": "https://your-development-server-url/",
9
- "apiGatewayAccessTokenUrl": "https://api.tech.ec.europa.eu/federation/oauth/token",
10
- "apiGatewayAccessTokenAudienceId": "DFlp4emQ6jCLjNw8U7ko18zNjb9bwJ3ACrnP89iPsVv4zcChOEVRPHCT88Q7jPpNGCFa0hJEtV77rBj6L1XvOt-Jj71zxYb8yr7ujzQt669zSG",
11
- "apiGatewayConsumerKey": "API-Gateway-sandbox-URL-consumer-key-here",
12
- "apiGatewayServices": {
13
- },
14
- "services": {
15
- }
16
- },
17
- "modules": {
18
- "core": {
19
- "base": "/api",
20
- "userDetails": "/user-details"
21
- }
22
- }
23
- }
@@ -1,23 +0,0 @@
1
- {
2
- "openIdConnect": {
3
- "enabled": true,
4
- "stripIdTokenFromLocation": true,
5
- "maximumRequestRetries": 1,
6
- "metadataUrl": "https://webgate.ec.europa.eu/cas/oauth2/.well-known/openid-configuration",
7
- "spaClientId": "your-webapp-EU-Login-PROD-client-ID-here",
8
- "spaRedirectUrl": "https://your-production-server-url/",
9
- "apiGatewayAccessTokenUrl": "https://api.tech.ec.europa.eu/federation/oauth/token",
10
- "apiGatewayAccessTokenAudienceId": "DFlp4emQ6jCLjNw8U7ko18zNjb9bwJ3ACrnP89iPsVv4zcChOEVRPHCT88Q7jPpNGCFa0hJEtV77rBj6L1XvOt-Jj71zxYb8yr7ujzQt669zSG",
11
- "apiGatewayConsumerKey": "API-Gateway-production-URL-consumer-key-here",
12
- "apiGatewayServices": {
13
- },
14
- "services": {
15
- }
16
- },
17
- "modules": {
18
- "core": {
19
- "base": "/api",
20
- "userDetails": "/user-details"
21
- }
22
- }
23
- }
@@ -1,10 +0,0 @@
1
- {
2
- "openIdConnect": {
3
- "enabled": false
4
- },
5
- "modules": {
6
- "core": {
7
- "userDetails": "/user-details"
8
- }
9
- }
10
- }
@@ -1,11 +0,0 @@
1
- import { EuiEnvConfig } from '@eui/core';
2
-
3
- export const environment: EuiEnvConfig = {
4
- production: true,
5
- enableDevToolRedux: false,
6
- envDynamicConfig: {
7
- uri: 'assets/openid-login-config.json',
8
- deepMerge: true,
9
- merge: ['modules'],
10
- },
11
- };
@@ -1,11 +0,0 @@
1
- import { EuiEnvConfig } from '@eui/core';
2
-
3
- export const environment: EuiEnvConfig = {
4
- production: false,
5
- enableDevToolRedux: true,
6
- envDynamicConfig: {
7
- uri: 'assets/openid-login-config.json',
8
- deepMerge: true,
9
- merge: ['modules'],
10
- },
11
- };
@@ -1,21 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <title>Application name</title>
6
- <base href="/"> <!-- replaced by either app build script / post-build replacement -->
7
-
8
- <meta name="viewport" content="width=device-width, initial-scale=1">
9
- <link rel="icon" type="image/x-icon" href="favicon.ico">
10
- <script type="text/javascript" src="assets/jsrsasign-all-min.js"></script>
11
- <script type="text/javascript" src="assets/oidc-client.min.js"></script>
12
- <script type="text/javascript" src="assets/openid-login.js"></script>
13
- </head>
14
- <body>
15
- <app-root>
16
- <div id="loader-wrapper">
17
- <div id="loader"></div>
18
- </div>
19
- </app-root>
20
- </body>
21
- </html>