pypi pyspnego 0.4.0

latest releases: 0.12.1, 0.12.0, 0.11.2...
4 years ago

0.4.0 - 2022-02-16

Features

  • Add usage argument for tls.default_tls_context to control whether the context is for a initiator or acceptor
  • Add type annotations and include py.typed in the package for downstream library use
  • Expose the ContextProxy class for type annotation use
  • Added get_extra_info to ContextProxy to expose a common way to retrieve context specific information, this is currently used by CredSSP to retrieve
    • client_credential: The delegated client credential for acceptors once the context is complete
    • sslcontext: The SSL context used to create the TLS object
    • ssl_object: The TLS object used during the CredSSP exchange
  • The client_credential property on CredSSP has been removed in favour of `context.get_extra_info('client_credential')
  • Added support for custom credential types
    • Can be used to for things like NTLM authentication with NT/LM hashes, Kerberos with a keytab or from an explicit CCache, etc
  • Support calling SSPI through pyspnego's Negotiate proxy context
    • This allows users on Windows to still use Negotiate auth but with a complex set of credentials
    • Also opens up the ability to use Negotiate but only with Kerberos auth

Deprecations

  • The username and password property on the auth context object are deprecated and will return None until it is removed in a future release

Don't miss a new pyspnego release

NewReleases is sending notifications on new releases.