-
Notifications
You must be signed in to change notification settings - Fork 28.6k
How to set the serverClientID needed for serverAuthCode (Switching from iOS)? #57945
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
Comments
Note: I am using the latest version of Flutter's official |
Hi @JacobWrenn |
Hi @iapicca yes, I agree. However Google's official google sign in plugin for Flutter says to leave feedback here. I think that this is a missing feature compared to the library on other platforms (unless I have just not found the right docs). |
Hi @JacobWrenn at first sight your issue seems to be a request If this is not the case please describe the issue with said plugin in details |
Ok @iapicca, I will rephrase as a feature request.
An example of how this could look alongside existing options would be: final GoogleSignIn google = GoogleSignIn(scopes: ["email"], clientId: "abc123", serverClientId: "def456");
google.signIn(); |
The serverClientId parameter has been moved to the native configuration of the app (xml/plist) from the programmatic initialization. See the updated example app here: flutter/plugins#2116. Is the programmatic initialization still required? |
Without additional information, we are unfortunately not sure how to resolve this issue. Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
I think this is a valid proposal and we should implement this. @ditman @stuartmorgan |
@cyanglaz is this because the |
This should have closed when flutter/plugins#5250 merged. Available in google_sign_in 5.4.0. |
In my previous iOS application, I could get a
serverAuthCode
that I could pass to my own server that was then able to redeem tokens using its own client ID and make API requests on behalf of the user.I used to be able to specify
GIDSignIn.sharedInstance()?.serverClientID = "12345.apps.googleusercontent.com"
to tell the library the client ID of my server. I would like to know how to set this in Flutter.The text was updated successfully, but these errors were encountered: