@eui/cli 15.4.0 → 15.4.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/.version.properties +1 -1
- package/LICENSE +296 -296
- package/README.md +26 -26
- package/bin/eui-cli.js +70 -70
- package/lib/build.js +153 -153
- package/lib/cli.js +111 -111
- package/lib/config.js +54 -54
- package/lib/generators.js +64 -64
- package/lib/install.js +54 -54
- package/lib/maven-build/build.xml +115 -115
- package/lib/maven-build/pom.xml +64 -64
- package/lib/post-build.js +33 -33
- package/lib/skeletons/_angular/base/.browserslistrc +16 -16
- package/lib/skeletons/_angular/base/.editorconfig +16 -16
- package/lib/skeletons/_angular/base/.euirc.json +8 -8
- package/lib/skeletons/_angular/base/.stylelintrc +24 -24
- package/lib/skeletons/_angular/base/README.md +26 -26
- package/lib/skeletons/_angular/base/angular.json +176 -175
- package/lib/skeletons/_angular/base/gitignore_TO_REPLACE +50 -50
- package/lib/skeletons/_angular/base/mock/app/models/user.js +8 -8
- package/lib/skeletons/_angular/base/mock/app/routes/index.js +5 -5
- package/lib/skeletons/_angular/base/mock/app/routes/user_routes.js +24 -24
- package/lib/skeletons/_angular/base/mock/db/db.json +12 -12
- package/lib/skeletons/_angular/base/mock/server.js +21 -21
- package/lib/skeletons/_angular/base/package.json +24 -24
- package/lib/skeletons/_angular/base/proxy-mock.conf.json +6 -6
- package/lib/skeletons/_angular/base/proxy.conf.json +6 -6
- package/lib/skeletons/_angular/base/src/.eslintrc.json +118 -118
- package/lib/skeletons/_angular/base/src/app/app-routing.module.ts +17 -17
- package/lib/skeletons/_angular/base/src/app/app-starter.service.ts +66 -66
- package/lib/skeletons/_angular/base/src/app/app.component.html +29 -29
- package/lib/skeletons/_angular/base/src/app/app.component.ts +51 -51
- package/lib/skeletons/_angular/base/src/app/app.module.ts +35 -35
- package/lib/skeletons/_angular/base/src/app/core/core.module.ts +87 -87
- package/lib/skeletons/_angular/base/src/app/core/reducers/index.ts +31 -31
- package/lib/skeletons/_angular/base/src/app/features/home/home-routing.module.ts +15 -15
- package/lib/skeletons/_angular/base/src/app/features/home/home.component.html +39 -39
- package/lib/skeletons/_angular/base/src/app/features/home/home.component.ts +11 -11
- package/lib/skeletons/_angular/base/src/app/features/home/home.module.ts +18 -18
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page1/page1.component.html +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page1/page1.component.ts +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page2/page2.component.html +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page2/page2.component.ts +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module1/module1-routing.module.ts +18 -18
- package/lib/skeletons/_angular/base/src/app/features/module1/module1.component.html +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module1/module1.component.ts +8 -8
- package/lib/skeletons/_angular/base/src/app/features/module1/module1.module.ts +21 -21
- package/lib/skeletons/_angular/base/src/app/features/module2/module2-routing.module.ts +16 -16
- package/lib/skeletons/_angular/base/src/app/features/module2/module2.component.html +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module2/module2.component.ts +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module2/module2.module.ts +17 -17
- package/lib/skeletons/_angular/base/src/app/shared/shared.module.ts +45 -45
- package/lib/skeletons/_angular/base/src/app/shared/testing/router.mock.ts +18 -18
- package/lib/skeletons/_angular/base/src/assets/config/env-json-config-dev.json +8 -8
- package/lib/skeletons/_angular/base/src/assets/config/env-json-config-prod.json +8 -8
- package/lib/skeletons/_angular/base/src/assets/config/env-json-config.json +7 -7
- package/lib/skeletons/_angular/base/src/assets/i18n/en.json +6 -6
- package/lib/skeletons/_angular/base/src/assets/i18n/fr.json +6 -6
- package/lib/skeletons/_angular/base/src/config/global.ts +20 -20
- package/lib/skeletons/_angular/base/src/config/index.ts +8 -8
- package/lib/skeletons/_angular/base/src/config/modules.ts +7 -7
- package/lib/skeletons/_angular/base/src/dummy.spec.ts +6 -6
- package/lib/skeletons/_angular/base/src/environments/environment.prod.ts +11 -11
- package/lib/skeletons/_angular/base/src/environments/environment.ts +11 -11
- package/lib/skeletons/_angular/base/src/index.html +21 -21
- package/lib/skeletons/_angular/base/src/karma.conf.js +7 -7
- package/lib/skeletons/_angular/base/src/main.ts +14 -14
- package/lib/skeletons/_angular/base/src/polyfills.ts +89 -89
- package/lib/skeletons/_angular/base/src/styles.scss +1 -1
- package/lib/skeletons/_angular/base/src/tsconfig.app.json +18 -18
- package/lib/skeletons/_angular/base/src/tsconfig.spec.json +14 -14
- package/lib/skeletons/_angular/base/tsconfig.json +27 -27
- package/lib/skeletons/_angular/base-mobile/angular.json +160 -160
- package/lib/skeletons/_angular/base-mobile/ionic.config.json +5 -5
- package/lib/skeletons/_angular/base-mobile/ngsw-config.json +33 -33
- package/lib/skeletons/_angular/base-mobile/package.json +28 -28
- package/lib/skeletons/_angular/base-mobile/src/app/app-routing.module.ts +17 -17
- package/lib/skeletons/_angular/base-mobile/src/app/app-starter.service.ts +73 -73
- package/lib/skeletons/_angular/base-mobile/src/app/app.component.html +27 -27
- package/lib/skeletons/_angular/base-mobile/src/app/app.component.ts +55 -55
- package/lib/skeletons/_angular/base-mobile/src/app/app.module.ts +44 -44
- package/lib/skeletons/_angular/base-mobile/src/app/core/core.module.ts +89 -89
- package/lib/skeletons/_angular/base-mobile/src/app/core/reducers/index.ts +31 -31
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home-routing.module.ts +15 -15
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.component.html +14 -14
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.component.ts +11 -11
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.module.ts +18 -18
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page1/page1.component.html +11 -11
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page1/page1.component.ts +7 -7
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page2/page2.component.html +11 -11
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page2/page2.component.ts +7 -7
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1-routing.module.ts +18 -18
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.component.html +15 -15
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.component.ts +17 -17
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.module.ts +21 -21
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2-routing.module.ts +16 -16
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.component.html +11 -11
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.component.ts +7 -7
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.module.ts +17 -17
- package/lib/skeletons/_angular/base-mobile/src/app/shared/shared.module.ts +16 -16
- package/lib/skeletons/_angular/base-mobile/src/app/shared/testing/router.mock.ts +18 -18
- package/lib/skeletons/_angular/base-mobile/src/index.html +27 -27
- package/lib/skeletons/_angular/base-mobile/src/manifest.webmanifest +51 -51
- package/lib/skeletons/_angular/base-mobile/src/tsconfig.app.json +19 -19
- package/lib/skeletons/_angular/options/ecl/angular.json +193 -193
- package/lib/skeletons/_angular/options/ecl/src/app/app.component.html +262 -262
- package/lib/skeletons/_angular/options/ecl/src/app/app.component.ts +59 -59
- package/lib/skeletons/_angular/options/ecl/src/app/features/home/home.component.html +70 -70
- package/lib/skeletons/_angular/options/ecl/src/app/features/module1/components/page1/page1.component.html +1 -1
- package/lib/skeletons/_angular/options/ecl/src/app/features/module1/components/page2/page2.component.html +1 -1
- package/lib/skeletons/_angular/options/ecl/src/app/features/module1/module1.component.html +1 -1
- package/lib/skeletons/_angular/options/ecl/src/app/features/module2/module2.component.html +1 -1
- package/lib/skeletons/_angular/options/ecl/src/app/shared/shared.module.ts +19 -19
- package/lib/skeletons/_angular/options/ecl/src/config/global.ts +20 -20
- package/lib/skeletons/_angular/options/openid-jwt/package.json +22 -22
- package/lib/skeletons/_angular/options/openid-jwt/src/app/core/core.module.ts +94 -94
- package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-dev.json +24 -24
- package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-local-mock.json +10 -10
- package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-local.json +23 -23
- package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-prod.json +23 -23
- package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config.json +10 -10
- package/lib/skeletons/_angular/options/openid-jwt/src/environments/environment.prod.ts +11 -11
- package/lib/skeletons/_angular/options/openid-jwt/src/environments/environment.ts +11 -11
- package/lib/skeletons/_angular/options/openid-jwt/src/index.html +21 -21
- package/lib/skeletons/web-maven/package.json +17 -17
- package/lib/skeletons/web-maven/pom.xml +55 -55
- package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/servlet/SpringWebApplicationInitializer.java +22 -22
- package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/spring/SpringRestConfiguration.java +24 -24
- package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/spring/rest/UserDetailsResource.java +23 -23
- package/lib/skeletons/web-maven/src/main/resources/ecas-config-application-name.xml +7 -7
- package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/dispatcher-servlet.xml +10 -10
- package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/web.xml +38 -38
- package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/weblogic.xml +15 -15
- package/lib/skeletons/web-maven/src/main/webapp/index.jsp +29 -29
- package/lib/skeletons/web-spring-boot/myapp-web/pom.xml +77 -77
- package/lib/skeletons/web-spring-boot/myapp-web-rest/pom.xml +84 -84
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/MyappApplication.java +46 -46
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/domain/Address.java +65 -65
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/domain/Building.java +44 -44
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/repositories/BuildingRepository.java +10 -10
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/BuildingResource.java +26 -26
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/SwaggerConfig.java +20 -20
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/HateoasPageableHandlerMethodArgumentResolver.java +45 -45
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/HypermediaSupport.java +25 -25
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/PageJsonSerializer.java +17 -17
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/CachingPreventionFilter.java +29 -29
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/CsrfPreventionFilter.java +35 -35
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/FakeAuthenticationFilter.java +372 -372
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/SecurityConfig.java +47 -47
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingSearchCriteria.java +25 -25
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingService.java +9 -9
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingServiceImpl.java +25 -25
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/resources/data.sql +10 -10
- package/lib/skeletons/web-spring-boot/pom.xml +30 -30
- package/lib/skeletons/web-symfony/myapp-web/angular.json +170 -170
- package/lib/skeletons/web-symfony/myapp-web/package.json +23 -23
- package/lib/skeletons/web-symfony/myapp-web/src/app/app-routing.module.ts +18 -18
- package/lib/skeletons/web-symfony/myapp-web/src/app/app.component.ts +77 -77
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/components/products.component.html +160 -160
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/components/products.component.ts +104 -104
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/models/product.model.ts +6 -6
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/products-routing.module.ts +16 -16
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/products.module.ts +16 -16
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/services/products.service.ts +29 -29
- package/lib/skeletons/web-symfony/myapp-web/src/environments/environment.ts +17 -17
- package/lib/skeletons/web-symfony/myapp-web-rest/.env +28 -28
- package/lib/skeletons/web-symfony/myapp-web-rest/bin/console +42 -42
- package/lib/skeletons/web-symfony/myapp-web-rest/composer.json +67 -67
- package/lib/skeletons/web-symfony/myapp-web-rest/composer.lock +3572 -3572
- package/lib/skeletons/web-symfony/myapp-web-rest/config/bootstrap.php +21 -21
- package/lib/skeletons/web-symfony/myapp-web-rest/config/bundles.php +12 -12
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/cache.yaml +19 -19
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/dev/routing.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/doctrine.yaml +29 -29
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/doctrine_migrations.yaml +5 -5
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/framework.yaml +17 -17
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/prod/doctrine.yaml +32 -32
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/routing.yaml +4 -4
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/sensio_framework_extra.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/test/framework.yaml +4 -4
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/test/routing.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/twig.yaml +4 -4
- package/lib/skeletons/web-symfony/myapp-web-rest/config/routes/annotations.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/routes/dev/twig.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/routes.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/services.yaml +27 -27
- package/lib/skeletons/web-symfony/myapp-web-rest/public/index.php +27 -27
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Controller/ProductController.php +196 -196
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Entity/Product.php +99 -99
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Kernel.php +53 -53
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Migrations/Version20190604101623.php +31 -31
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Migrations/Version20190604101638.php +35 -35
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Repository/ProductRepository.php +51 -51
- package/lib/skeletons/web-symfony/myapp-web-rest/symfony.lock +274 -274
- package/lib/skeletons/web-symfony/myapp-web-rest/templates/base.html.twig +12 -12
- package/lib/skeletons/web-symfony/myapp-web-rest/templates/product/index.html.twig +20 -20
- package/lib/utils.js +17 -17
- package/package.json +2 -2
package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-prod.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
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
|
+
{
|
|
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 +1,10 @@
|
|
|
1
|
-
{
|
|
2
|
-
"openIdConnect": {
|
|
3
|
-
"enabled": false
|
|
4
|
-
},
|
|
5
|
-
"modules": {
|
|
6
|
-
"core": {
|
|
7
|
-
"userDetails": "/user-details"
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"openIdConnect": {
|
|
3
|
+
"enabled": false
|
|
4
|
+
},
|
|
5
|
+
"modules": {
|
|
6
|
+
"core": {
|
|
7
|
+
"userDetails": "/user-details"
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
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
|
+
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 +1,11 @@
|
|
|
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
|
+
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 +1,21 @@
|
|
|
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>
|
|
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>
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "angular-app-web-maven-scripts",
|
|
3
|
-
"version": "0.1.0",
|
|
4
|
-
"license": "EUPL-1.1",
|
|
5
|
-
"description": "eUI JEE Spring Maven module starter app scripts",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"angular-install": "cd src/main/angular && yarn install",
|
|
8
|
-
"angular-build": "cd src/main/angular && npm run build",
|
|
9
|
-
"angular-build-prod": "cd src/main/angular && npm run build-prod",
|
|
10
|
-
"build": "npm run angular-build && mvn clean package",
|
|
11
|
-
"build-prod": "npm run angular-build-prod && mvn clean package",
|
|
12
|
-
"start": "cd src/main/angular && npm start",
|
|
13
|
-
"start-proxy": "cd src/main/angular && npm run start-proxy"
|
|
14
|
-
},
|
|
15
|
-
"private": true,
|
|
16
|
-
"repository": {}
|
|
17
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "angular-app-web-maven-scripts",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"license": "EUPL-1.1",
|
|
5
|
+
"description": "eUI JEE Spring Maven module starter app scripts",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"angular-install": "cd src/main/angular && yarn install",
|
|
8
|
+
"angular-build": "cd src/main/angular && npm run build",
|
|
9
|
+
"angular-build-prod": "cd src/main/angular && npm run build-prod",
|
|
10
|
+
"build": "npm run angular-build && mvn clean package",
|
|
11
|
+
"build-prod": "npm run angular-build-prod && mvn clean package",
|
|
12
|
+
"start": "cd src/main/angular && npm start",
|
|
13
|
+
"start-proxy": "cd src/main/angular && npm run start-proxy"
|
|
14
|
+
},
|
|
15
|
+
"private": true,
|
|
16
|
+
"repository": {}
|
|
17
|
+
}
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
3
|
-
<modelVersion>4.0.0</modelVersion>
|
|
4
|
-
|
|
5
|
-
<groupId>eu.europa.ec.digit</groupId>
|
|
6
|
-
<artifactId>application-name</artifactId>
|
|
7
|
-
<version>0.1.0-SNAPSHOT</version>
|
|
8
|
-
<packaging>war</packaging>
|
|
9
|
-
|
|
10
|
-
<dependencies>
|
|
11
|
-
<dependency>
|
|
12
|
-
<groupId>org.springframework</groupId>
|
|
13
|
-
<artifactId>spring-webmvc</artifactId>
|
|
14
|
-
<version>6.0.10</version>
|
|
15
|
-
</dependency>
|
|
16
|
-
<dependency>
|
|
17
|
-
<groupId>eu.europa.ec.digit.uxatec.eui</groupId>
|
|
18
|
-
<artifactId>eui-angular2-servlet</artifactId>
|
|
19
|
-
<version>1.0.0</version>
|
|
20
|
-
</dependency>
|
|
21
|
-
<dependency>
|
|
22
|
-
<groupId>eu.europa.ec.digit.iam.ecas.client</groupId>
|
|
23
|
-
<artifactId>ecas-weblogic-10.3-authprovider</artifactId>
|
|
24
|
-
<version>4.10.1</version>
|
|
25
|
-
<scope>provided</scope>
|
|
26
|
-
</dependency>
|
|
27
|
-
<!-- This Jackson dependency is only necessary for older versions of WebLogic: -->
|
|
28
|
-
<!--
|
|
29
|
-
<dependency>
|
|
30
|
-
<groupId>com.fasterxml.jackson.core</groupId>
|
|
31
|
-
<artifactId>jackson-databind</artifactId>
|
|
32
|
-
<version>2.2.3</version>
|
|
33
|
-
</dependency>
|
|
34
|
-
-->
|
|
35
|
-
</dependencies>
|
|
36
|
-
|
|
37
|
-
<build>
|
|
38
|
-
<plugins>
|
|
39
|
-
<plugin>
|
|
40
|
-
<groupId>org.apache.maven.plugins</groupId>
|
|
41
|
-
<artifactId>maven-war-plugin</artifactId>
|
|
42
|
-
<version>3.4.0</version>
|
|
43
|
-
<configuration>
|
|
44
|
-
<failOnMissingWebXml>false</failOnMissingWebXml>
|
|
45
|
-
<webResources>
|
|
46
|
-
<resource>
|
|
47
|
-
<directory>src/main/angular/dist</directory>
|
|
48
|
-
</resource>
|
|
49
|
-
</webResources>
|
|
50
|
-
</configuration>
|
|
51
|
-
</plugin>
|
|
52
|
-
</plugins>
|
|
53
|
-
</build>
|
|
54
|
-
|
|
55
|
-
</project>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
3
|
+
<modelVersion>4.0.0</modelVersion>
|
|
4
|
+
|
|
5
|
+
<groupId>eu.europa.ec.digit</groupId>
|
|
6
|
+
<artifactId>application-name</artifactId>
|
|
7
|
+
<version>0.1.0-SNAPSHOT</version>
|
|
8
|
+
<packaging>war</packaging>
|
|
9
|
+
|
|
10
|
+
<dependencies>
|
|
11
|
+
<dependency>
|
|
12
|
+
<groupId>org.springframework</groupId>
|
|
13
|
+
<artifactId>spring-webmvc</artifactId>
|
|
14
|
+
<version>6.0.10</version>
|
|
15
|
+
</dependency>
|
|
16
|
+
<dependency>
|
|
17
|
+
<groupId>eu.europa.ec.digit.uxatec.eui</groupId>
|
|
18
|
+
<artifactId>eui-angular2-servlet</artifactId>
|
|
19
|
+
<version>1.0.0</version>
|
|
20
|
+
</dependency>
|
|
21
|
+
<dependency>
|
|
22
|
+
<groupId>eu.europa.ec.digit.iam.ecas.client</groupId>
|
|
23
|
+
<artifactId>ecas-weblogic-10.3-authprovider</artifactId>
|
|
24
|
+
<version>4.10.1</version>
|
|
25
|
+
<scope>provided</scope>
|
|
26
|
+
</dependency>
|
|
27
|
+
<!-- This Jackson dependency is only necessary for older versions of WebLogic: -->
|
|
28
|
+
<!--
|
|
29
|
+
<dependency>
|
|
30
|
+
<groupId>com.fasterxml.jackson.core</groupId>
|
|
31
|
+
<artifactId>jackson-databind</artifactId>
|
|
32
|
+
<version>2.2.3</version>
|
|
33
|
+
</dependency>
|
|
34
|
+
-->
|
|
35
|
+
</dependencies>
|
|
36
|
+
|
|
37
|
+
<build>
|
|
38
|
+
<plugins>
|
|
39
|
+
<plugin>
|
|
40
|
+
<groupId>org.apache.maven.plugins</groupId>
|
|
41
|
+
<artifactId>maven-war-plugin</artifactId>
|
|
42
|
+
<version>3.4.0</version>
|
|
43
|
+
<configuration>
|
|
44
|
+
<failOnMissingWebXml>false</failOnMissingWebXml>
|
|
45
|
+
<webResources>
|
|
46
|
+
<resource>
|
|
47
|
+
<directory>src/main/angular/dist</directory>
|
|
48
|
+
</resource>
|
|
49
|
+
</webResources>
|
|
50
|
+
</configuration>
|
|
51
|
+
</plugin>
|
|
52
|
+
</plugins>
|
|
53
|
+
</build>
|
|
54
|
+
|
|
55
|
+
</project>
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
package eu.europa.ec.digit.eui.angular2clistarter.servlet;
|
|
2
|
-
|
|
3
|
-
import eu.europa.ec.digit.eui.angular2clistarter.spring.SpringRestConfiguration;
|
|
4
|
-
import org.springframework.web.WebApplicationInitializer;
|
|
5
|
-
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
|
|
6
|
-
|
|
7
|
-
public class SpringWebApplicationInitializer extends AbstractAnnotationConfigDispatcherServletInitializer implements WebApplicationInitializer {
|
|
8
|
-
@Override
|
|
9
|
-
protected Class<?>[] getRootConfigClasses() {
|
|
10
|
-
return new Class[] { SpringRestConfiguration.class };
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@Override
|
|
14
|
-
protected Class<?>[] getServletConfigClasses() {
|
|
15
|
-
return new Class[] { SpringRestConfiguration.class };
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@Override
|
|
19
|
-
protected String[] getServletMappings() {
|
|
20
|
-
return new String[] { "/api/*" };
|
|
21
|
-
}
|
|
22
|
-
}
|
|
1
|
+
package eu.europa.ec.digit.eui.angular2clistarter.servlet;
|
|
2
|
+
|
|
3
|
+
import eu.europa.ec.digit.eui.angular2clistarter.spring.SpringRestConfiguration;
|
|
4
|
+
import org.springframework.web.WebApplicationInitializer;
|
|
5
|
+
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
|
|
6
|
+
|
|
7
|
+
public class SpringWebApplicationInitializer extends AbstractAnnotationConfigDispatcherServletInitializer implements WebApplicationInitializer {
|
|
8
|
+
@Override
|
|
9
|
+
protected Class<?>[] getRootConfigClasses() {
|
|
10
|
+
return new Class[] { SpringRestConfiguration.class };
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@Override
|
|
14
|
+
protected Class<?>[] getServletConfigClasses() {
|
|
15
|
+
return new Class[] { SpringRestConfiguration.class };
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@Override
|
|
19
|
+
protected String[] getServletMappings() {
|
|
20
|
+
return new String[] { "/api/*" };
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
package eu.europa.ec.digit.eui.angular2clistarter.spring;
|
|
2
|
-
|
|
3
|
-
import org.springframework.context.annotation.Bean;
|
|
4
|
-
import org.springframework.context.annotation.ComponentScan;
|
|
5
|
-
import org.springframework.context.annotation.Configuration;
|
|
6
|
-
import org.springframework.web.servlet.config.annotation.CorsRegistry;
|
|
7
|
-
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
|
|
8
|
-
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
|
9
|
-
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
|
|
10
|
-
|
|
11
|
-
@Configuration
|
|
12
|
-
@EnableWebMvc
|
|
13
|
-
@ComponentScan(basePackages = "eu.europa.ec.digit.eui.angular2clistarter.spring.rest")
|
|
14
|
-
public class SpringRestConfiguration extends WebMvcConfigurerAdapter {
|
|
15
|
-
@Bean
|
|
16
|
-
public WebMvcConfigurer corsConfigurer() {
|
|
17
|
-
return new WebMvcConfigurerAdapter() {
|
|
18
|
-
@Override
|
|
19
|
-
public void addCorsMappings(CorsRegistry registry) {
|
|
20
|
-
registry.addMapping("/**").allowedOrigins("*").allowedMethods("*").allowedHeaders("*").allowCredentials(true);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
}
|
|
1
|
+
package eu.europa.ec.digit.eui.angular2clistarter.spring;
|
|
2
|
+
|
|
3
|
+
import org.springframework.context.annotation.Bean;
|
|
4
|
+
import org.springframework.context.annotation.ComponentScan;
|
|
5
|
+
import org.springframework.context.annotation.Configuration;
|
|
6
|
+
import org.springframework.web.servlet.config.annotation.CorsRegistry;
|
|
7
|
+
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
|
|
8
|
+
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
|
9
|
+
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
|
|
10
|
+
|
|
11
|
+
@Configuration
|
|
12
|
+
@EnableWebMvc
|
|
13
|
+
@ComponentScan(basePackages = "eu.europa.ec.digit.eui.angular2clistarter.spring.rest")
|
|
14
|
+
public class SpringRestConfiguration extends WebMvcConfigurerAdapter {
|
|
15
|
+
@Bean
|
|
16
|
+
public WebMvcConfigurer corsConfigurer() {
|
|
17
|
+
return new WebMvcConfigurerAdapter() {
|
|
18
|
+
@Override
|
|
19
|
+
public void addCorsMappings(CorsRegistry registry) {
|
|
20
|
+
registry.addMapping("/**").allowedOrigins("*").allowedMethods("*").allowedHeaders("*").allowCredentials(true);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
package eu.europa.ec.digit.eui.angular2clistarter.spring.rest;
|
|
2
|
-
|
|
3
|
-
import eu.cec.digit.ecas.client.jaas.UserDetailsAccessible;
|
|
4
|
-
import org.springframework.web.bind.annotation.RequestMapping;
|
|
5
|
-
import org.springframework.web.bind.annotation.RequestMethod;
|
|
6
|
-
import org.springframework.web.bind.annotation.RestController;
|
|
7
|
-
|
|
8
|
-
import javax.servlet.http.HttpServletRequest;
|
|
9
|
-
import java.security.Principal;
|
|
10
|
-
|
|
11
|
-
@RestController
|
|
12
|
-
@RequestMapping("user-details")
|
|
13
|
-
public class UserDetailsResource {
|
|
14
|
-
@RequestMapping(method = RequestMethod.GET)
|
|
15
|
-
public UserDetailsAccessible getIdentity(HttpServletRequest request) {
|
|
16
|
-
Principal principal = request.getUserPrincipal();
|
|
17
|
-
if (principal instanceof UserDetailsAccessible) {
|
|
18
|
-
return (UserDetailsAccessible) principal;
|
|
19
|
-
} else {
|
|
20
|
-
throw new RuntimeException("ECAS needs to be configured to expose the UserDetails: set the property requestingUserDetails (eu.cec.digit.ecas.client.filter.requestingUserDetails) to true.");
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
1
|
+
package eu.europa.ec.digit.eui.angular2clistarter.spring.rest;
|
|
2
|
+
|
|
3
|
+
import eu.cec.digit.ecas.client.jaas.UserDetailsAccessible;
|
|
4
|
+
import org.springframework.web.bind.annotation.RequestMapping;
|
|
5
|
+
import org.springframework.web.bind.annotation.RequestMethod;
|
|
6
|
+
import org.springframework.web.bind.annotation.RestController;
|
|
7
|
+
|
|
8
|
+
import javax.servlet.http.HttpServletRequest;
|
|
9
|
+
import java.security.Principal;
|
|
10
|
+
|
|
11
|
+
@RestController
|
|
12
|
+
@RequestMapping("user-details")
|
|
13
|
+
public class UserDetailsResource {
|
|
14
|
+
@RequestMapping(method = RequestMethod.GET)
|
|
15
|
+
public UserDetailsAccessible getIdentity(HttpServletRequest request) {
|
|
16
|
+
Principal principal = request.getUserPrincipal();
|
|
17
|
+
if (principal instanceof UserDetailsAccessible) {
|
|
18
|
+
return (UserDetailsAccessible) principal;
|
|
19
|
+
} else {
|
|
20
|
+
throw new RuntimeException("ECAS needs to be configured to expose the UserDetails: set the property requestingUserDetails (eu.cec.digit.ecas.client.filter.requestingUserDetails) to true.");
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<client-config xmlns="https://ecas.ec.europa.eu/cas/schemas/client-config/ecas/">
|
|
3
|
-
<requestingUserDetails>true</requestingUserDetails>
|
|
4
|
-
<redirectionInterceptors>
|
|
5
|
-
<redirectionInterceptor>eu.cec.digit.ecas.client.http.ajax.JsonAjaxRedirectionInterceptor</redirectionInterceptor>
|
|
6
|
-
</redirectionInterceptors>
|
|
7
|
-
</client-config>
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<client-config xmlns="https://ecas.ec.europa.eu/cas/schemas/client-config/ecas/">
|
|
3
|
+
<requestingUserDetails>true</requestingUserDetails>
|
|
4
|
+
<redirectionInterceptors>
|
|
5
|
+
<redirectionInterceptor>eu.cec.digit.ecas.client.http.ajax.JsonAjaxRedirectionInterceptor</redirectionInterceptor>
|
|
6
|
+
</redirectionInterceptors>
|
|
7
|
+
</client-config>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
3
|
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
4
|
-
xmlns:mvc="http://www.springframework.org/schema/mvc"
|
|
5
|
-
xmlns:context="http://www.springframework.org/schema/context"
|
|
6
|
-
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd
|
|
7
|
-
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
|
|
8
|
-
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd">
|
|
9
|
-
<!-- Intentionally empty. -->
|
|
10
|
-
<!-- This file is here to work-around a bug in Spring + Weblogic where a default XML-based dispatcher servlet is expecting a /WEB-INF/dispatcher-servlet.xml file. -->
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
3
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
4
|
+
xmlns:mvc="http://www.springframework.org/schema/mvc"
|
|
5
|
+
xmlns:context="http://www.springframework.org/schema/context"
|
|
6
|
+
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd
|
|
7
|
+
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
|
|
8
|
+
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd">
|
|
9
|
+
<!-- Intentionally empty. -->
|
|
10
|
+
<!-- This file is here to work-around a bug in Spring + Weblogic where a default XML-based dispatcher servlet is expecting a /WEB-INF/dispatcher-servlet.xml file. -->
|
|
11
11
|
</beans>
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
|
|
3
|
-
<!-- This is an example security constraint for a resource that requires only authentication but not authorization: -->
|
|
4
|
-
<security-constraint>
|
|
5
|
-
<web-resource-collection>
|
|
6
|
-
<web-resource-name>protected</web-resource-name>
|
|
7
|
-
<url-pattern>/*</url-pattern>
|
|
8
|
-
<http-method-omission>OPTIONS</http-method-omission>
|
|
9
|
-
</web-resource-collection>
|
|
10
|
-
<auth-constraint>
|
|
11
|
-
<description>
|
|
12
|
-
Requires users to be authenticated but
|
|
13
|
-
does not require them to be authorized.
|
|
14
|
-
</description>
|
|
15
|
-
<role-name>*</role-name>
|
|
16
|
-
</auth-constraint>
|
|
17
|
-
<user-data-constraint>
|
|
18
|
-
<description>
|
|
19
|
-
Encryption is not required for this area.
|
|
20
|
-
</description>
|
|
21
|
-
<transport-guarantee>NONE</transport-guarantee>
|
|
22
|
-
</user-data-constraint>
|
|
23
|
-
</security-constraint>
|
|
24
|
-
|
|
25
|
-
<welcome-file-list>
|
|
26
|
-
<welcome-file>/index.jsp</welcome-file>
|
|
27
|
-
</welcome-file-list>
|
|
28
|
-
|
|
29
|
-
<mime-mapping>
|
|
30
|
-
<extension>woff2</extension>
|
|
31
|
-
<mime-type>font/woff2</mime-type>
|
|
32
|
-
</mime-mapping>
|
|
33
|
-
|
|
34
|
-
<mime-mapping>
|
|
35
|
-
<extension>json</extension>
|
|
36
|
-
<mime-type>application/json</mime-type>
|
|
37
|
-
</mime-mapping>
|
|
38
|
-
</web-app>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
|
|
3
|
+
<!-- This is an example security constraint for a resource that requires only authentication but not authorization: -->
|
|
4
|
+
<security-constraint>
|
|
5
|
+
<web-resource-collection>
|
|
6
|
+
<web-resource-name>protected</web-resource-name>
|
|
7
|
+
<url-pattern>/*</url-pattern>
|
|
8
|
+
<http-method-omission>OPTIONS</http-method-omission>
|
|
9
|
+
</web-resource-collection>
|
|
10
|
+
<auth-constraint>
|
|
11
|
+
<description>
|
|
12
|
+
Requires users to be authenticated but
|
|
13
|
+
does not require them to be authorized.
|
|
14
|
+
</description>
|
|
15
|
+
<role-name>*</role-name>
|
|
16
|
+
</auth-constraint>
|
|
17
|
+
<user-data-constraint>
|
|
18
|
+
<description>
|
|
19
|
+
Encryption is not required for this area.
|
|
20
|
+
</description>
|
|
21
|
+
<transport-guarantee>NONE</transport-guarantee>
|
|
22
|
+
</user-data-constraint>
|
|
23
|
+
</security-constraint>
|
|
24
|
+
|
|
25
|
+
<welcome-file-list>
|
|
26
|
+
<welcome-file>/index.jsp</welcome-file>
|
|
27
|
+
</welcome-file-list>
|
|
28
|
+
|
|
29
|
+
<mime-mapping>
|
|
30
|
+
<extension>woff2</extension>
|
|
31
|
+
<mime-type>font/woff2</mime-type>
|
|
32
|
+
</mime-mapping>
|
|
33
|
+
|
|
34
|
+
<mime-mapping>
|
|
35
|
+
<extension>json</extension>
|
|
36
|
+
<mime-type>application/json</mime-type>
|
|
37
|
+
</mime-mapping>
|
|
38
|
+
</web-app>
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app"
|
|
3
|
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
4
|
-
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3.0.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.8/weblogic-web-app.xsd">
|
|
5
|
-
|
|
6
|
-
<session-descriptor>
|
|
7
|
-
<cookie-path>/application-name</cookie-path>
|
|
8
|
-
</session-descriptor>
|
|
9
|
-
|
|
10
|
-
<!-- We want to allow some resources to be accessed by authenticated users who do not possess any role -->
|
|
11
|
-
<container-descriptor>
|
|
12
|
-
<allow-all-roles>true</allow-all-roles>
|
|
13
|
-
</container-descriptor>
|
|
14
|
-
|
|
15
|
-
<context-root>/application-name</context-root>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app"
|
|
3
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
4
|
+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3.0.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.8/weblogic-web-app.xsd">
|
|
5
|
+
|
|
6
|
+
<session-descriptor>
|
|
7
|
+
<cookie-path>/application-name</cookie-path>
|
|
8
|
+
</session-descriptor>
|
|
9
|
+
|
|
10
|
+
<!-- We want to allow some resources to be accessed by authenticated users who do not possess any role -->
|
|
11
|
+
<container-descriptor>
|
|
12
|
+
<allow-all-roles>true</allow-all-roles>
|
|
13
|
+
</container-descriptor>
|
|
14
|
+
|
|
15
|
+
<context-root>/application-name</context-root>
|
|
16
16
|
</weblogic-web-app>
|