Merge pull request #87 from aowi/master

add a note on delegation to the README
This commit is contained in:
Cory Benfield 2017-02-01 15:35:50 +00:00 committed by GitHub
commit 38979f8899
1 changed files with 17 additions and 0 deletions

View File

@ -136,6 +136,23 @@ On Windows, WinKerberos is used instead of PyKerberos. WinKerberos allows the
use of arbitrary principals instead of a credential cache. Passwords can be
specified by following the form ``user@realm:password`` for ``principal``.
Delegation
----------
``requests_kerberos`` supports credential delegation (``GSS_C_DELEG_FLAG``).
To enable delegation of credentials to a server that requests delegation, pass
``delegate=True`` to ``HTTPKerberosAuth``:
.. code-block:: python
>>> import requests
>>> from requests_kerberos import HTTPKerberosAuth
>>> r = requests.get("http://example.org", auth=HTTPKerberosAuth(delegate=True))
...
Be careful to only allow delegation to servers you trust as they will be able
to impersonate you using the delegated credentials.
Logging
-------