|
AAS HTTP Client Documentation
|
Classes | |
| class | AuthMethod |
| Defines authentication methods. More... | |
| class | TokenData |
| Holds token data. More... | |
Functions | |
| TokenData|None | get_token (OAuth o_auth_configuration) |
| Get token based on the provided OAuth configuration. | |
| TokenData|None | get_token_by_basic_auth (str endpoint, str username, str password, timeout=200) |
| Get token from a specific authentication service provider by basic authentication. | |
| TokenData|None | get_token_by_password (str endpoint, str username, str password, timeout=200) |
| Get token from a specific authentication service provider by username and password. | |
| TokenData|None | _get_token_from_endpoint (str endpoint, dict[str, str] data, HTTPBasicAuth|None auth=None, int timeout=200) |
| Get token from a specific authentication service provider. | |
Variables | |
| _logger | |
|
protected |
Get token from a specific authentication service provider.
| endpoint | Get token endpoint for the authentication service provider |
| data | Data for the authentication service provider |
| timeout | Timeout for the API calls, defaults to 200 |
Definition at line 108 of file authentication.py.
| TokenData | None implementations.authentication.get_token | ( | OAuth | o_auth_configuration | ) |
Get token based on the provided OAuth configuration.
| auth_configuration | Authentication configuration |
Definition at line 47 of file authentication.py.
| TokenData | None implementations.authentication.get_token_by_basic_auth | ( | str | endpoint, |
| str | username, | ||
| str | password, | ||
timeout = 200 |
|||
| ) |
Get token from a specific authentication service provider by basic authentication.
| endpoint | Get token endpoint for the authentication service provider |
| username | Username for the authentication service provider |
| password | Password for the authentication service provider |
| timeout | Timeout for the API calls, defaults to 200 |
Definition at line 77 of file authentication.py.
| TokenData | None implementations.authentication.get_token_by_password | ( | str | endpoint, |
| str | username, | ||
| str | password, | ||
timeout = 200 |
|||
| ) |
Get token from a specific authentication service provider by username and password.
| endpoint | Get token endpoint for the authentication service provider |
| username | Username for the authentication service provider |
| password | Password for the authentication service provider |
| timeout | Timeout for the API calls, defaults to 200 |
Definition at line 93 of file authentication.py.
|
protected |
Definition at line 17 of file authentication.py.