You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by co...@apache.org on 2019/02/07 15:58:51 UTC
[camel] branch camel-2.x updated: Fixing spring security demo
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch camel-2.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-2.x by this push:
new 2ae431f Fixing spring security demo
2ae431f is described below
commit 2ae431f096afcafdb99f40723c80c1a7e8ea3da8
Author: Colm O hEigeartaigh <co...@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">