-
Notifications
You must be signed in to change notification settings - Fork 1.1k
PYTHON-3096 & PYTHON-2867 Implement GSSAPI ServiceHost support and expand canonicalization options #1983
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
Conversation
@@ -78,7 +78,7 @@ def __hash__(self) -> int: | |||
|
|||
|
|||
GSSAPIProperties = namedtuple( | |||
"GSSAPIProperties", ["service_name", "canonicalize_host_name", "service_realm"] | |||
"GSSAPIProperties", ["service_name", "canonicalize_host_name", "service_realm", "service_host"] |
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.
It doesn't look like we actually do anything with service_host. Why add it if it's not used?
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.
Argh, I made the changes in the synchronous files and they got wiped out! I'll make a follow up PR tomorrow.
@@ -87,6 +87,16 @@ def __hash__(self) -> int: | |||
"""Mechanism properties for MONGODB-AWS authentication.""" | |||
|
|||
|
|||
def _validate_canonicalize_host_name(value: str | bool) -> str | bool: | |||
valid_names = [False, True, "none", "forward", "forwardAndReverse"] |
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.
So "none", "forward", and "forwardAndReverse" are all supposed to be treated the same as True? Is that accurate?
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.
No, you'll see in the follow up PR how they're used in practice.
No description provided.