Project to deploy a CXF REST STS web application in docker
This project contains a web application which is an Apache CXF Security Token Service (STS). Clients can authenticate to the STS by HTTP Basic Authentication (user: "alice", password: "security"), and obtain a SAML or JWT token in return via the REST interface of the STS.
- mvn clean install
- docker build -t coheigea/cxf-sts-rest .
- docker run -p 8080:8080 coheigea/cxf-sts-rest
To get a SAML token:
To get a JWT:
To get a (plain) JWT without any wrapping using curl:
curl -u alice:security -H "Accept: text/plain" http://localhost:8080/cxf-sts-rest/SecurityTokenService/token/jwt
This project is provided as a quick and easy way to play around with the Apache CXF STS. It should not be deployed in production as it uses default security credentials, etc.