Closed sanjayelate closed 1 week ago
It appears that Firebase is not recognizing the iOS project within your Firebase setup. You could try removing the iOS app from the Firebase project and then re-generating it via FlutterFlow. Alternatively, you can use the "Generate Config Files" feature within FlutterFlow to see if it resolves the issue.
I recall encountering a similar situation a few months ago; this Stack Overflow post may provide some helpful insights: Error 400: Invalid request for iOS Google Sign-In.
I hope this helps!
It appears that Firebase is not recognizing the iOS project within your Firebase setup. You could try removing the iOS app from the Firebase project and then re-generating it via FlutterFlow. Alternatively, you can use the "Generate Config Files" feature within FlutterFlow to see if it resolves the issue.
I recall encountering a similar situation a few months ago; this Stack Overflow post may provide some helpful insights: Error 400: Invalid request for iOS Google Sign-In.
I hope this helps!
@Alezanello I should've mentioned, I'd tried that already too. Have regenerated the config files, have removed the ios project and re-added it, even checked and regenerated the api keys
I highly recommend reaching out to support through the in-app chat or by emailing support@flutterflow.io, as this appears to be a project-specific issue. Please note that this GitHub issue tracker is primarily intended for bugs that can be reproduced in a new blank project.
Thank you for your understanding!
This issue is stale because it has been open for 7 days with no activity. If there are no further updates, a team member will close the issue.
Can we access your project?
Current Behavior
Google Sign-In process in a FlutterFlow app that results in an "Error 400: invalid_request" during the OAuth flow when app check is enabled.
I believe it's related to this: https://firebase.blog/posts/2024/02/app-check-comes-to-google-idp-ios. Error also discussed here: https://stackoverflow.com/questions/79131727/securing-google-identification-for-ios-with-firebase-appcheck
Example error code:
Error 400: invalid_request Request details: response_type=code code_challenge_method=S256 nonce=0nElX31qLgQ0Dq0aZyiVOY6Z0ICPU-or6R5t3E2UDJc device_os=iOS 18.0.1 client_id=257414503801-.apps.googleusercontent.com emm_support=1 gpsdk=gid-7.1.0 gidenv=ios state=_BK3scc2Y72FeHTVO0Zu06CaGerBPgz1fedDU0lq-2c redirect_uri=com.googleusercontent.apps.257414503801-/oauth2callback code_challenge=YXA2OVMnVJ3ozlcHpd4fwTt8GUcMrDKCHc6CvUeOEWA include_granted_scopes=true access_type=offline scope=https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email openid flowName=GeneralOAuthFlow
Investigation and Findings:
Diagnosis: The issue appears to be that while the code_challenge_method is being set to S256, the actual code_challenge parameter is missing from the request. This happens when:
Tried creating a custom google sign in but FlutterFlow has limitations on return types so can't return userCredentials
Expected Behavior
Google sign in should not be blocked
Steps to Reproduce
Enforce appcheck when using Google Identity for iOS
Reproducible from Blank
Bug Report Code (Required)
ITFfk8n1z892pbwC+a6JLMJKiSkXNW0cTeU30+thcw4bI+PzBLQIOsmkUBFBSOqHTwl2E2ekgToFw8rPis79VO4CNUmtGL5f/6l5UxDiQlqmVbrREpG0R3FSM/tWf0+Oy7SnhRYlOvF2ZVJi7V73BN+Qb3qCf9qOYwx5e6fDbOY=
Visual documentation
Environment
Additional Information
No response