spring security oauth grails 3

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

spring security oauth grails 3

Enrico-2
Hi all,

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

https://github.com/enr/s2oauth

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

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/bbfb1a6d-3443-4b1b-aa46-930399598d71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: spring security oauth grails 3

pledbrook
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/

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/CANBeYQRCPDKCzCp%3DFfZ9TVn7qoDyfxp0jAsV8%3DsZ13so7-SHFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: spring security oauth grails 3

Enrico-2
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

On Tuesday, 25 August 2015 09:52:25 UTC+2, Peter Ledbrook wrote:
I have pushed to Github a (proof of concept) porting of Spring security oauth plugin for Grails 3:

<a href="https://github.com/enr/s2oauth" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fenr%2Fs2oauth\46sa\75D\46sntz\0751\46usg\75AFQjCNE2SUJlN3NiwiMmhrf7FpOc6nRcKg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fenr%2Fs2oauth\46sa\75D\46sntz\0751\46usg\75AFQjCNE2SUJlN3NiwiMmhrf7FpOc6nRcKg&#39;;return true;">https://github.com/enr/s2oauth

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:

    <a href="https://github.com/pledbrook/talk-submissions" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fpledbrook%2Ftalk-submissions\46sa\75D\46sntz\0751\46usg\75AFQjCNEChmFKEQS5dlrtgb085H9-nNYLQA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fpledbrook%2Ftalk-submissions\46sa\75D\46sntz\0751\46usg\75AFQjCNEChmFKEQS5dlrtgb085H9-nNYLQA&#39;;return true;">https://github.com/pledbrook/talk-submissions

Cheers,

Peter

--
Peter Ledbrook
t: @pledbrook
w: <a href="http://www.cacoethes.co.uk/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fwww.cacoethes.co.uk%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNETgDE1wkzZxZvLi_Y9XyeR5TZ28w&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fwww.cacoethes.co.uk%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNETgDE1wkzZxZvLi_Y9XyeR5TZ28w&#39;;return true;">http://www.cacoethes.co.uk/

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/09015f52-1d0b-47ce-90ba-0fa1f7bf4190%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.