【问题标题】:Unprotect a particular <Location> when the entire site is protected with mod-auth-openidc当整个站点受到 mod-auth-openidc 保护时,取消对特定 <Location> 的保护
【发布时间】:2019-06-20 21:38:37
【问题描述】:

我有一个使用 mod-auth-openidc 保护的 apache 2.4 站点。有没有办法取消保护该保护区内的特定物品?现在我的 apache 配置有一小段,其中 mod-auth-openidc 配置为保护整个站点。我发现在 137 个可能的 137 中,有 3 个不需要保护。如果没有办法取消保护 a 那么我将不得不单独保护或取消保护所有 137 。那是很多配置更改。

过去,我可以通过创建标签并指定 Allow from all 和 Satisfy any 来取消对特定位置的保护。这在使用 mod-auth-openidc 时不起作用。我还发现一篇文章谈到了使用 SetEnvIf 提供公共访问,但这也不起作用。

<Location /mynewsite>
   # Protect everything using oidc
   AuthType openid-connect
   Require claim "sub~^employeeGroup2*"
   # Don't protect employeeplans
   SetEnvIf Request_URI "(/mynewsite/employeeplans/)$" allow  
   Order allow,deny
   Allow from env=allow
   Satisfy any         
</Location>

我不会在我的 apache 配置中创建 137 个配置段落。如果没有解决方案,我将不得不放弃这个项目。

【问题讨论】:

    标签: mod-auth-openidc


    【解决方案1】:

    在这些路径上使用AuthType None 应该可以做到。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-05
      • 2021-10-27
      • 2015-09-05
      • 1970-01-01
      • 1970-01-01
      • 2010-11-10
      相关资源
      最近更新 更多