How to use ServiceStack authentication correctly in ASP.Net MVC controller

后端 未结 2 792
轻奢々
轻奢々 2020-12-14 20:26

I\'m having problem with getting ServiceStack [Authentication] attribute to work in ASP.Net MVC4 controller, pages / action methods with the attribute keep redirecting Users

2条回答
  •  时光取名叫无心
    2020-12-14 21:01

    You can find how it could be done in the ServiceStack Use Cases repository. The following example is based on MVC4 but works perfectly for MVC3 either: CustomAuthenticationMvc.

提交回复
热议问题