Skip to content
This repository was archived by the owner on Dec 4, 2021. It is now read-only.
This repository was archived by the owner on Dec 4, 2021. It is now read-only.

Auth0 auth backend: Infer CRUD operation from decorated function name #147

@chmreid

Description

@chmreid

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions