使用ProxyPass时,未传递来自Shibboleth的环境变量

时间:2016-06-08 18:46:25

标签: apache mod-proxy vhosts shibboleth

我正在使用Shibboleth与Apache(w / mod_proxy)并且我注意到// $row will be false if string will be not found anywhere // else it will be index of row, in wwhich first occurence found $row = false; foreach($allResults as $key=>$value) { // remove non-'choice' fields unset($value['name']); unset($value['email']); // Lookup the string in other field if(in_array('IPO3_1', $value, true)) // if found break the loop { $row = $key; break; } } 之类的环境变量并未完全覆盖我的应用程序。

我有一个类似于:

的虚拟主机
^[1-9][0-9]*$

请求是代理传递给运行Puma webserver的Ruby on Rails应用程序但是当我检查REMOTE_USER时,我没有看到我的shibboleth属性。有没有人有这样的经历?

1 个答案:

答案 0 :(得分:0)

在您的Apache配置中设置ShibUseHeaders:        AuthType shibboleth     ShibRequireSession开     ShibUseHeaders开启     需要有效用户   

然后,您应将属性获取为“ HTTP_VARNAME”,并在请求时使用它们。ENV

相关问题