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

[Enable Auth0 Part 3/4] DSS Auth: Fix token generation for tests before unleashing Auth0 #149

Closed chmreid closed 4 years ago

chmreid commented 4 years ago

Fixes the way tokens are generated in tests, to help meet requirements of the Auth0 auth backend.

(Underlying reason: every endpoint is protected by a decorator that only allows admins. The token email claim is used to look up the email address in the JWT and determine if the user is an admin.)

Part 1: unleash auth0: https://github.com/DataBiosphere/data-store/pull/146 Part 2: fix decorators for auth0: https://github.com/DataBiosphere/data-store/pull/148 Part 3: fix tests: https://github.com/DataBiosphere/data-store/pull/149 Part 4: update config: https://github.com/DataBiosphere/data-store/pull/151