andrebiegel / jwt-jax-rs

JWT based auth in jax-rs JEE8 vs JEE7 vs JEE6

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

JWT based auth in jax-rs JEE8 vs JEE7 vs JEE6

License:Apache License 2.0


Languages

Language:Java 83.5%Language:HTML 7.8%Language:JavaScript 4.4%Language:Shell 4.3%