2012-10-30 37 views
6

我有一個受Shibboleth身份驗證模塊保護的Web應用程序。我現在的配置是如下Apache配置 - 從身份驗證中排除位置

<Location /MyApp> 
AuthType shibboleth 
ShibUseHeaders On 
ShibRequestSetting requireSession 1 
require shibboleth 
</Location> 

陳詞濫調是一種身份驗證模塊,提供SSO功能和電流將用戶定向到一個身份提供商爲用戶輸入登錄憑據。我希望能夠打開特定的URL,以便URL可以被認證模塊繞過。我試過以下,但它似乎沒有工作,我得到加載URL

方法1

<Location /MyApp/Login.html> 
    Satisfy Any 
    Allow from all 
    AuthType None 
    Require all granted 
</Location> 

方法2

<Location /MyApp/Login.html> 
    AuthType shibboleth 
    ShibRequestSetting requireSession 0 
    require shibboleth 
</Location> 

我做了一個空白頁一些額外的調試,似乎問題是與其他文件的加載 - 例如css,js等。什麼是正確的w AY在Apache的配置,從而使該login.html的可從認證繞過

感謝

回答

4

我對有關的其他文件排除結束註釋被加載的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> 
相關問題