firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.56k stars 1.45k forks source link

Reached max OAuth Clients of iOS Project #5699

Closed stherold closed 3 years ago

stherold commented 4 years ago

[REQUIRED] Step 1: Describe your environment

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

We use one Firebase project and have many iOS apps in it. We now reached the limit of OAuth Clients for that project since Firebase creates one per app in contrast to Android which has only one in the whole project. The OAuth Client Id is created in GoogleCloudPlatform Credentials site and referenced in the Google-Services-Info.plist via the key CLIENT_ID. We had 30 IDs since the IDs of apps we already deleted from Firebase where not deleted on GCP.

My question is what this is actually for and what would happen if we delete the OAuth-Client ID?

morganchen12 commented 4 years ago

In the future, these kinds of questions (non-SDK, console-only) should be directed to Firebase Support.

Maybe @MeghaB knows the answer?

stherold commented 4 years ago

Yeah we tried to contact the support first but this was maybe too technical. Thats why we try to formulate our concrete questions here.

morganchen12 commented 4 years ago

Noted, can you provide me the support case number? You shouldn't have to worry about support cases being too technical; in that case the support staff will escalate those cases to the SDK team here anyway.

The reason I mentioned these cases should go through support is because we can much more easily look at your Firebase project with an open support case than we can through GitHub issues.

Blackjacx commented 4 years ago

So here we go: Case 00060698: Adding App - Resource has been exhausted [ ref:_00D1Ux0Jq._5003p2PBZhZ:ref ]

morganchen12 commented 4 years ago

Looking at some of the internal docs, the suggested workaround is to create new apps under a separate Firebase project. I'm not sure why deleting old apps in the project does not remove their OAuth clients.

Unfortunately I don't have a better answer at the moment, but I'll try to find out why deleting old apps doesn't free OAuth client capacity.

morganchen12 commented 3 years ago

I wasn't able to find a satisfying answer from my relatively shallow digging around. If more people run into this, I'll re-open the issue and investigate further.

stherold commented 3 years ago

It was because deleting the Firebase app didn't delete the oAuth client from Google Cloud Platform. After purging them I was able to create a new FB app.