diff options
| author | Fraser Tweedale <ftweedal@redhat.com> | 2016-08-26 08:59:10 +1000 |
|---|---|---|
| committer | Martin Babinsky <mbabinsk@redhat.com> | 2016-09-07 12:49:28 +0200 |
| commit | 2a42a7e90eb8154a6722ae93d93f8cf6796f4a21 (patch) | |
| tree | d45d128c68fc30658095e18bdfe7a891ad80094f /ipapython/sysrestore.py | |
| parent | b7b6faf14aaa8ac677ab9ebc2bcbf87e6b2a1146 (diff) | |
Allow Dogtag RestClient to perform requests without logging in
Currently the Dogtag RestClient '_ssldo' method requires a session
cookie unconditionally, however, not all REST methods require a
session: some do not require authentication at all, and some will
authenticate the agent on the fly.
To avoid unnecessary login/logout requests via the context manager,
add the 'use_session' keyword argument to '_ssldo'. It defaults to
'True' to preserve existing behaviour (session required) but a
caller can set to 'False' to avoid the requirement.
Part of: https://fedorahosted.org/freeipa/ticket/6260
Part of: https://fedorahosted.org/freeipa/ticket/3473
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
Diffstat (limited to 'ipapython/sysrestore.py')
0 files changed, 0 insertions, 0 deletions
