Skip to content

Fix callback detection in Linux webview#62

Open
viseztrance wants to merge 1 commit intoinvertase:mainfrom
viseztrance:fix-linux-google-auth
Open

Fix callback detection in Linux webview#62
viseztrance wants to merge 1 commit intoinvertase:mainfrom
viseztrance:fix-linux-google-auth

Conversation

@viseztrance
Copy link

In google oauth, the uri gets passed around via a query parameter which causes the browser window to get closed too early.

https://accounts.google.com/CheckCookie?continue=https://accounts.google.com/signin/oauth/consent?...&redirect_uri=...

This PR ensures the redirect URL is matched only at the beginning of the current URI.

The change brings it on par with the windows version:
matching = url.rfind(redirectUrl_, 0) == 0;

Use `strncmp` to ensure the redirect URL is matched only at the
beginning of the current URI.
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.

1 participant