with_autologon#
- ApiClientFactory.with_autologon()#
Set up client authentication for use with Kerberos (also known as integrated Windows authentication).
The default operation of this method is to attempt to connect to the API and to use the provided
WWW-Authenticate
header to determine if Negotiate authentication is supported by the server. If so, Negotiate will then be used for authentication.If Negotiate authentication is not supported by the server, an exception is raised.
- Returns:
ApiClientFactory
Current client factory object.
- Raises:
ConnectionError
If the server does not support Negotiate authentication.
Notes
Requires the user to have a valid Kerberos Ticket-Granting-Ticket (TGT).
On Windows, this is provided by default.
On Linux, this requires the
[linux-kerberos]
extension to be installed and your Kerberos installation to be configured correctly.