Skip to content

Commit

Permalink
Explicit Principal code sample is wrong (#33)
Browse files Browse the repository at this point in the history
This closes #33
  • Loading branch information
michael-o committed Apr 7, 2021
1 parent e56466f commit d531802
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 @@ -169,7 +169,7 @@ applicable). However, an explicit credential can be in instead, if desired.
>>> import gssapi
>>> import requests
>>> from requests_gssapi import HTTPSPNEGOAuth
>>> name = gssapi.Name("user@REALM", gssapi.NameType.hostbased_service)
>>> name = gssapi.Name("user@REALM", gssapi.NameType.user)
>>> creds = gssapi.Credentials(name=name, usage="initiate")
>>> gssapi_auth = HTTPSPNEGOAuth(creds=creds)
>>> r = requests.get("http://example.org", auth=gssapi_auth)
Expand Down

0 comments on commit d531802

Please sign in to comment.