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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Update oauth docs to include snippet to get email address of authenticated user #1088

Conversation

@parthea
Copy link
Contributor

@parthea parthea commented Nov 12, 2020

Fixes #1071 馃

Note: I changed scopes=['profile', 'email'], to scopes=['openid', 'https://www.googleapis.com/auth/userinfo.email', 'https://www.googleapis.com/auth/userinfo.profile'], in the examples because I received a warning that the scope has changed.

Warning: Scope has changed from "email profile" to "https://www.googleapis.com/auth/userinfo.email openid https://www.googleapis.com/auth/userinfo.profile"..

@parthea parthea requested a review from busunkim96 Nov 12, 2020
@parthea parthea requested a review from as a code owner Nov 12, 2020
@google-cla google-cla bot added the cla: yes label Nov 12, 2020
@parthea parthea changed the title Update oauth docs to include snippet to get email address of authenticated user docs: Update oauth docs to include snippet to get email address of authenticated user Nov 12, 2020
@parthea parthea force-pushed the update-oauth-doc-to-include-user-info branch from ca919fc to 0a27925 Nov 12, 2020
tswast
tswast approved these changes Nov 12, 2020
Copy link

@tswast tswast left a comment

Thanks! I didn't know about this sample, but I have to do the same by trial-and-error when I want a set of scopes to debug auth logic.

I'm a bit disappointed that this is a code sample embedded in a markdown file (not testable), but that's a whole other issue.

@gcf-merge-on-green gcf-merge-on-green bot merged commit 25fba64 into googleapis:master Nov 13, 2020
3 of 4 checks passed
@parthea parthea deleted the update-oauth-doc-to-include-user-info branch Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants