-
Notifications
You must be signed in to change notification settings - Fork 889
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
GODRIVER-3249: Handle all possible OIDC configuration errors #1734
Conversation
Co-authored-by: Matt Dale <9760375+matthewdale@users.noreply.github.com>
API Change Report./x/mongo/driver/authcompatible changesAllowedHostsProp: added |
@@ -26,14 +26,24 @@ import ( | |||
// MongoDBOIDC is the string constant for the MONGODB-OIDC authentication mechanism. |
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.
These are now public so they can be reused in configuration error checking to keep consistency if we ever need to change the values.
…was already doing the right thing
I added in GODRIVER-3226 because the GODRIVER was actually handling this correctly, unlike the python driver, and all I needed was to add tests showing that. |
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! 👍
Co-authored-by: Matt Dale <9760375+matthewdale@users.noreply.github.com>
GODRIVER-3249
Summary
Add configuration errors for all malformed configuration for the OIDC authentication mechanism. Some of these are redundant with errors thrown by the OIDC code itself, but these should occur before that point. I think double checking is fine.
Background & Motivation
OIDC epic