http_auth_exception
Exception used for authentication issues.
HTTPAuthException
Bases: HTTPException
Exception used for HTTP authentication issues.
Source code in mlte/backend/api/auth/http_auth_exception.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
__init__(status_code=codes.UNAUTHORIZED, error='', error_decription='')
Constructor, calls based class with predefined params.
Source code in mlte/backend/api/auth/http_auth_exception.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
HTTPTokenException
Bases: HTTPException
Exception used for issues when a token is requested.
Source code in mlte/backend/api/auth/http_auth_exception.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | |
__init__(status_code=codes.BAD_REQUEST, error='', error_decription='')
Constructor, calls based class with predefined params.
Source code in mlte/backend/api/auth/http_auth_exception.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | |
json_content_exception_handler(request, exc)
Exception handler that doesn't add the "details" key to a JSON response.
Source code in mlte/backend/api/auth/http_auth_exception.py
12 13 14 15 16 17 18 | |