login obj resource - auth logic?

3 views
Skip to first unread message

phil swenson

unread,
Dec 13, 2009, 7:25:54 PM12/13/09
to ObjectiveResource
I'm trying to see if Objective Resource is appropriate for us. First
question, how do the login stuff work? If we are using authlogic,
does it work?

thanks

Andreas

unread,
Jan 2, 2010, 12:02:28 PM1/2/10
to ObjectiveResource
We are also using authlogic and want to know if it's possible to login
via Objective Resource.

happy new year
andy

Adrien Pestel

unread,
Jan 2, 2010, 2:40:54 PM1/2/10
to objectiv...@googlegroups.com
Hi,

I'm not an expert on authlogic but it seems to support http basic auth (authentication in HTTP header).
ObjectiveResource support this method of authentication so there should be no problem to use authlogic with it.

Maybe you should add some user agent checking to handle the authentication based on http basic if request are coming from ObjectiveResource stack (just a hint never tried it).

Found this link for using authlogic with http basic authentication : http://stackoverflow.com/questions/1605838/authlogic-authentication-via-basic-http-authentication

Regards,
Adrien (and happy new year too ;)

2010/1/2 Andreas <andreas...@gmail.com>
--

You received this message because you are subscribed to the Google Groups "ObjectiveResource" group.
To post to this group, send email to objectiv...@googlegroups.com.
To unsubscribe from this group, send email to objectiveresou...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/objectiveresource?hl=en.



Zeitgeist

unread,
Jan 2, 2010, 6:10:26 PM1/2/10
to objectiv...@googlegroups.com
I use it in a few apps, and it works well for me.

Generally, User creation works by RESTfully creating a User.
You can check credentials by RESTfully creating a UserSession.
You can use HTTP Basic Auth after that.

The sample code for Authlogic needs some additional respond_to blocks
to work well with ObjectiveResource. In particular, you probably want
to replace some of the redirect logic with xml renders of various
objects or errors.

--Corprew

the.rob

unread,
Jan 3, 2010, 6:30:41 PM1/3/10
to ObjectiveResource
Hi Corpew,

how exactly are you doing that? I am facing the same task currently
and I am wondering
how one would go about to authenticate a user based on a login and a
password.

Could you send me a snippet maybe on how you did this? The way I see
it I have the problem
that not only need I to authenticate once but to save the auth token
from the rails app for that user
to authenticate the subsequent requests as well.

greetz
Rob

On 3 Jan., 00:10, Zeitgeist <corp...@gmail.com> wrote:
> I use it in a few apps, and it works well for me.
>
> Generally, User creation works by RESTfully creating a User.
> You can check credentials by RESTfully creating a UserSession.
> You can use HTTP Basic Auth after that.
>
> The sample code for Authlogic needs some additional respond_to blocks
> to work well with ObjectiveResource.  In particular, you probably want
> to replace some of the redirect logic with xml renders of various
> objects or errors.
>
> --Corprew
>

Reply all
Reply to author
Forward
0 new messages