Find file History
Latest commit 7687aab Oct 6, 2016 @agoncal Typo
Permalink
..
Failed to load latest commit information.
src Typo Oct 6, 2016
README.md Improving tests Oct 3, 2016
pom.xml Refactoring code Oct 3, 2016

README.md

Sample - JAX-RS 2.0 - JWT

Purpose of this sample

The purpose of this sample is to show you how to generate a JWT token at login, and then check it when the REST service is invoked (through name binding)

Read more on my blog

Compile and package

Being Maven centric, you can compile and package it with mvn clean compile, mvn clean package or mvn clean install.

Test the sample

This sample uses Arquillian for integration tests. So to execute it you have to :

  • Run WildFly on a separate process
  • mvn clean test -Parquillian-wildfly-remote

Or use the embedded version of WildFly

  • mvn clean test -Parquillian-wildfly-managed
antonio goncalves