Can I have a switch in web.config for enabling or disabling the STS? eg In app setting if it is <add key="siteMode" value="public">, users do not need to login. if it is <add key="siteMode" value="staff">, users need to provide their login info
That would be easily possible if your login page just creates the identity automatically without requiring users to login in the "public" mode. This involves the SessionAuthenticationModule:
http://netpl.blogspot.com/2012/09/forms-authentication-revisited.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.