blob: 6dbfa8a6e4f56dabb3698db86a2ac48034f5a549 [file] [log] [blame]
== Camel Spring Security Example
=== Introduction
This example shows how to leverage the Spring Security to secure the
camel endpoint.
=== Build
You will need to compile this example first:
----
$ mvn clean package
----
=== Run
To run the example, you need to start up the server and copy the .war to
the application server
The example consumes messages from a servlet endpoint which is secured
by Spring Security with http basic authentication, there are two
services:
* http://localhost:8080/camel-example-spring-security/camel/user
is for the authenticated user whose role is `ROLE_USER`
* http://localhost:8080/camel-example-spring-security/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, or use a web browser to access upper urls with the
user/password (`+jim/jimspassword+` with the admin and user role or
`+bob/bobspassword+` with the user role only).
=== Help and contributions
If you hit any problem using Camel or have some feedback, then please
https://camel.apache.org/community/support/[let us know].
We also love contributors, so
https://camel.apache.org/community/contributing/[get involved] :-)
The Camel riders!