- 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)
- 
    0hi Can you share some steps and code to reproduce this? Thanks 
- 
    0Can 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 
- 
    0hi Can you share a simple project? liming.ma@volosoft.com 
- 
    0Can 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. 
- 
    0It 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. 
 
                                