PhilanthropyDataCommons / service

A project for collecting and serving public information associated with grant applications
GNU Affero General Public License v3.0
8 stars 2 forks source link

Add role middleware + an administrative role #920

Closed slifty closed 5 months ago

slifty commented 5 months ago

This PR adds in middleware which will convert a jwt auth into a role object that gets added to the AuthenticatedRequest interface.

As of now being an administrator doesn't actually provide special access to anything, but providing that access will be as simple as checking req.isAdministrator once this is merged.