From 81ba52a713ee06652f3b749187d15d8bdf38f74e Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Wed, 7 Apr 2021 09:34:56 +0200 Subject: [PATCH] Fix explicit principal code sample name type Closes: #33 Signed-off-by: Michael Osipov [rharwood@redhat.com: commit message styling] --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 508c06e..b0e9d41 100644 --- a/README.rst +++ b/README.rst @@ -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)