Skip to content

Conversation

@seowalex
Copy link
Contributor

@seowalex seowalex commented Sep 3, 2025

Port pythongssapi/requests-gssapi#46 to httpx-gssapi.

@seowalex
Copy link
Contributor Author

seowalex commented Sep 7, 2025

@aiudirog could you review this?

@aiudirog
Copy link
Member

aiudirog commented Sep 8, 2025

@seowalex Thanks for the PR! Sorry for the delay, last week was pretty busy.

You also reminded me that I haven't been updating HISTORY.rst, so I took care of that and then resolved the merge conflict with main.

self.opportunistic_auth = opportunistic_auth
self.creds = creds
self.mech = mech
self.mech = mech if mech else SPNEGO
Copy link
Member

@aiudirog aiudirog Sep 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we allow a user to explicitly specify mech=None to use the OS default? I could definitely see someone relying on this behavior.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be honest, that seems reasonable, but this was copied directly from pythongssapi/requests-gssapi#46, and I didn't understand what the considerations were for that, so I didn't feel confident in removing it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think in the interest of allowing for some backwards compatibility, allowing the user to explicitly specify mech=None is a good idea.

Copy link
Contributor Author

@seowalex seowalex Sep 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, if you have other changes as well you can change that (or else I can do it).

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.48%. Comparing base (2c04c64) to head (ea1ead5).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #47      +/-   ##
==========================================
+ Coverage   95.45%   95.48%   +0.02%     
==========================================
  Files           3        3              
  Lines         154      155       +1     
==========================================
+ Hits          147      148       +1     
  Misses          7        7              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@aiudirog aiudirog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @seowalex!

@aiudirog aiudirog merged commit d27d75d into pythongssapi:main Sep 8, 2025
7 checks passed
@aiudirog
Copy link
Member

aiudirog commented Sep 8, 2025

@seowalex I just cut v0.5 with these changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants