-
Notifications
You must be signed in to change notification settings - Fork 244
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
Conversation
My editor removed trailing white space, I recommend adding |
Tested in mongodb/mongo-python-driver#1365 |
source/auth/auth.rst
Outdated
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. |
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.
… 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?
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'm deferring that conversation until DRIVERS-2672.
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.
Cool, sounds good to me 👍 Just saying, you could leave this out if you prefer to keep it simple until then. FFTR
Co-authored-by: Anna Henningsen <[email protected]>
Co-authored-by: Anna Henningsen <[email protected]>
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.
Looks good as far as I am concerned!
Co-authored-by: Matt Dale <[email protected]>
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.
Looks good 👍
Closing since this will be merged with #1471 |
Please complete the following before merging: