Skip to content

Commit 2847146

Browse files
ktdreyerfrozencemetery
authored andcommitted
README: fix opportunistic_auth example
The HTTPSPNEGOAuth constructor uses a keyword argument named "opportunistic_auth", not "opportunistic_authentication". Fix the example in the README to reflect this.
1 parent a16ecce commit 2847146

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ behavior can be altered by setting ``opportunistic_auth=True``:
101101
102102
>>> import requests
103103
>>> from requests_gssapi import HTTPSPNEGOAuth, REQUIRED
104-
>>> gssapi_auth = HTTPSPNEGOAuth(mutual_authentication=REQUIRED, opportunistic_authentication=True)
104+
>>> gssapi_auth = HTTPSPNEGOAuth(mutual_authentication=REQUIRED, opportunistic_auth=True)
105105
>>> r = requests.get("https://windows.example.org/wsman", auth=gssapi_auth)
106106
...
107107

0 commit comments

Comments
 (0)