Authenticate to the Enterprise Server with username/password credentials. :param str username: Username to use. :param str password: Password to use. :param bool remember: Remember token in keychain
(username: str, password: str, remember: bool = True)
| 55 | |
| 56 | |
| 57 | def authenticate_with_credentials(username: str, password: str, remember: bool = True): |
| 58 | """ |
| 59 | Authenticate to the Enterprise Server with username/password credentials. |
| 60 | |
| 61 | :param str username: Username to use. |
| 62 | :param str password: Password to use. |
| 63 | :param bool remember: Remember token in keychain |
| 64 | """ |
| 65 | if not is_connected(): |
| 66 | connect() |
| 67 | if not core.BNAuthenticateEnterpriseServerWithCredentials(username, password, remember): |
| 68 | raise RuntimeError(last_error()) |
| 69 | |
| 70 | |
| 71 | def authenticate_with_method(method: str, remember: bool = True): |
no test coverage detected