To ease your integration with build.security, we've created a list of out-of-the-box middlewares. Each of these middlewares will allow you to perform authorizing requests against your PDP. If you don't find the middleware that suits your ecosystem, please contact us.
First, make sure you have a policy defined in the system. These policy rules are used to assess each client request to your system. For every client request to your service/resource, a middleware will pre-assess if the client\user is authorized to access this endpoints/resource.
The client request will be first evaluated against your PDP, and will continue to the relevant endpoint only if the PDP decided to allow it. Otherwise, the request will be rejected with an 403 FORBIDDEN http response.
This functionality can be achieved easily and requires no maintenance and almost no code changes. Most of the middlewares would only require you to add a decorator\attribute in your relevant endpoints code.