Security

class TokenProvider[source]

Bases: object

TokenProvider is a base class for token providers.

token(address: Optional[Address] = None) bytes[source]

Returns a token to be used for token-based authentication.

Parameters

address – Connected address for the member.

Returns

token as a bytes object.

class BasicTokenProvider(token: Union[str, bytes] = '')[source]

Bases: TokenProvider

BasicTokenProvider sends the given token to the authentication endpoint.

token(address: Optional[Address] = None) bytes[source]

Returns a token to be used for token-based authentication.

Parameters

address – Connected address for the member.

Returns

token as a bytes object.