caosdb.connection.authentication.unauthenticated module

unauthenticated.

An Authenticator which suppresses any authentication and also ignores auth_token cookies.

class caosdb.connection.authentication.unauthenticated.Unauthenticated

Bases: caosdb.connection.authentication.interface.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.

Returns

Return type

None

login()

login.

To be implemented by the child classes.

Returns

Return type

None

logout()

logout.

To be implemented by the child classes.

Returns

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

caosdb.connection.authentication.unauthenticated.get_authentication_provider()

get_authentication_provider.

Return an authenticator which only uses a pre-supplied authentication token.

Returns

Return type

AuthTokenAuthenticator