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

问题描述 投票:1回答:1

我正在使用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 mod-proxy vhosts shibboleth
1个回答
0
投票

在Apache配置中设置ShibUseHeaders:AuthType shibboleth ShibRequireSession On ShibUseHeaders On Require valid-user

然后你应该把属性作为“HTTP_VARNAME”并在request.ENV之外使用它们

© www.soinside.com 2019 - 2024. All rights reserved.