-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[google_sign_in] Add doc for iOS auth with SERVER_CLIENT_ID #4747
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Milvintsiss Thanks for sending this PR. Although this documentation is good to have, we probably also want to update the code to make the clientId programmatically configurable from a dart API. I think this proposal here is valid.
We actually have already implemented a way to dynamically set up the clientId, which should be petty easily discoverable. :https://github.com/flutter/plugins/blob/main/packages/google_sign_in/google_sign_in/lib/google_sign_in.dart#L186
If we are adding the plist approach for clientId in README, then we should add the programmatic approach too so users can choose the way they want to do it
As per documentation this is only for web. Currently there is no way to programmatically configure this. EDIT: I looked a bit to the native code using the programmatically configured
|
I see, I got confused with these 2 IDs. Yes I don't see why it should not be programmatically configurable. |
While trying to implement a programmatically configurable
and how we are using it here. I tried using the Therefor on iOS both This really need clarification, the current Hope this is readable, and please notify me if I'm misunderstanding something. |
@cyanglaz Can you do the primary review here since you've been looking at this the most? |
@Milvintsiss There is a PR trying to add the serverClientId #5250. It is currently being worked on. Maybe we can cooperate the new changes into this doc change after the above PR lands? |
@cyanglaz Yes it would be great 👍 |
@cyanglaz @Milvintsiss looks like #5250 has landed; what are the next steps on this PR? |
@Hixie I think we can close this one, the author has already added documentation in the README. Maybe we can add a note about configuring the |
Yes, we should also add a document for adding |
Hey @cyanglaz can I have a review on this? :) |
@cyanglaz Ping on this review from triage. |
Why is this pr still open? Changes regarding the doc configuring SERVER_CLIENT_ID in GoogleService-Info.plist is not yet merged. Stumbled upon this ISSUE today and found that setting serverClientId in dart code alone does not work at all. Finally got it working by adding SERVER_CLIENT_ID in GoogleService-Info.plist. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* 90f447313 [ci] Increase timeouts for platform_tests (flutter/plugins#7036) * f5568e4b1 [google_sign_in] Add doc for iOS auth with SERVER_CLIENT_ID (flutter/plugins#4747) * 0c05e8d91 Roll Flutter from a815ee6 to 75680ae (58 revisions) (flutter/plugins#7048) * a4c320902 [camera]: Bump camerax_version from 1.3.0-alpha02 to 1.3.0-alpha03 in /packages/camera/camera_android_camerax/android (flutter/plugins#7061) * 8f12b27b6 [ci] Add LUCI versions of macOS ARM tests (flutter/plugins#6984) * 3843b38e2 [tool] Improve main-branch detection (flutter/plugins#7038) * d39e7569c [in_app_purchase] Prep for more const widgets (flutter/plugins#7030) * ddb9777ee [ci] Switch remaining macOS host tests to LUCI (flutter/plugins#7063) * 2edf56324 [ci] Part 1 of swapping iOS platform test arch (flutter/plugins#7064) * 35f0b1a49 [camerax] Add system services to plugin (flutter/plugins#6986) * 5dd0f41a2 [webview]: Bump mockito-inline (flutter/plugins#7056) * 1896f10ca [webview_flutter_wkwebview][webview_flutter_android] Fixes bug where the `WebView`s could not be released (flutter/plugins#6996) * a494825fa [camerax] Allow instance manager to create identical objects (flutter/plugins#7034) * 6ef73da26 [ci] Increase heavy workload memory (flutter/plugins#7065) * 9da327ca3 [various] Update to use sharedDarwinSource (flutter/plugins#7027)
Add documentation for iOS auth with SERVER_CLIENT_ID.
After a long time struggling with a non-working iOS configuration but Android working well, I figured out that firebase was not adding the SERVER_CLIENT_ID field in the Google-info-service.plist file genereated. This can be really long to troubleshoot for someone like me who don't know really much about GoogleAuth with flutter plugin.
Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style.///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.