Authentication and Authorization with ServiceStack.MVC

寵の児 提交于 2019-12-06 08:15:44

ServiceStack doesn't use the ASP.NET's or MVC's Authentication or anything that relies on it e.g. MVC's AccountController, it uses its own Authentication Provider.

AuthenticateAttribute and any other ServiceStack Request or Response Filter attributes can in fact be used on both the DTO's and the Service.

If you inherit from ServiceStackController then you can use ServiceStack's Attribute Filters in [ExecuteServiceStackFilters] do get executed, e.g.

  • [Authenticate]
  • [RequiredRole]
  • [RequiredPermission]
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!