Apache Config - 从身份验证中排除位置

mek*_*oka 8 apache authentication location shibboleth single-sign-on

我有一个受Shibboleth身份验证模块保护的Web应用程序.我目前的配置如下

<Location /MyApp>
 AuthType shibboleth
 ShibUseHeaders On
 ShibRequestSetting requireSession 1
 require shibboleth
</Location>
Run Code Online (Sandbox Code Playgroud)

陈词滥调是一个身份验证模块,提供SSO功能和电流引导用户的身份提供商为用户输入登录凭据.我希望能够打开一个特定的URL,以便验证模块绕过URL.我尝试了以下但它似乎没有工作,我得到一个加载URL的空白页面

方法1

<Location /MyApp/Login.html>
  Satisfy Any
  Allow from all
  AuthType None
  Require all granted
</Location>
Run Code Online (Sandbox Code Playgroud)

方法2

<Location /MyApp/Login.html>
  AuthType shibboleth
  ShibRequestSetting requireSession 0
  require shibboleth
</Location>
Run Code Online (Sandbox Code Playgroud)

我做了一些额外的调试,看起来问题是Login.html加载的其他文件- 例如css,js等.在Apache中配置它的正确方法是什么,以便可以从身份验证中绕过Login.html

谢谢

mek*_*oka 5

最后,我对排除Login.html加载的其他文件的评论是正确的。我使用以下格式来排除html文件正在加载的文件

<Location ~ "/MyApp/(Login.html|SessionTimeout.html|accessDenied.html|/badRequest.html|status|css/*|login/*|images/*|style/*|js/*|javascript/*|)">   
  Satisfy Any   
  Allow from all   
  AuthType None   
  Require all granted   
</Location>
Run Code Online (Sandbox Code Playgroud)