0
Hasan created
Hello Team
Is there any way to set all the ApplicationServices as AbpAuthorizr without mention in each method ?
Thanks in advance
3 Answer(s)
-
0
Hi,
If I understand, you can add AbpAuthorize attribute to AppService class, then all methods affected. For example:
[AbpAuthorize()] public class SomeAppService: AbpZeroTemplateAppServiceBase, ISomeAppService { ...
-
0
How to set for all the Services at one place ?
-
0
Hi @Hasan,
Adding [AbpAuthorize] to [*AppServiceBase] class might work but I'm not sure about this. If it does not work, you need to add this attribute to every service you want to authorize.
Thanks.