-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
PYTHON-4256 Clean up handling of TOKEN_RESOURCE #1620
Conversation
"mechanism": "MONGODB-OIDC", | ||
"mechanism_properties": { | ||
"ENVIRONMENT": "azure", | ||
"TOKEN_RESOURCE": "abc%2Cdef%3Aghi" |
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.
I think this should be abc,def:ghi
? Since it's the "in code" value, which doesn't need to be encoded.
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.
Fixed
@@ -541,7 +541,7 @@ | |||
}, | |||
{ | |||
"description": "should accept a url-encoded TOKEN_RESOURCE (MONGODB-OIDC)", | |||
"uri": "mongodb://user@localhost/?authMechanism=MONGODB-OIDC&authMechanismProperties=ENVIRONMENT:azure,TOKEN_RESOURCE:mongodb%253A//test-cluster", | |||
"uri": "mongodb://user@localhost/?authMechanism=MONGODB-OIDC&authMechanismProperties=ENVIRONMENT:azure,TOKEN_RESOURCE:mongodb%3A%2F%2Ftest-cluster", |
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.
When copying this file to Java:
if specified provider is not
- should be "environment" not provideruld throw
- two spacesexception custom callback
andPROVIDER_NAME:custom
- not sure if these tests are still valid, I reverted changes
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.
Thanks, I had gotten out of sync.
Depends on mongodb-labs/drivers-evergreen-tools#435