Skip to content
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

🐛 [firebase_auth] Cannot use OIDC OAuth with restricted Firebase API keys #11564

Open
Rexios80 opened this issue Sep 8, 2023 · 1 comment
Labels
platform: all Issues / PRs which are for all platforms. plugin: auth type: bug Something isn't working

Comments

@Rexios80
Copy link
Contributor

Rexios80 commented Sep 8, 2023

Bug report

Describe the bug
Cannot sign in with OIDC OAuth when the firebase credentials are restricted to specific application ids

Steps to reproduce

Steps to reproduce the behavior:

  1. Restrict firebase credentials in the GCP console to specific bundle ids
  2. OIDC OAuth doesn't work

Expected behavior

It works

Sample project

This requires too much external setup to be feasible


Additional context

The error:

{"error":{"code":403,"message":"Requests from this iOS client application <empty> are blocked.","errors":[{"message":"Requests from this iOS client application <empty> are blocked.","domain":"global","reason":"forbidden"}],"status":"PERMISSION_DENIED","details":[{"@type":"type.googleapis.com/google.rpc.ErrorInfo","reason":"API_KEY_IOS_APP_BLOCKED","domain":"googleapis.com","metadata":{"consumer":"projects/REDACTED","service":"identitytoolkit.googleapis.com"}}]}}

I thought this might be related to the transition to pigeon, so I tried firebase_auth 4.6.3 and got the same result.

I triple checked the OAuth url and the correct application id and bundle id are there, so I don't have any idea what the issue could be. This is easily reproducible on both iOS and Android.

@Rexios80 Rexios80 added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Sep 8, 2023
@Rexios80 Rexios80 changed the title 🐛 [firebase_auth] Cannot use OIDC OAuth with credential application restrictions Sep 8, 2023
@darshankawar darshankawar added the triage Issue is currently being triaged. label Sep 11, 2023
@darshankawar
Copy link

There was an old issue probably talking about same issue as this but it was closed due to inactivity.
I am not sure about the configuration, so based on the report, I'll keep this issue open for team's attention.

/cc @Lyokone

@darshankawar darshankawar added plugin: auth and removed Needs Attention This issue needs maintainer attention. triage Issue is currently being triaged. labels Sep 11, 2023
@Lyokone Lyokone added the platform: all Issues / PRs which are for all platforms. label Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: all Issues / PRs which are for all platforms. plugin: auth type: bug Something isn't working
3 participants