-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tls_kwargs
config to configure underlying ldap3 package tls
#273
Conversation
2ed37ef
to
fba5556
Compare
@@ -94,6 +95,29 @@ def _observe_use_ssl(self, change): | |||
""", | |||
) | |||
|
|||
tls_kvargs = Dict( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keyword arguments are ~always called kwargs
. Or are these something different?
tls_kvargs = Dict( | |
tls_kwargs = Dict( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aaaaaaaaaah thanks for catching this!! I felt something was off but I didn't figure out what.
await authenticator.get_authenticated_user( | ||
None, {"username": "leela", "password": "leela"} | ||
) | ||
except LDAPSSLConfigurationError: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
usually use with pytest.raises(LDAPSSLConfigurationError):
for this pattern
fba5556
to
eeb134d
Compare
@minrk I rebased, fixed a commit message, and changed |
Thank you for reviewing @minrk!!!!! |
tls_kvargs
config to configure underlying ldap3 package tlstls_kwargs
config to configure underlying ldap3 package tls
Thank you! |
And together with #258, I think its fair to say this also...
I didn't want to add several separate config options of what can be configured in the
ldap3
package through LDAPAuthenticator, so I instead addedtls_kvargs
and referenced ldap3 docs and source code for details. Like this we avoid maintenance and a layer that de-couples users fromldap3
which really does the work related to TLS anyhow.