BasicAuth#
- class BasicAuth(username=None, password=None, *args, **kwargs)#
Bases:
object
An authentication scheme that requires the client to present a username and password. The server will service the request only if it can validate the user-ID and password for the protection space of the Request-URI.
- Parameters:
username (required min=3 chars, max=256 chars) – (
username
) Username required for the basic auth scheme. As per [RFC 2617](https://datatracker.ietf.org/doc/html/rfc2617) usernames might be case sensitive.password (required) – (
password
) Password required for the basic auth scheme.
- property password#
Password required for the basic auth scheme.
- Type:
str
- to_dict()#
Returns the model properties as a dictionary
- to_str()#
Returns the string representation of the model
- property username#
Username required for the basic auth scheme. As per [RFC 2617](https://datatracker.ietf.org/doc/html/rfc2617) usernames might be case sensitive.
- Type:
str