(Quick Reference)

5 Token Generation - Reference Documentation

Authors: Alvaro Sanchez-Mariscal

Version: 1.4.0

5 Token Generation

The plugin comes prepackaged with 2 token generation strategies:

The strategy used is configurable in Config.groovy:

Config keyDefault value
grails.plugin.springsecurity.rest.token.generation.useSecureRandomtrue
grails.plugin.springsecurity.rest.token.generation.useUUIDfalse

Both of them generate tokens of 32 alphanumeric characters.

That should be enough for most of the human beings. But if you still want to provide your own implementation, simply write a class implementing TokenGenerator and wire it up in resources.groovy as tokenGenerator.