我正在使用Shibboleth和Apache(w / mod_proxy),我注意到像REMOTE_USER
这样的环境变量并没有让我一直到我的应用程序。
我有一个虚拟主机,看起来像:
<VirtualHost *:443>
ServerName example.com
<Location /Shibboleth.sso>
ProxyPass !
</Location>
ProxyPass / http://127.0.0.1:9292/
ProxyPassReverse / http://127.0.0.1:9292/
...
</VirtualHost>
请求是代理传递给运行Puma webserver的Ruby on Rails应用程序但是当我检查request.ENV
时,我没有看到我的shibboleth属性。有没有人有这样的经历?
在Apache配置中设置ShibUseHeaders:AuthType shibboleth ShibRequireSession On ShibUseHeaders On Require valid-user
然后你应该把属性作为“HTTP_VARNAME”并在request.ENV之外使用它们