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
on 2007-04-20 16:10
on 2007-04-20 16:50
@Erik: First, abandon hope if you wish to integrate with IIS :) 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/ActionControlle... 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... There's lots of good stuff in there that you can probably adapt. Good luck!
on 2007-04-20 20:55
Le 20 avr. 07 à 16:49, Brian Hogan a écrit : > First, abandon hope if you wish to integrate with IIS :) 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 :-) > 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 !