caosdb.connection.authentication.input module

input.

A CredentialsProvider which reads the password from the input line.

class caosdb.connection.authentication.input.InputCredentialsProvider

Bases: caosdb.connection.authentication.interface.CredentialsProvider

InputCredentialsProvider.

A class for obtaining the password directly from the user.

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.input.get_authentication_provider()

get_authentication_provider.

Return an authenticator which uses the input for username/password credentials.

Returns

with an InputCredentialsProvider as back-end.

Return type

CredentialsAuthenticator