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.)
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