1
0
Эх сурвалжийг харах

Use gssapi instead of the aged kerberos package

requests-kerberos is deprecated, switch to the maintained
requests-gssapi.
Simon Lundström 5 жил өмнө
parent
commit
566249bbe8
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      pepper/libpepper.py

+ 2 - 2
pepper/libpepper.py

@@ -267,8 +267,8 @@ class Pepper(object):
 
         '''
         import requests
-        from requests_kerberos import HTTPKerberosAuth, OPTIONAL
-        auth = HTTPKerberosAuth(mutual_authentication=OPTIONAL)
+        from requests_gssapi import HTTPSPNEGOAuth, OPTIONAL
+        auth = HTTPSPNEGOAuth(mutual_authentication=OPTIONAL)
         headers = {
             'Accept': 'application/json',
             'Content-Type': 'application/json',