Current implementation has a global perception of authorizing a client.
E.g. After I pay the invoice I can provide the Authorization header and access a protected resource, but this same header will allow me to pass through any other protected route. There is no differentiation between which resources this specific header can access.
I have tried defining different boltwall middleware instances like this
app.get('/download', boltwall(options), fileController.downloadFile);
app.post('/upload', boltwall(options), fileController.uploadFile);
but it doesn't seem to get the job done as paying the /download endpoint will also grant me access to the /upload endpoint
Is there a way to provide access to specific routes and not to the whole API?
Current implementation has a global perception of authorizing a client.
E.g. After I pay the invoice I can provide the
Authorizationheader and access a protected resource, but this same header will allow me to pass through any other protected route. There is no differentiation between which resources this specific header can access.I have tried defining different boltwall middleware instances like this
but it doesn't seem to get the job done as paying the
/downloadendpoint will also grant me access to the/uploadendpointIs there a way to provide access to specific routes and not to the whole API?