0
Astech created
Is there any reason why we could not consolidate there attributes and just have one for system wide authorization? Or is it necessary to use a different one in the MVC project to the application service?
Thanks
1 Answer(s)
-
0
Hi @Astech,
AbpMvcAuthorize
inherits fromAuthorizeAttribute
which is defined inMicrosoft.AspNetCore.Authorizatio
. Becasue of this, it can be used in web layer.AbpAuthorize
can be used in application layer.We could merge these two attributes but in that case, we can't use ASP.NET Core's
AuthorizeAttribute
.