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

DSS Auth: Move assert_authorized_group back to dss.util.security #116

Closed chmreid closed 4 years ago

chmreid commented 4 years ago

This PR moves the assert_authorized_group out of the Fusillade Auth class and back to dss.util.security, and fixes the order of imports so there are no conflicts.

This is necessary to do because checking that a group is present under a group claim in a JWT is a common operation that other auth layers besides Fusillade will want to be able to do.

This also fixes the assert_authorized_group test.