Google authentication in macOS app #2399
-
Hi all, Has anyone tried Google authentication in a macOS app? I'm using the various authentication setup guides for an app that I'm building for all of Flutter's supported platforms. However, when running as a macOS app, when I click "Sign in with Google" the app becomes non-responsive. Is Google authentication in a macOS app supported, or am I doing something wrong? Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Adding to this, I've applied the same guidance to the macOS app as suggested for the iOS setup (including - for now - sharing a bundle_id). Details of the setup are here: https://medium.com/serverpod/integrating-google-sign-in-with-serverpod-authentication-part-2-6fade3099baf Now, both iOS and macOS fire up Safari and provide a Google authentication screen. When completed however, I see the following in the logs:
Any idea why this is not completing correctly? |
Beta Was this translation helpful? Give feedback.
-
Looking through the server logs I can see the following:
This aligns with a similar discussion topic that was resolved by placing the |
Beta Was this translation helpful? Give feedback.
-
I've tracked down the issue to the following code in
When creating an OAuth client ID in Google Cloud Console, the
So it would probably make sense to make
|
Beta Was this translation helpful? Give feedback.
I've tracked down the issue to the following code in
serverpod/modules/serverpod_auth/serverpod_auth_server/lib/src/business/google_auth.dart