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:
put -> create
get -> read
patch -> update
delete -> delete
Not all the decorated function names fit this convention (e.g., list_collections) though
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