Single Sign on

D

deepti.pg

Hello,

I have been trying to have a single sign on for my rails application.
I somehow fail to understand how to access that particular user object
from within the login method from the account controller.

I tried: User.find_by_login(@params[:user_login]) in which user_login
is the name of the text field in the login.rhtml, but I cant access
the user object.

My plan is to access the user oject, check his role and then
accordingly route him to the right page.

Is there an alternate way to achieve this?

Thank you!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top