Authorization

class rest_api_framework.authentication.Authorization(authentication)[source]

Check if an authenticated request can perform the given action.

check_auth(request)[source]

Return None if the request user is authorized to perform this action, raise Unauthorized otherwise

Parameters:request (werkzeug.wrappers.Request) –
class rest_api_framework.authentication.Authorization(authentication)[source]

Check if an authenticated request can perform the given action.

check_auth(request)[source]

Return None if the request user is authorized to perform this action, raise Unauthorized otherwise

Parameters:request (werkzeug.wrappers.Request) –