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
Post a Comment