change of response URL

Peter Schober peter.schober at univie.ac.at
Thu Nov 22 06:00:19 EST 2018


* Rohit Shinde <rohit at venturit.com> [2018-11-22 09:58]:
> I am * running Rails in Nginx. And I have configured nginx for shibboleth
> too. My Shib SP is running with Nginx and Rails is running behind Nginx.

Nginx cannot run Rails by itself (just like Apache httpd can't).
So what application server is it? The Phusion Passenger module in
Nginx? Passenger in Standalone mode? Is it Puma? Unicorn? (The old
Mongrel itself? Thin?)
Whether you'll be able to use environment variables depends on the
exact integration between the webserver and the Rack software you're
using. (Rails just uses Rack to interface with a web server.)

* Rohit Shinde <rohit at venturit.com> [2018-11-20 09:51]:
> I am implementing shibboleth for ruby-on-rails app where this gem is used https://github.com/onelogin/ruby-saml
> I should not be using this gem?
> I can see session variables like in mydomain/Shibboleth.sso/Session:
> Attributes
> displayName: Rohit Shinde

Did you already remove the ruby-saml from that setup? Or is that used
with other applications on the same server (then why use Shibboleth)?
Just to make sure, you are saying there no Apache httpd in this setup
at all?
Hard to concentrate on geting your Nginx + Shib + Rack integration
working otherwise.

> Should I share my nginx conf file to verify to check if its
> correctly configured? asking because I doubt there could be problem
> nginx settings that is not letting varibles to come into app?

I'm repeating myself but unless you're running the Phusion Passenger
(aka mod_rack) module for Nginx (which I asked about but you didn't
say) there's no way envvars will be working.
(Even then I'm not certain, I only know that's the way it would work
with Apache httpd + Shib + the Passenger module.)

-peter


More information about the users mailing list