Groovy Client - Grails Spring Security Rest Plugin

Build Status Download

Introduction

This is a groovy client to interact with the Grails Spring Security Rest Plugin

Installation

repositories {
    jcenter()
    ...
    ..
    .
}

dependencies {
    ...
    ..
    .
    compile 'sdelamo.libs:groovy-client-grails-spring-security-rest:0.3.9'
}

Usage

Login

def client = new GrailsSpringSecurityRestClient()
JwtResponse rsp = client.login {
    serverUrl 'http://yourgrailsapp.com'
    username 'joe@gmail.com'
    password 'secret'
}

Refresh

JwtResponse rsp = client.refresh {
    serverUrl 'http://yourgrailsapp.com'
    refreshToken 'xxxxxxxxxxx'
}

Bugs

To report any bug, please use the project Issues section on GitHub.