Skip to content

andrebiegel/jwt-jax-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

dc4af12 · Nov 21, 2017

History

20 Commits
Sep 5, 2017
Sep 5, 2017
Nov 21, 2017
Oct 6, 2017
Oct 4, 2017
Oct 4, 2017
Sep 5, 2017
Aug 14, 2017
Aug 22, 2017
Sep 4, 2017
Sep 5, 2017
Sep 5, 2017
Aug 22, 2017
Sep 4, 2017

Repository files navigation

JWT secured jaxrs implemented with an container request filter

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.

Demo

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.

  1. GET: to an unsecured resource app/hello?message=dude
  2. POST: Login via form post app/login
  3. Extracting the bearer token
  4. GET: requesting a secured resource app/hello/secured?message=dude with auth token

##Requirements

  • Java 8 JEE7
  • Docker
  • Maven

Sources

the following sources have been used to realize this demo.