linkahead.connection.authentication.plain module#

plain.

A CredentialsProvider which reads the password from the configuration dict.

class linkahead.connection.authentication.plain.PlainTextCredentialsProvider#

Bases: CredentialsProvider

PlainTextCredentialsProvider.

A class for storing username/password credentials as plain text strings.

configure()#
password#
username#
configure(**config)#

configure.

Parameters:

**config – Keyword arguments containing at least keywords “username” and “password”.

Return type:

None

property password#

password.

property username#

username.

linkahead.connection.authentication.plain.get_authentication_provider()#

get_authentication_provider.

Return an authenticator which uses plain text username/password credentials.

Returns:

with a PlainTextCredentialsProvider as back-end.

Return type:

CredentialsAuthenticator