Open Closed

IDistributedEventHandler in Web layer can not send rest api request to api host with dynamic proxy #4682


User avatar
0
selinkoykiran created

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)
  • User Avatar
    0
    onurpicakci created

    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.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38