c# - how to use sso just for some pages (continued) -


i have web application. use sso authentication. put code showed below in web.config page.

<authorization>    <deny users="?"> </authorization> <authentication mode="forms">   <forms loginurl="https://sso.***.***.***/login" timeout="30" defaulturl="~/index.aspx" cookieless="usecookies"      slidingexpiration="true" path="/" /> </authentication> <location path="index.aspx">     <system.web>       <authorization>         <allow users="*" />       </authorization>     </system.web> </location> 

if users click http://website.com/index.aspx , no login needed. other pages, need login first(go sso page). works well. problem if user click http://website.com/ ,they still need go login first. that's not want. need go index page directly.

please help


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -