Skip to content

PYTHON-4256 Clean up handling of TOKEN_RESOURCE#1620

Merged
blink1073 merged 17 commits into
mongodb:masterfrom
blink1073:PYTHON-4256-4
Apr 29, 2024
Merged

PYTHON-4256 Clean up handling of TOKEN_RESOURCE#1620
blink1073 merged 17 commits into
mongodb:masterfrom
blink1073:PYTHON-4256-4

Conversation

@blink1073

@blink1073 blink1073 commented Apr 25, 2024

Copy link
Copy Markdown
Member

Comment thread test/auth/legacy/connection-string.json Outdated
"mechanism": "MONGODB-OIDC",
"mechanism_properties": {
"ENVIRONMENT": "azure",
"TOKEN_RESOURCE": "abc%2Cdef%3Aghi"

Copy link
Copy Markdown

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
Copy Markdown
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
{
"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",

Copy link
Copy Markdown

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
Copy Markdown
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 requested a review from katcharov April 26, 2024 17:04
@blink1073 blink1073 merged commit 6584dd2 into mongodb:master Apr 29, 2024
@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

Development

Successfully merging this pull request may close these issues.

3 participants