Skip to content

Commit

Permalink
Drop out of sequence detection (#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 #38

Signed-off-by: Michael Osipov <[email protected]>
  • Loading branch information
michael-o authored and jborean93 committed Jan 13, 2022
1 parent b8ea3fb commit 7af32f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ History

FUTURE: TBD
-----------
- Drop flag for out of sequence detection

1.2.3: 2021-02-08
-----------------
Expand Down
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 7af32f3

Please sign in to comment.