From a2bdf20551e79f4cf4b440f5cdab534b243c9dcd Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Tue, 19 Feb 2019 12:54:01 -0500 Subject: [PATCH] GH-242: Remove jasypt dependency Fixes https://github.com/spring-projects/spring-integration-samples/issues/242 Since `jasypt` is not compatible with Spring Security and recommendation is to use BCrypt or NO-OP instead, remove its dependency and appropriate bean definitions in favor of NO-OP password encoding. The purpose of this `http-rest` application is out of Spring Security encoding capabilities --- build.gradle | 2 - intermediate/rest-http/pom.xml | 12 ----- .../src/main/resources/users.properties | 3 +- .../webapp/WEB-INF/config/security-config.xml | 32 ++----------- .../rest-http/src/main/webapp/WEB-INF/web.xml | 46 ++++++------------- 5 files changed, 20 insertions(+), 75 deletions(-) diff --git a/build.gradle b/build.gradle index f2ce6610..2b2749db 100644 --- a/build.gradle +++ b/build.gradle @@ -191,7 +191,6 @@ subprojects { subproject -> hsqldbVersion = '2.3.2' h2Version = '1.4.194' jacksonVersion = '2.9.8' - jasyptVersion = '1.7' javaxInjectVersion = '1' javaxMailVersion = '1.5.5' jodaTimeVersion = '1.6' @@ -1149,7 +1148,6 @@ project('rest-http') { compile "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion" compile "org.springframework.security:spring-security-web:$springSecurityVersion" compile "org.springframework.security:spring-security-config:$springSecurityVersion" - compile "org.jasypt:jasypt:$jasyptVersion" compile "org.apache.logging.log4j:log4j-core:$log4jVersion" } diff --git a/intermediate/rest-http/pom.xml b/intermediate/rest-http/pom.xml index 10658704..ce5f9d49 100644 --- a/intermediate/rest-http/pom.xml +++ b/intermediate/rest-http/pom.xml @@ -165,18 +165,6 @@ - - org.jasypt - jasypt - 1.7 - compile - - - jackson-module-kotlin - com.fasterxml.jackson.module - - - org.apache.logging.log4j log4j-core diff --git a/intermediate/rest-http/src/main/resources/users.properties b/intermediate/rest-http/src/main/resources/users.properties index 170134bd..37b0fcee 100644 --- a/intermediate/rest-http/src/main/resources/users.properties +++ b/intermediate/rest-http/src/main/resources/users.properties @@ -1,2 +1 @@ -#REST HTTP User - Password is 'spring' -SPRING=gI/OZ3yejUtSxsF9XySg5TfFJFo=,ROLE_REST_HTTP_USER,enabled \ No newline at end of file +SPRING={noop}spring,ROLE_REST_HTTP_USER,enabled diff --git a/intermediate/rest-http/src/main/webapp/WEB-INF/config/security-config.xml b/intermediate/rest-http/src/main/webapp/WEB-INF/config/security-config.xml index 1bf85f93..2f797298 100644 --- a/intermediate/rest-http/src/main/webapp/WEB-INF/config/security-config.xml +++ b/intermediate/rest-http/src/main/webapp/WEB-INF/config/security-config.xml @@ -1,6 +1,7 @@ - + + - + - - - - - - - - - - - - - - - diff --git a/intermediate/rest-http/src/main/webapp/WEB-INF/web.xml b/intermediate/rest-http/src/main/webapp/WEB-INF/web.xml index 64cfe746..d7563ba2 100644 --- a/intermediate/rest-http/src/main/webapp/WEB-INF/web.xml +++ b/intermediate/rest-http/src/main/webapp/WEB-INF/web.xml @@ -1,19 +1,19 @@ - - + + Spring Integration Rest HTTP Path Usage Demo - + contextConfigLocation - /WEB-INF/config/web-application-config.xml + /WEB-INF/config/web-application-config.xml - + - - - - org.springframework.web.util.Log4jConfigListener - - +