Skip to content

Seperate authorization to different routes  #21

Description

@GeorgeTsagk

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions