sssd_test_framework.utils.idp
Authenticate to External Identity Providers.
Classes
|
Methods for testing authentication to an external Identity Provider |
- class sssd_test_framework.utils.idp.IdpAuthenticationUtils(*args, **kwargs)
Bases:
MultihostUtility[MultihostHost]Methods for testing authentication to an external Identity Provider
- Parameters:
host (MultihostHost) – Multihost host.
fs (LinuxFileSystem.) – Linux File system.
- keycloak_with_output(uri: str, username: str, password: str) tuple[int, str, str]
Authenticate to Keycloak using External IdP Device Authorization Grant and return output
- Parameters:
uri (str) – IdP Device Access Grant login URI
username (str) – IdP username
password (str) – IdP user password
- Returns:
Tuple containing [return code, stdout, stderr]
- Return type:
Tuple[int, str, str]
- keycloak(uri: str, username: str, password: str) bool
Authenticate to Keycloak using External IdP Device Authorization Grant and return boolean
- Parameters:
uri (str) – IdP Device Access Grant login URI
username (str) – IdP username
password (str) – IdP user password
- Returns:
True if authentication was successful, otherwise return False
- Return type:
bool