kaleidos / grails-security-stateless

Grails plugin to implement stateless authentication using Spring Security
Apache License 2.0
17 stars 8 forks source link

Change generateToken to add salt as optional on both providers #23

Closed mgdelacroix closed 9 years ago

mgdelacroix commented 9 years ago

The token salt is an optional security technique that plugin users may or may not implement, so both LegacyStatelessTokenProvider and JwtStatelessTokenProvider have been modified to accept salt as an optional parameter.

The methods themselves already supported salt being null, so nothing more than the sign of the method have been changed, and tests added.