hi
I got your project, Please share some necessary steps, Thanks.
hi
Please make the GetOffers
method virtual
. in this way the Interceptor
will works.
public virtual async Task<GetOffersForMobileOutput> GetOffers(GetOffersForMobileInput input)
unAuthorizedRequest will be true when AbpAuthorizationException happened. this is by design,
hi
can you explain why the method should be virtual for it to work?
Castle Windsor's interceptor can only intercept:
Because application services will use classes as MVC controllers, virtual methods are needed.
I wasn't expecting virtual, cause for AbpAuthorize we do not need to make it virtual. Can you elaborate on that?
Abp also uses MVC filters to intercept method calls. It does not require virtual methods. It is only suitable for controllers or Pages.
https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.AspNetCore/AspNetCore/Mvc/Authorization/AbpAuthorizationFilter.cs#L54