kaleidos / grails-security-stateless

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

Grails 3 - Does this plugin available for Grails 3 #42

Open bilalsha opened 7 years ago

bilalsha commented 7 years ago

I want to know if this plugin is available for grails 3 .

gokhanakgul commented 7 years ago

for grails 3 support http://alvarosanchez.github.io/grails-spring-security-rest/latest/docs/#_jwt_support

ppazos commented 5 years ago

Also looking for using this one on a grails 3 app, and don't want to use spring security at all. If it doesn't work, will create a new plugin for grails 3 with the same purpose and most of the logic present on this one.

pabloalba commented 5 years ago

Hi. We don't have time to migrate it to Grails 3 for now. You are most welcome to create a new one, and to use as much logic from ours as you want :)

ppazos commented 5 years ago

@pabloalba I have some minimal version of the plugin working in Grails 3, the thing is, I don't need to use the spring security integration, so didn't use that code, I used the Cry[toService, UrlSafeBase64Utils, the JwtStatelessTokenProvider (I don't need the default provider yet), the SecuredStateless annotation and moved the SecurityStatelessFilters to a Grails 3 interceptor/

I then interceptor I have some stuff hardcoded that would move to the config, but I think the basic flows will work soon (generate token, check token).

Also have some doubts about the username keyword currently used in to generate the token, I would like to delegate that to the user, so the user configures everything and the plugin doesn't make any assumptions on attribute names or class names. Will notify here when the basic plugin is available.