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

fix google oauth guard #4987

Merged
merged 3 commits into from
Apr 16, 2024
Merged

fix google oauth guard #4987

merged 3 commits into from
Apr 16, 2024

Conversation

Weiko
Copy link
Member

@Weiko Weiko commented Apr 16, 2024

Context

Recent PR introduced a verifyTransientToken inside the GoogleAPIsProviderEnabledGuard guard. This is used to extract the workspaceId from the token. This is working fine for the first call sent to google however the callback is calling the same guard which is causing an issue because the transientToken is missing from the callback.
Imho, the same guard shouldn't be used by the callback but for the time being I'm adding a check to prevent using feature flag when transientToken is absent. In fact, it is present in the request but not in the same key. Because the scope is only relevant for the first call, I'm simply adding a check there.

@Weiko Weiko changed the title C fix google oauth guard fix google oauth guard Apr 16, 2024
Copy link
Contributor

@bosiraphael bosiraphael left a comment

Choose a reason for hiding this comment

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

LGTM

@Weiko Weiko merged commit cd6ed86 into main Apr 16, 2024
5 checks passed
@Weiko Weiko deleted the c--fix-google-oauth-guard branch April 16, 2024 10:48
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.

None yet

2 participants