Hello list!
I must confess i am kinda new to rails and my experience is truly
limited. I am searching to do a quite simple thing with rails.
I have a db. It has a table with users etc and works fine as it is. I
now want to add some very simple authentication mechanism. Instead of
authenticating through the use of a rails plugin that handles
sessions etc, I want to be able to route the users by using
mod_auth_mysql.
I run rails through apache2 and i am using mod_auth_mysql to
authenticate a user to be allowed to see the rails project pages and
it works so far. I placed the .htaccess correctly formed at the root
of the project folder and the database table that holds the user data
is the same the rails project uses.
I am now trying to access within rails data regarding the user as he
authenticated through the apache2 plugin.
I was thinking this would be easy but I can see through ethereal only
the session data (I think it’s called like this). How could I get
more info regarding the user that just authenticated? Has anyone got
similar experiences?
I googled the hell out of this combination and found nothing so far
that could assist.
So the basic questions:
- has anyone done something similar so far?
- how do I read the headers (and e.g. print them) using rails
thnx for any advice!