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

(DOCSP-35187): C++: Update Google Auth examples for v0.6.0 #3136

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

dacharyc
Copy link
Collaborator

@dacharyc dacharyc commented Jan 4, 2024

Pull Request Info

Jira ticket: https://jira.mongodb.org/browse/DOCSP-35187

Review Guidelines

REVIEWING.md

@dacharyc dacharyc changed the title (Docsp 35187): C++: Update Google Auth examples for v0.6.0 (DOCSP-35187): C++: Update Google Auth examples for v0.6.0 Jan 4, 2024
Copy link

github-actions bot commented Jan 4, 2024

Readability for Commit Hash: 11d0a4b

You can see any previous Readability scores (if they exist) by looking
at the comment's history.

Readability scores for changed documents:

  • source/sdk/cpp/users/authenticate-users: Grade Level: 8.0, Reading Ease: 59.09

For Grade Level, aim for 8 or below.

For Reading Ease scores, aim for 60 or above:

Score Difficulty
90-100 Very Easy
80-89 Easy
70-79 Fairly Easy
60-69 Medium
50-59 Fairly Hard
30-49 Hard
0-29 Very Hard

For help improving readability, try Hemingway App.

Copy link
Collaborator

@cbullinger cbullinger left a comment

Choose a reason for hiding this comment

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

non-blocking suggestions

// // :snippet-end:
// }
void testSignInWithGoogleAuthCodeSyntax() {
auto myAuthCode = "some auth code string";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
auto myAuthCode = "some auth code string";
// The user's server auth code you got from Google
auto myAuthCode = "auth_code_from_google";

maybe include this in the snippet?

appConfig.app_id = APP_ID;
auto app = realm::App(appConfig);

// The auth_code below is the user's server auth code you got from Google
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// The auth_code below is the user's server auth code you got from Google

(if we're including the above changes)

}

void testSignInWithGoogleIdTokenSyntax() {
auto myIdToken = "some ID token string";
Copy link
Collaborator

Choose a reason for hiding this comment

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

same

Suggested change
auto myIdToken = "some ID token string";
// The user's OpenID Connect token you got from
// the Google OAuth response
auto myIdToken = "openid_connect_token";

appConfig.app_id = APP_ID;
auto app = realm::App(appConfig);

// The id_token below is the user's OpenID Connect id_token you got from
Copy link
Collaborator

Choose a reason for hiding this comment

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

same

Suggested change
// The id_token below is the user's OpenID Connect id_token you got from

@dacharyc dacharyc merged commit aab955b into mongodb:C++-GA Jan 5, 2024
6 checks passed
@dacharyc dacharyc deleted the DOCSP-35187 branch January 5, 2024 14:39
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.

2 participants