DataBiosphere / data-store

AWS and GCP data storage system for genomic data.
https://dss.dev.ucsc-cgp-redwood.org
Other
3 stars 2 forks source link

[Auth0 CRUD Part 2] Improve admin checks for Authorization classes #135

Closed chmreid closed 4 years ago

chmreid commented 4 years ago

Adds an @always_allow_admins decorator to help Authorization classes check if a user is an admin.

We let the authorization sub-class decide what authorization endpoints to decorate to always allow admins, instead of always allowing admins for any action in any authorization sub-class.

Part 1: #130 (adds mixins for FLAC and Auth0AuthZ extensions, adds parameter checks)

Part 2: #135 (handles case of admin action)

Part 3: #136 (expands and updates tests, updates and fixes auth API)