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.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 18, 2025, 10:42