-
Notifications
You must be signed in to change notification settings - Fork 892
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-2758: Add documentation examples #1759
Conversation
mongo/client_examples_test.go
Outdated
// Azure Kubernetes Service (AKS), you can use the `azidentity package` | ||
// (https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity) | ||
// to fetch the credentials. In each case, the OIDCCallback function should return | ||
// the AccessToken from the azidentity package. |
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 wasn't sure how to actually add an example for this because I didn't want to add the azidentity package to the go driver go.mod file.
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.
Yeah, I think what you have makes sense.
3500d8e
to
3a21e18
Compare
API Change ReportNo changes found! |
Co-authored-by: Steven Silvester <steve.silvester@mongodb.com>
Two spelling errors and one addition needed to mongo/client_examples_test.go:605: AKS ==> ASK |
Once this is approved, I will add the same examples for https://jira.mongodb.org/browse/GODRIVER-3174 |
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! 👍
Build and static checks are passing, I'll merge and cherry-pick. |
Co-authored-by: Steven Silvester <steve.silvester@mongodb.com> Co-authored-by: Matt Dale <9760375+matthewdale@users.noreply.github.com> (cherry picked from commit 485e74d)
GODRIVER-2758
Summary
Add documentation examples for OIDC using (hopefully) a style consistent with go driver's other documentation examples
Background & Motivation
OIDC epic