This is an automated email from the ASF dual-hosted git repository. coheigea pushed a commit to branch camel-2.23.x in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-2.23.x by this push: new 0679045 Fixing spring security demo 0679045 is described below commit 06790451343dae90d87ba967dc5aaef16bc4553a Author: Colm O hEigeartaigh <cohei...@apache.org> AuthorDate: Thu Feb 7 15:56:45 2019 +0000 Fixing spring security demo --- examples/camel-example-spring-security/README.md | 4 ++-- .../src/main/resources/camel-context.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/camel-example-spring-security/README.md b/examples/camel-example-spring-security/README.md index 451662a..7c56993 100644 --- a/examples/camel-example-spring-security/README.md +++ b/examples/camel-example-spring-security/README.md @@ -15,8 +15,8 @@ To run the example, you need to start up the server and copy the .war to the app The example consumes messages from a servlet endpoint which is secured by Spring Security with http basic authentication, there are two service: - <http://localhost:8080/camel-spring-security-${version}/camel/user> is for the authenticated user whose role is ROLE_USER - <http://localhost:8080/camel-spring-security-${version}/camel/admin> is for the authenticated user whose role is ROLE_ADMIN + <http://localhost:8080/camel-example-spring-security-${version}/camel/user> is for the authenticated user whose role is ROLE_USER + <http://localhost:8080/camel-example-spring-security-${version}/camel/admin> is for the authenticated user whose role is ROLE_ADMIN Then you can use the script in the client directory to send the request and check the response, diff --git a/examples/camel-example-spring-security/src/main/resources/camel-context.xml b/examples/camel-example-spring-security/src/main/resources/camel-context.xml index 416ba06..7ab86b8 100644 --- a/examples/camel-example-spring-security/src/main/resources/camel-context.xml +++ b/examples/camel-example-spring-security/src/main/resources/camel-context.xml @@ -40,8 +40,8 @@ </spring-security:authentication-manager> <spring-security:user-service id="userDetailsService"> - <spring-security:user name="jim" password="jimspassword" authorities="ROLE_USER, ROLE_ADMIN"/> - <spring-security:user name="bob" password="bobspassword" authorities="ROLE_USER"/> + <spring-security:user name="jim" password="{noop}jimspassword" authorities="ROLE_USER, ROLE_ADMIN"/> + <spring-security:user name="bob" password="{noop}bobspassword" authorities="ROLE_USER"/> </spring-security:user-service> <bean id="accessDecisionManager" class="org.springframework.security.access.vote.AffirmativeBased">