jborean93 / pyspnego

Python SPNEGO authentication library
MIT License
52 stars 11 forks source link

Add no_integrity support and bindings in step #60

Closed jborean93 closed 1 year ago

jborean93 commented 1 year ago

Adds the no_integrity flag which can be used to explicitly tell the underlying provider that integrity and confidentiality is not to be used. This is used for Kerberos authentication on both SSPI and GSSAPI as by default it will always negotiate both integrity and confidentiality even if not explicitly requested.

This commit also adds support for specifying the channel binding token during the step calls. This makes it easier to create a security context and only provide connection level details when the first step is required.

codecov[bot] commented 1 year ago

Codecov Report

Merging #60 (222df56) into main (81d4a3f) will increase coverage by 0.01%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #60      +/-   ##
==========================================
+ Coverage   99.94%   99.96%   +0.01%     
==========================================
  Files          31       31              
  Lines        5218     5259      +41     
==========================================
+ Hits         5215     5257      +42     
+ Misses          3        2       -1     
Flag Coverage Δ
99.96% <100.00%> (+0.01%) :arrow_up:
py3.10 99.96% <100.00%> (+0.01%) :arrow_up:
py3.11 99.96% <100.00%> (+0.01%) :arrow_up:
py3.7 99.96% <100.00%> (+0.01%) :arrow_up:
py3.8 99.96% <100.00%> (+0.01%) :arrow_up:
py3.9 99.96% <100.00%> (+0.01%) :arrow_up:
x64 99.96% <100.00%> (+0.01%) :arrow_up:
x86 95.83% <56.52%> (-0.45%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/spnego/_context.py 100.00% <100.00%> (ø)
src/spnego/_credssp.py 100.00% <100.00%> (ø)
src/spnego/_gss.py 100.00% <100.00%> (+0.40%) :arrow_up:
src/spnego/_negotiate.py 100.00% <100.00%> (ø)
src/spnego/_ntlm.py 100.00% <100.00%> (ø)
src/spnego/_ntlm_raw/crypto.py 100.00% <100.00%> (ø)
src/spnego/_sspi.py 100.00% <100.00%> (ø)
src/spnego/_version.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.