jborean93 / pyspnego

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

Add context specific kwargs and privatise imports #20

Closed jborean93 closed 3 years ago

jborean93 commented 3 years ago

Adds support for passing in extra kwargs for a specific authentication context provider. Currently this is only used by the CredSSP context to support a custom provided TLS context and authentication provider for the sub authentication support.

This moves each context into their own private export to avoid exposing interfaces that should not be public. The current imports will continue to work but they have been marked as deprecated. The public API for generating a context is to use spnego.client or spnego.server.

jborean93 commented 3 years ago

Unfortunately it seems like CredSSP even on Server 2022 doesn't support TLS 1.3. The integration test for this scenario has been disabled until I can figure out more information on that one.