@@ -136,8 +136,8 @@ behavior can be altered by setting ``opportunistic_auth=True``:
136136..code-block ::python
137137
138138>> > import requests
139- >> > from requests_gssapiimport HTTPSPNEGOAuth, REQUIRED
140- >> > gssapi_auth= HTTPSPNEGOAuth(mutual_authentication = REQUIRED , opportunistic_auth = True )
139+ >> > from requests_gssapiimport HTTPSPNEGOAuth
140+ >> > gssapi_auth= HTTPSPNEGOAuth(opportunistic_auth = True )
141141>> > r= requests.get(" https://windows.example.org/wsman" ,auth = gssapi_auth)
142142...
143143
@@ -152,7 +152,7 @@ passing in a custom name (string or ``gssapi.Name``):
152152..code-block ::python
153153
154154>> > import requests
155- >> > from requests_gssapiimport HTTPSPNEGOAuth, REQUIRED
155+ >> > from requests_gssapiimport HTTPSPNEGOAuth
156156>> > gssapi_auth= HTTPSPNEGOAuth(target_name = " internalhost.local" )
157157>> > r= requests.get(" https://externalhost.example.org/" ,auth = gssapi_auth)
158158...
@@ -168,7 +168,7 @@ applicable). However, an explicit credential can be in instead, if desired.
168168
169169>> > import gssapi
170170>> > import requests
171- >> > from requests_gssapiimport HTTPSPNEGOAuth, REQUIRED
171+ >> > from requests_gssapiimport HTTPSPNEGOAuth
172172>> > name= gssapi.Name(" user@REALM" , gssapi.NameType.hostbased_service)
173173>> > creds= gssapi.Credentials(name = name,usage = " initiate" )
174174>> > gssapi_auth= HTTPSPNEGOAuth(creds = creds)