recc.auth

class recc.auth.basic_auth.BasicAuth(user_id: str, password='', encoding='latin1')

Http basic authentication.

classmethod decode_from_authorization_header(auth_header, encoding='latin1')

Create a BasicAuth object from an Authorization HTTP header.

encode()str

Encode credentials.

class recc.auth.bearer_auth.BearerAuth(token: str)

Http bearer authentication.

classmethod decode_from_authorization_header(auth_header)

Create a BearerAuth object from an Authorization HTTP header.

encode()

Encode credentials.