caosdb.connection.authentication.plain module

plain.

A CredentialsProvider which reads the password from the configuration dict.

class caosdb.connection.authentication.plain.PlainTextCredentialsProvider

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

Returns

Return type

None

property password

password.

property username

username.

caosdb.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