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 auth backend: Infer CRUD operation from decorated function name #147

Open chmreid opened 4 years ago

chmreid commented 4 years ago

For the Auth0 backend, the security decorator needs a method keyword to be specified. This requires manually updating all decorators, by hand, when swapping out the Auth0 backend.

To reduce (not completely eliminate) this work, we could infer the CRUD method from the function name:

Not all the decorated function names fit this convention (e.g., list_collections) though