This repository contains a Groovy client which shows how to interact with Spring Security Rest for Grails plugin.
It uses the JSON Web Token (JWT) capabilities offered by plugin.
This project uses Codenarc
./gradlew check
./gradlew -DGRAILS_SERVER_URL=http://localhost:8080/tdstm
-DGRAILS_USERNAME=watson
-DGRAILS_PASSWORD=Foobar123!
test
This tests, after authenticating, calls with a GET request an endpoint named /api/projects. It expects a JSON array of projects to be returned.