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

samples(web): Fix the outdated web sample #13338

Merged
merged 2 commits into from Feb 9, 2023

Conversation

bajajneha27
Copy link
Contributor

No description provided.

@bajajneha27 bajajneha27 requested a review from a team as a code owner January 23, 2023 14:02
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Jan 23, 2023
validator = GoogleIDToken::Validator.new
claim = validator.check(params['id_token'], audience, audience)
claim = validator.check(params['credential'], audience, audience)
Copy link
Member

Choose a reason for hiding this comment

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

We should probably also remove the dependency on google-id-token and instead use the classes in googleauth.

Copy link
Member

Choose a reason for hiding this comment

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

The ID token change will happen in a separate pull request, as agreed.

Copy link
Member

@dazuma dazuma left a comment

Choose a reason for hiding this comment

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

LGTM

validator = GoogleIDToken::Validator.new
claim = validator.check(params['id_token'], audience, audience)
claim = validator.check(params['credential'], audience, audience)
Copy link
Member

Choose a reason for hiding this comment

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

The ID token change will happen in a separate pull request, as agreed.

@bajajneha27 bajajneha27 merged commit 926ea7f into googleapis:main Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants