Starts in:
2 DAYS
10 HRS
0 MIN
20 SEC
Starts in:
2 D
10 H
0 M
20 S
Open Closed

AbpAuthorizationException : Giving Internal Server Error #1827


User avatar
0
lalitChougule created
  • ABP Framework version: v4.3.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no / yes
  • Exception message and stack trace: N.A
  • Steps to reproduce the issue:" N.A

Hi,

I refered https://docs.abp.io/en/abp/4.4/Authorization#iauthorizationservice document. throw new AbpAuthorizationException("..."); this line of code should throw Authorization Failed error, but instead it is throwing Interval Server Error

I want to throw Authorization Failed error on certain permission check (custom logic).


5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share some steps and code to reproduce this? Thanks

  • User Avatar
    0
    lalitChougule created

    Can you share some steps and code to reproduce this? Thanks

    I just check some permissions from IAuthorizationService and if not success I threw this error throw new AbpAuthorizationException("...");

    Sorry for the delay

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share a simple project?

    liming.ma@volosoft.com

  • User Avatar
    0
    lalitChougule created

    Can you share a simple project?

    No I can't.Sorry May be we can have a section and you can have a look into my project.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    It may be difficult for me to understand your project in a short time.

    If possible, please use the template project to reproduce the problem. Thanks.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06