This is an automated email from the ASF dual-hosted git repository.

deki pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/master by this push:
     new a70c455  fix jax_rs_spring_security sample
a70c455 is described below

commit a70c45597c03a0d2365f9273a60fda5182c22457
Author: Dennis Kieselhorst <m...@dekies.de>
AuthorDate: Fri Aug 17 13:33:24 2018 +0200

    fix jax_rs_spring_security sample
---
 distribution/src/main/release/samples/jax_rs/spring_security/pom.xml    | 2 +-
 .../samples/jax_rs/spring_security/src/main/webapp/WEB-INF/beans.xml    | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/distribution/src/main/release/samples/jax_rs/spring_security/pom.xml 
b/distribution/src/main/release/samples/jax_rs/spring_security/pom.xml
index ca4d30b..3da2b15 100644
--- a/distribution/src/main/release/samples/jax_rs/spring_security/pom.xml
+++ b/distribution/src/main/release/samples/jax_rs/spring_security/pom.xml
@@ -31,7 +31,7 @@
     </parent>
     <properties>
         <cxf.version>${project.version}</cxf.version>
-        <aspectj.version>1.5.4</aspectj.version>
+        <aspectj.version>1.9.1</aspectj.version>
         <spring.security.version>5.0.3.RELEASE</spring.security.version>
     </properties>
     <build>
diff --git 
a/distribution/src/main/release/samples/jax_rs/spring_security/src/main/webapp/WEB-INF/beans.xml
 
b/distribution/src/main/release/samples/jax_rs/spring_security/src/main/webapp/WEB-INF/beans.xml
index 67d60f8..8548491 100644
--- 
a/distribution/src/main/release/samples/jax_rs/spring_security/src/main/webapp/WEB-INF/beans.xml
+++ 
b/distribution/src/main/release/samples/jax_rs/spring_security/src/main/webapp/WEB-INF/beans.xml
@@ -44,10 +44,12 @@
     </security:http>
     <security:authentication-manager>
       <security:authentication-provider>
+        <security:password-encoder ref="noopEncoder"/>
         <security:user-service>
             <security:user name="bob" password="bobspassword" 
authorities="ROLE_CUSTOMER"/>
             <security:user name="fred" password="fredspassword" 
authorities="ROLE_CUSTOMER, ROLE_ADMIN"/>
         </security:user-service>
       </security:authentication-provider>
     </security:authentication-manager>
+    <bean id="noopEncoder" 
class="org.springframework.security.crypto.password.NoOpPasswordEncoder"/>
 </beans>

Reply via email to