module mlapp.authfiction

Inheritance diagram of lightmlrestapi.mlapp.authfiction

Short summary

module lightmlrestapi.mlapp.authfiction

Authentification part.

source on GitHub

Classes

class

truncated documentation

AuthMiddleware

Authentification. The name and secret comes from a file. The file must store encrypted password.

Methods

method

truncated documentation

__init__

_token_is_valid

Decides if it is valid or not.

parse_auth_token_from_request

Parses and returns Auth token from the request header. Raises falcon.HTTPUnauthoried exception with proper error …

process_request

Processes an authentification request.

Documentation

Authentification part.

source on GitHub

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.

source on GitHub

Parameters:
  • source – filename or dataframe for encrypted password

  • algo – algorithm used to hash the passwords

source on GitHub

__init__(source, algo='sha224')
Parameters:
  • source – filename or dataframe for encrypted password

  • algo – algorithm used to hash the passwords

source on GitHub

_token_is_valid(username, password)

Decides if it is valid or not.

source on GitHub

parse_auth_token_from_request(auth_header)

Parses and returns Auth token from the request header. Raises falcon.HTTPUnauthoried exception with proper error message

source on GitHub

process_request(req, resp)

Processes an authentification request.

Parameters:
  • req – request

  • resp – unused

source on GitHub