Dumb question on environment variables

Umm - coming from a php world in another life, I’m looking for the
Rails equivalent of the cgi environment variables (similar to http://
fr.php.net/reserved.variables).

Specifically, what I’m really looking for are things like AUTH_USER
so that I can install Rails on either IIS or a Kerberos-enabled
Apache and take advantage of the SSO capabilites, including being
able to automatically log them in and make decisions based on their
username. Even knowing how to get the information of Basic
Authentication would be a move in the right direction for me.

Cheers,

Erik

@Erik:

First, abandon hope if you wish to integrate with IIS :slight_smile: We can talk
about
that later.
Some of the things you’re looking for are located in the AbstractRequest
base class

http://api.rubyonrails.com/classes/ActionController/AbstractRequest.html

Basic Authentication isn’t too bad either, but you actually usually make
Rails request it directly. Take a look at the Acts_as_authenticated
plugin
http://technoweenie.stikipad.com/plugins/show/Acts+as+Authenticated

There’s lots of good stuff in there that you can probably adapt. Good
luck!

Le 20 avr. 07 à 16:49, Brian H. a écrit :

First, abandon hope if you wish to integrate with IIS :slight_smile: We can
talk about that later.
Some of the things you’re looking for are located in the
AbstractRequest base class

I figured that was probably the case from what I’d found on the web.
So in the meantime, I have a brand new Ubuntu Virtual Machine ready
to try out the Kerberos integration :slight_smile:

http://api.rubyonrails.com/classes/ActionController/
AbstractRequest.html

Yeah - I looked at that one, but it’s pretty limited about the
extended attributes, specifically auth_user.

Basic Authentication isn’t too bad either, but you actually usually
make Rails request it directly. Take a look at the
Acts_as_authenticated plugin http://technoweenie.stikipad.com/
plugins/show/Acts+as+Authenticated

There’s lots of good stuff in there that you can probably adapt.
Good luck!

Hmm - have to go take a peek at that one. I was under the impression
that it was still a forms oriented authentication process that
required local tables which is something I’m trying to avoid.

Thanks for the tips !

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