spring security oauth grails 3

211 views
Skip to first unread message

Enrico

unread,
Aug 20, 2015, 3:00:36 AM8/20/15
to Grails Dev Discuss
Hi all,

I have pushed to Github a (proof of concept) porting of Spring security oauth plugin for Grails 3:


The repo contains a working Facebook implementation and a "dummy" implementation to use it without invoke a real provider.

Feedback and PR are (obviously) welcome.

Cheers, Enrico

Peter Ledbrook

unread,
Aug 25, 2015, 3:52:25 AM8/25/15
to grails-de...@googlegroups.com
I have pushed to Github a (proof of concept) porting of Spring security oauth plugin for Grails 3:


The repo contains a working Facebook implementation and a "dummy" implementation to use it without invoke a real provider.

I encourage you to look at pac4j, particularly as it already has Spring Security integration and OAuth support out of the box. I used it for the latest iteration of my CfP application:


Cheers,

Peter

--
Peter Ledbrook
t: @pledbrook
w: http://www.cacoethes.co.uk/

Enrico

unread,
Aug 25, 2015, 5:19:09 AM8/25/15
to Grails Dev Discuss
Hi Peter,
thank you very much for the suggestion.

I evaluated pac4j after reading your blog post (indeed its dependency is still in build file, commented out), but then I went with Scribe to simply port the old version (lazy me!) and because pac4j oauth under the cover uses Scribe itself so it looked cleaner to me to go straight with Scribe directly.

Said this, I completely missed the Spring security integration so sure I'll bear in mind pac4j: outsource the full S2 integration is appealing and will be surely better than my homemade solution :)
 
Best, Enrico
Reply all
Reply to author
Forward
0 new messages