Access Control¶
Introduction¶
Access control to an API is crucial to ensure that only authorized users can interact with the system's resources and data. Cafeto uses the same type of decorator as Starlette. This allows specifying which users have permission to execute certain functions, protecting the API from unauthorized access and ensuring the security and privacy of the information.
Usage¶
Python | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
@app.requires
works in the same way as @requires
in Starlette.