Hello,
Like your SignalRTieredDemo.Web we have a MessageEventHandler class in web layer.
When we want to send a request from this class to our api host with interface injection (dynamic proxy method) we get the below exception which is Code:Volo.Authorization:010001.
And it makes sense actually because this handler starts to work even user doesn't login. It triggered by Rabbitmq.
How can we solve this issue ?
Thank you
-
ABP Framework version: v5.3.3
-
UI type: MVC
-
DB provider: EF Core
-
**Tiered (MVC) : yes
-
Exception message and stack trace:
-
023-03-10 10:33:24.835 +03:00 [WRN] Exception of type 'Volo.Abp.Authorization.AbpAuthorizationException' was thrown.
Volo.Abp.Authorization.AbpAuthorizationException: Exception of type 'Volo.Abp.Authorization.AbpAuthorizationException' was thrown.
at Microsoft.AspNetCore.Authorization.AbpAuthorizationServiceExtensions.CheckAsync(IAuthorizationService authorizationService, AuthorizationPolicy policy)
at Volo.Abp.Authorization.MethodInvocationAuthorizationService.CheckAsync(MethodInvocationAuthorizationContext context) -
Steps to reproduce the issue:"
1 Answer(s)
-
0
Hi, you are having a problem with authorization. Can you please review the authorization policies and controls in your application? You can use the
[Authorize]
attribute in your related service. You can also take a look at the related document.