0 Replies Latest reply on Aug 17, 2016 3:41 PM by fpezzati

    Wildfly 10 and Jaspic strange behavior

    fpezzati Newbie

      Hello,

       

      I'm studying Jaspic on Wildfly 10 and I'm facing a problem. When I do a call to a secured rest (resteasy) endpoint I got an empty response, even if the ServerAuthModule validate the request giving back an AuthStatus.SUCCESS. Here is my simple project:

       

      https://github.com/fpezzati/jaspicrepo/

       

      I tested the secured endpoint with cURL, here are the commands I use:

       

      curl -H "Content-Type: application/json" -X POST -d '{"username":"xxx","password":"xxx"}' http://localhost:8080/JaspicWeb/services/user/login

      curl -H "Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NzE0NzE1ODcsInN1YiI6InVzZXJBIn0.Gyf7w2192vlz3uSwjwtf8z1p9n9k3IqtQMQrubA7oYI" -X GET http://localhost:8080/JaspicWeb/services/user/userA

       

      As you can see I'm using JWT token. My simple webapp runs on a Wildfly 10 with RestEasy. I also provide the standalone.xml I use to run Wildfly.