Open Closed

Change when validation is called in request pipeline #9276


User avatar
0
tim.lopez created

Hello,

I'm looking to modify when Authorization and Validation is done. Currently we are layering Permissions as part of an application, and we have a set of validations that touch the database and I'd like for permission checking to happen before we kick in the validation. Is this possible? I tried messing with the interceptors.


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

    hi

    I think you can add a middleware before or after Authorization to do some custom logic.

    https://learn.microsoft.com/en-us/aspnet/core/fundamentals/middleware/?view=aspnetcore-9.0

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.3.0-preview. Updated on May 12, 2025, 05:22