Click here to Skip to main content
15,903,033 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a web application. before I use sso for authentication. I put the code showed below in web.config page.
C#
<authentication mode="Forms">
      <forms loginUrl="https://sso.***.***.***/login" timeout="30" defaultUrl="~/Index.aspx" cookieless="UseCookies" slidingExpiration="true" path="/" />
    </authentication>

It works well. anyone go to that web need login first.
Now we need change to making some pages open to public. So people do not need login to access some pages, but some pages still need login ( use sso).
How to do that?

Thanks
Posted

1 solution

"Just for members" does not really change anything. Every authenticated user is essentially a member, only you are going to introduce some different member roles, in your case, at least two different roles. You can get more than enough reading on this topic. For example, see this article:
http://www.4guysfromrolla.com/articles/120705-1.aspx[^].

See also this past answer: Role Base Access Control (RBAC) in asp.net[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900