Skip to content

Commit

Permalink
README: fix opportunistic_auth example
Browse files Browse the repository at this point in the history
The HTTPSPNEGOAuth constructor uses a keyword argument named
"opportunistic_auth", not "opportunistic_authentication". Fix the
example in the README to reflect this.
  • Loading branch information
ktdreyer authored and frozencemetery committed Apr 10, 2019
1 parent a16ecce commit 2847146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ behavior can be altered by setting ``opportunistic_auth=True``:
>>> import requests
>>> from requests_gssapi import HTTPSPNEGOAuth, REQUIRED
>>> gssapi_auth = HTTPSPNEGOAuth(mutual_authentication=REQUIRED, opportunistic_authentication=True)
>>> gssapi_auth = HTTPSPNEGOAuth(mutual_authentication=REQUIRED, opportunistic_auth=True)
>>> r = requests.get("https://windows.example.org/wsman", auth=gssapi_auth)
...
Expand Down

0 comments on commit 2847146

Please sign in to comment.