Sundararajan S
Sundararajan S

Reputation: 1378

Firebase - What is the API Key

In Firebase, when we sign up , it gives us an API key for each firebase Url. But where is it used in a consuming application? The fireBase API does not provide any means to supply API Key.

Security : What prevents anyone to go ahead and write any object to the given firebase Url? How is the authorization managed?

Upvotes: 44

Views: 84963

Answers (3)

Ankit Jindal
Ankit Jindal

Reputation: 4030

Follow these steps:

  1. Login to Firebase Console
  2. Select your project
  3. On the top left corner, you'll find Settings icon, click on Project Settings

settings

  1. For Web API key, you can find in General Tab web-api-key

  2. For Server Key, you can find under Cloud Messaging Tab server-key

Upvotes: 7

Eliut Islas
Eliut Islas

Reputation: 608

You can generate your api key at https://console.developers.google.com/apis/credentials?project=[YOUR-PROJECT]

Replace [YOUR-PROJECT] with your proyect ID.

Find more information at https://support.google.com/cloud/answer/6158862

regards.

Upvotes: 24

Andrew Lee
Andrew Lee

Reputation: 10185

updated the links to the new Firebase website

Your question is very timely, as Firebase just announced its full security suite a few days ago.

There's a nice intro screencast and docs here: https://firebase.google.com/docs/database/security/

The "API Key" is the old name for a Firebase Secret. This is used to generate Authentication Tokens to prove to Firebase who users are. You can see docs on authentication here: https://firebase.google.com/docs/auth/

Upvotes: 9

Related Questions