chore: Switch Google web sign-in to the redirect flow#497
Draft
Zfinix wants to merge 3 commits into
Draft
Conversation
…uth.html` callback page instructions and redirect URI configurations
… client ID and redirect URI
vfiruz97
approved these changes
May 14, 2026
|
|
||
| 3. **Add the client ID to your Flutter project's `web/index.html`** (e.g., `my_project_flutter/web/index.html`). In the `<head>` section, add: | ||
| :::note | ||
| On the standard Serverpod project template, the Flutter web build is copied into the Serverpod web server's `web/app/` folder when you run the `flutter_build` script. If you deploy that way, the production callback lives at `https://your-domain.com/app/auth.html`, not at the domain root. Register that exact URL in **Authorized redirect URIs**. |
Contributor
There was a problem hiding this comment.
Will be nice, if you mentioned serverpod run flutter_build.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
flutter_web_auth_2+auth.html). The popup/iframe flow is no longer the default in the docs.auth.html) section underconcepts/authentication/setupso GitHub, Google, and any future redirect-based IdP reference one canonical place.passwords.yamlexamples (dev + prod),initializeGoogleSignInexample (clientId+redirectUriunderkIsWeb), and the Publishing-to-production redirect URI to use/app/auth.html(the standard template path).clientId is required,redirect_uri_mismatchacross all three configuration spots) and drops popup-only entries.auth.htmlsection instead of inlining the snippet.--dart-definepattern.Supersedes #494. Most of the redirect-flow content originated from @vfiruz97's work there; this PR re-applies that intent on top of the recently merged #490.
Requires
serverpod_auth_idp_flutter >= 3.5.0-beta.7(the version that adds theredirectUriparameter toinitializeGoogleSignIn).