Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法为 ServiceStack 中的“没有控制器的动态页面”应用安全性(身份验证和授权)?
您可以只访问会话,例如:
@{ var session = base.GetSession<MyAuthUserSession>(); if (session.IsAuthenticated) { //Is Authenticated... } else { //Not Authenticated... } }