module mlapp.authfiction
¶
Short summary¶
module lightmlrestapi.mlapp.authfiction
Authentification part.
Classes¶
class |
truncated documentation |
---|---|
Authentification. The name and secret comes from a file. The file must store encrypted password. |
Methods¶
method |
truncated documentation |
---|---|
Decides if it is valid or not. |
|
Parses and returns Auth token from the request header. Raises falcon.HTTPUnauthoried exception with proper error … |
|
Processes an authentification request. |
Documentation¶
Authentification part.
- class lightmlrestapi.mlapp.authfiction.AuthMiddleware(source, algo='sha224')¶
Bases:
object
Authentification. The name and secret comes from a file. The file must store encrypted password.
- Parameters:
source – filename or dataframe for encrypted password
algo – algorithm used to hash the passwords
- __init__(source, algo='sha224')¶
- Parameters:
source – filename or dataframe for encrypted password
algo – algorithm used to hash the passwords
- _token_is_valid(username, password)¶
Decides if it is valid or not.
- parse_auth_token_from_request(auth_header)¶
Parses and returns Auth token from the request header. Raises falcon.HTTPUnauthoried exception with proper error message
- process_request(req, resp)¶
Processes an authentification request.
- Parameters:
req – request
resp – unused