linkahead.connection.authentication.unauthenticated module
unauthenticated.
An Authenticator which suppresses any authentication and also ignores auth_token cookies.
- class linkahead.connection.authentication.unauthenticated.Unauthenticated
Bases:
AbstractAuthenticator
Unauthenticated.
Subclass of AbstractAuthenticator which suppresses any authentication and also ignores auth_token cookies.
- login()
- logout()
- configure()
- on_request()
- on_response()
- configure(**config)
configure.
Configure this authenticator.
- Parameters:
**config – Keyword arguments for the configuration.
- Return type:
None
- login()
login.
To be implemented by the child classes.
- Return type:
None
- logout()
logout.
To be implemented by the child classes.
- Return type:
None
- on_request(method, path, headers, **kwargs)
on_request.
This implementation does not attempt to login or authenticate in any form.
- Parameters:
method – unused
path – unused
headers – unused
**kwargs – unused
- on_response(response)
on_response.
This implementation ignores any auth_token cookie sent by the server.
- Parameters:
response – unused
- linkahead.connection.authentication.unauthenticated.get_authentication_provider()
get_authentication_provider.
Return an authenticator which only uses a pre-supplied authentication token.
- Return type: