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

DRIVERS-2616 OIDC-SASL Follow-Up #1460

Closed
wants to merge 9 commits into from

Conversation

blink1073
Copy link
Member

Please complete the following before merging:

  • Update changelog.
  • Make sure there are generated JSON files from the YAML test files.
  • Test changes in at least one language driver.
  • Test these changes against all server versions and topologies (including standalone, replica set, sharded clusters, and serverless).

@blink1073 blink1073 requested a review from a team as a code owner September 5, 2023 13:15
@blink1073 blink1073 requested review from JamesKovacs and removed request for a team September 5, 2023 13:15
@blink1073
Copy link
Member Author

My editor removed trailing white space, I recommend adding ?w=1 to the diff url

@blink1073
Copy link
Member Author

Tested in mongodb/mongo-python-driver#1365

source/auth/auth.rst Outdated Show resolved Hide resolved
source/auth/auth.rst Outdated Show resolved Hide resolved
source/auth/auth.rst Outdated Show resolved Hide resolved
source/auth/auth.rst Show resolved Hide resolved
source/auth/auth.rst Show resolved Hide resolved
Before calling the callback, the driver MUST acquire a lock unique to the ``MongoClient``.
The driver MUST ensure that credentials have not changed between when the lock was requested and when it was acquired. The lock MUST be released
when the callback call as finished or errored.
This is because the ``REQUEST_TOKEN_CALLBACK`` may involve human interaction, and refresh tokens migh only be able to be used used once.
Copy link
Contributor

Choose a reason for hiding this comment

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

… but the only human-interaction workflow that currently exists doesn’t care about this lock.

I assume this also applies to machine workflows that perform work like HTTP calls?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm deferring that conversation until DRIVERS-2672.

Copy link
Contributor

Choose a reason for hiding this comment

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

Cool, sounds good to me 👍 Just saying, you could leave this out if you prefer to keep it simple until then. FFTR

blink1073 and others added 3 commits September 5, 2023 12:08
Copy link
Contributor

@addaleax addaleax left a comment

Choose a reason for hiding this comment

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

Looks good as far as I am concerned!

source/auth/tests/mongodb-oidc.rst Outdated Show resolved Hide resolved
source/auth/auth.rst Outdated Show resolved Hide resolved
source/auth/auth.rst Outdated Show resolved Hide resolved
source/auth/auth.rst Outdated Show resolved Hide resolved
source/auth/auth.rst Outdated Show resolved Hide resolved
Copy link
Contributor

@matthewdale matthewdale left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@blink1073
Copy link
Member Author

Closing since this will be merged with #1471

@blink1073 blink1073 closed this Nov 1, 2023
@blink1073 blink1073 deleted the DRIVERS-2616-2 branch November 1, 2023 15:34
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.

4 participants