This is a groovy client to interact with the Grails Spring Security Rest Plugin
repositories {
jcenter()
...
..
.
}
dependencies {
...
..
.
compile 'sdelamo.libs:groovy-client-grails-spring-security-rest:0.3.9'
}
def client = new GrailsSpringSecurityRestClient()
JwtResponse rsp = client.login {
serverUrl 'http://yourgrailsapp.com'
username 'joe@gmail.com'
password 'secret'
}
JwtResponse rsp = client.refresh {
serverUrl 'http://yourgrailsapp.com'
refreshToken 'xxxxxxxxxxx'
}
To report any bug, please use the project Issues section on GitHub.