caosdb.connection.authentication.auth_token module

auth_token.

An Authentictor which only uses only a pre-supplied authentication token.

class caosdb.connection.authentication.auth_token.AuthTokenAuthenticator

Bases: caosdb.connection.authentication.interface.AbstractAuthenticator

AuthTokenAuthenticator.

Subclass of AbstractAuthenticator which provides authentication only via a given authentication token.

login()
logout()
configure()
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

caosdb.connection.authentication.auth_token.get_authentication_provider()

get_authentication_provider.

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

Returns

Return type

AuthTokenAuthenticator