Skip to content
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

Merged
merged 17 commits into from Apr 29, 2024

Conversation

blink1073
Copy link
Member

@blink1073 blink1073 commented Apr 25, 2024

"mechanism": "MONGODB-OIDC",
"mechanism_properties": {
"ENVIRONMENT": "azure",
"TOKEN_RESOURCE": "abc%2Cdef%3Aghi"

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@blink1073 blink1073 changed the title PYTHON-4256 Clean up handling of TOKEN_RESOURCE PYTHON-4256 & PYTHON-4399 Clean up handling of TOKEN_RESOURCE Apr 26, 2024
@blink1073 blink1073 changed the title PYTHON-4256 & PYTHON-4399 Clean up handling of TOKEN_RESOURCE PYTHON-4256 Clean up handling of TOKEN_RESOURCE Apr 26, 2024
@@ -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",

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 provider
  • uld throw - two spaces
  • exception custom callback and PROVIDER_NAME:custom - not sure if these tests are still valid, I reverted changes

Copy link
Member Author

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.

@blink1073 blink1073 merged commit 6584dd2 into mongodb:master Apr 29, 2024
75 of 77 checks passed
@blink1073 blink1073 deleted the PYTHON-4256-4 branch April 29, 2024 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants