my primary interest in implementing this, was to investigate the fundamental handling with JWT. furthermore i wanted to examine options to embedd docker into my daily work.
the demo contains a jaxrs backend, bundled into a docker container. The backend has s hello Resoruce and container request filter, which authenticates and authorizes a user,when the provided password is 42. The integration test therefore tests the following communication sequence.
- GET: to an unsecured resource app/hello?message=dude
- POST: Login via form post app/login
- Extracting the bearer token
- GET: requesting a secured resource app/hello/secured?message=dude with auth token
##Requirements
- Java 8 JEE7
- Docker
- Maven
the following sources have been used to realize this demo.