5.2.3. xgt.BasicAuth¶
- class xgt.BasicAuth(username='', password='')¶
Basic authentication mechanism with user id and password.
- Parameters:
username (str) – The username to authenticate as.
password (str) – Password used to authenticate.
Methods
__init__
([username, password])Constructor for BasicAuth.
Attributes
Obtains the password used for authentication.
Obtains the username used for authentication.
- __init__(username='', password='')¶
Constructor for BasicAuth. Called when BasicAuth is created.
- property password¶
Obtains the password used for authentication.
- Returns:
Password.
- Return type:
str
- property username¶
Obtains the username used for authentication.
- Returns:
Username.
- Return type:
str