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:57:18 UTC
[camel] branch master updated: Fixing spring security demo
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 1427fc3 Fixing spring security demo
1427fc3 is described below
commit 1427fc330f1e401c99208171d5067fa31717e9de
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">