Skip to content

Commit

Permalink
Drop out of sequence detection (pythongssapi#38)
Browse files Browse the repository at this point in the history
SPNEGO over HTTP does not use any message wrapping, therefore requesting
out of sequence detection doesn't make sense.

This fixes pythongssapi#38

Signed-off-by: Michael Osipov <[email protected]>
  • Loading branch information
michael-o committed Dec 22, 2021
1 parent 0402d14 commit f40385e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requests_gssapi/gssapi_.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def generate_request_header(self, response, host, is_preemptive=False):
"""

gssflags = [gssapi.RequirementFlag.out_of_sequence_detection]
gssflags = []
if self.delegate:
gssflags.append(gssapi.RequirementFlag.delegate_to_peer)
if self.mutual_authentication != DISABLED:
Expand Down
2 changes: 1 addition & 1 deletion test_requests_gssapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# construction, so construct a *really* fake one
fail_resp = Mock(side_effect=gssapi.exceptions.GSSError(0, 0))

gssflags = [gssapi.RequirementFlag.out_of_sequence_detection]
gssflags = []
mutflags = gssflags + [gssapi.RequirementFlag.mutual_authentication]
gssdelegflags = gssflags + [gssapi.RequirementFlag.delegate_to_peer]

Expand Down

0 comments on commit f40385e

Please sign in to comment.