Skip to content

Commit 78910e0

Browse files
committed
Explicit Principal code sample is wrong (#33)
This closes #33 Signed-off-by: Michael Osipov <[email protected]>
1 parent e56466f commit 78910e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ applicable). However, an explicit credential can be in instead, if desired.
169169
>>> import gssapi
170170
>>> import requests
171171
>>> from requests_gssapi import HTTPSPNEGOAuth
172-
>>> name = gssapi.Name("user@REALM", gssapi.NameType.hostbased_service)
172+
>>> name = gssapi.Name("user@REALM", gssapi.NameType.user)
173173
>>> creds = gssapi.Credentials(name=name, usage="initiate")
174174
>>> gssapi_auth = HTTPSPNEGOAuth(creds=creds)
175175
>>> r = requests.get("http://example.org", auth=gssapi_auth)

0 commit comments

Comments
 (0)