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

GODRIVER-2758: Add documentation examples #1759

Merged
merged 12 commits into from
Sep 11, 2024
Merged

Conversation

pmeredit
Copy link
Collaborator

GODRIVER-2758

Summary

Add documentation examples for OIDC using (hopefully) a style consistent with go driver's other documentation examples

Background & Motivation

OIDC epic

// 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.
Copy link
Collaborator Author

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.

Copy link
Member

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.

@mongodb-drivers-pr-bot mongodb-drivers-pr-bot bot added the priority-3-low Low Priority PR for Review label Aug 15, 2024
Copy link
Contributor

API Change Report

No changes found!

Co-authored-by: Steven Silvester <steve.silvester@mongodb.com>
@blink1073
Copy link
Member

Two spelling errors and one addition needed to .pre-commit-config.yml in codespell's args

mongo/client_examples_test.go:605: AKS ==> ASK
mongo/client_examples_test.go:654: Prodiver ==> Provider
mongo/client_examples_test.go:670: persmissions ==> permissions

@pmeredit
Copy link
Collaborator Author

Once this is approved, I will add the same examples for https://jira.mongodb.org/browse/GODRIVER-3174

@blink1073 blink1073 added priority-2-medium Medium Priority PR for Review and removed priority-3-low Low Priority PR for Review labels Aug 29, 2024
@blink1073 blink1073 added priority-1-high High Priority PR for Review and removed priority-2-medium Medium Priority PR for Review labels Sep 9, 2024
Copy link
Collaborator

@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

Build and static checks are passing, I'll merge and cherry-pick.

@blink1073 blink1073 merged commit 485e74d into mongodb:v1 Sep 11, 2024
11 of 12 checks passed
blink1073 pushed a commit to blink1073/mongo-go-driver that referenced this pull request Sep 11, 2024
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-1-high High Priority PR for Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants