ServiceStack Razor Authentication
问题 I am looking at the Rockstars example and ServiceStack.Razor. How do I go about fitting authentication into, say, secure.cshtml page. So I can redirect user to Login.cshtml if required. I only understand from SocialBootstrapApi example if I mix MVC hybird, I can put [authenticate()] at ServiceStackController to achieve that. But what if I just want a pure SS project without .net MVC? 回答1: The Authenticate attribute is just a plain ServiceStack Request Filter Attribute, i.e. it works in both