Activeresource

Can somebody explain how can we go throught the process of restful
authentication via activeresource. I have gone through it but the
concept is still vague for me.

Use HTTP Basic authentication on the server providing the
ActiveResources. You can set the credentials for accessing via HTTP
Basic in ActiveResource. Ideally you’ll probably create a ‘base’
resource that has the credentials and site info and then inherit from
that for the rest of your ARes classes.

HTH,
AndyV

On Jul 29, 1:17 am, Bishal A. [email protected]

Thanks for the response.

I have been able to do http authentication by crateing a base resource
but my requirements are such that I cannot make a base resource
containing the site crediantials rather I have to dynamically assign the
crediantials according to the users authentication…Can you suggest
me how to do that ? I have to access the server resources by a remote
client using activeresource but the remote client too has a client which
provides crediantials to remote client instead to the server now If i
create a static base resource in the remote client, I can only deal with
one user i guess but condition demands me to make this process dynamic ?
anu suggestions will be helpful.

AndyV wrote:

Use HTTP Basic authentication on the server providing the
ActiveResources. You can set the credentials for accessing via HTTP
Basic in ActiveResource. Ideally you’ll probably create a ‘base’
resource that has the credentials and site info and then inherit from
that for the rest of your ARes classes.

HTH,
AndyV

On Jul 29, 1:17�am, Bishal A. [email protected]

Bishal A. wrote:

I have been able to do http authentication by crateing a base resource
but my requirements are such that I cannot make a base resource
containing the site crediantials rather I have to dynamically assign the
crediantials according to the users authentication…Can you suggest
me how to do that ? I have to access the server resources by a remote
client using activeresource but the remote client too has a client which
provides crediantials to remote client instead to the server now If i
create a static base resource in the remote client, I can only deal with
one user i guess but condition demands me to make this process dynamic ?
anu suggestions will be helpful.

If you use restful_authentication then you can authenticate against any
number of different users. Implement a role-based system on top of it
with the appropriate filters in the RESTful controllers, and you’re set
to go.


Roderick van Domburg
http://www.nedforce.nl

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs