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.


3 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

  • User Avatar
    0
    tim.lopez created

    So it seems like we had something else in our codebase breaking this behaviour (which is actually default). Fixed!

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Great

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 01, 2025, 08:37