Need help reaching for client side oAuth

97 views
Skip to first unread message

manos

unread,
Dec 1, 2012, 12:09:56 AM12/1/12
to resthub-dev
I've used the resthub-jpa-backbonejs-multi-archetype for my project
and it has worked out very well, even backbone turned out great as a
new thing for us. The stack is fantastic.

However, I've currently reached a point where I really need the user
auth stuff layered in from here onwards; it's involved in pretty much
anything from my DB queries to the UI flow. My understanding is i need
to get to know the identity manager, so I'll try to narrow it down
enough for me to get started :-)

a) Deployment: Is there any example i can follow to embed in my app?
Would it perhaps be easier to deploy standalone?

b) Is that spring bug still blocking this? If true, do you guys have a
dependency binary I can just grab from somewhere to temporarily bypass
the issue?

c) An example to go for backbone.js client side oAuth 2 login and
further authorization would probably make me the happiest man in the
world right now...


Manos

manos

unread,
Dec 4, 2012, 4:13:08 PM12/4/12
to resth...@googlegroups.com
Anyone? I wouldn't mind patching up a tutorial if you guys helped me out a bit :-)

Bouiaw

unread,
Dec 4, 2012, 4:17:48 PM12/4/12
to resth...@googlegroups.com

Sorry we have been really busy on 2.0 release, we will send you a detailed answer tomorrow.

--
 
 
 

Seb

unread,
Dec 5, 2012, 12:07:22 PM12/5/12
to resth...@googlegroups.com
RESThub 2.1 will provide all auth stuff out of the box, but find bellow some hints about what we plan to support.

We are working on resthub-identity (https://github.com/resthub/resthub-identity) that will provide :
 - A default User/Group/Role management already implemented (even it will continue to be improved before 2.1)
 - A Backbone.js stack based GUI (a first version will be pushed shortly)
 - An integration with spring-security, and optionally spring-security-oauth.

You can do simple HTTP auth basic, auth digest (builtin in Spring Security) or OAuth 2 by using spring-security-oauth2. We contributed a fix for Jackson2 support, so compatibility with RESThub 2.0 is ok if you use 1.0.1-SNAPSHOT (1.0.1 to be released shortly) with Jackson 2 integration described on https://github.com/SpringSource/spring-security-oauth/pull/59. Be careful you must explicitly exclude Jackson 1.x dependencies from spring-security-oauth as described in the GitHub issue.

Client side integration for authentication will be added to Backbone.js stack. Waiting that you can have a look on what we did on RESThub JS 1.x, since we plan to backport this code to RESThub 2.0. Code is available on :

Regards
Reply all
Reply to author
Forward
0 new messages