Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Authentication Scope at firebase deploy

Tags:

I recently submittet a "firebase deploy" command, and was notified that my deploy attempt had failed, due to insufficient authentication scope. What does "insufficient authentication scopes", mean?

like image 211
treeFan Avatar asked Feb 18 '17 15:02

treeFan


People also ask

What type of authentication does Firebase use?

Firebase Authentication provides backend services, easy-to-use SDKs, and ready-made UI libraries to authenticate users to your app. It supports authentication using passwords, phone numbers, popular federated identity providers like Google, Facebook and Twitter, and more.

Does Firebase Auth use OAuth2?

Generate an access tokenThe Realtime Database REST API accepts standard Google OAuth2 access tokens. The access tokens can be generated using a service account with proper permissions to your Realtime Database.

How secure is Firebase authentication?

The short answer is yes: by authenticating your users and writing security rules, you can fully restrict read / write access to your Firebase data. In a nutshell, Firebase security is enforced by server-side rules, that you author, and govern read or write access to given paths in your Firebase data tree.


1 Answers

I had a similar issue and I contacted the support who told me they are working on it.

They also provided a workaround that worked for me. Instead of calling firebase deploy to update everything, split the process and call:

firebase deploy --only hosting firebase deploy --only database

For hosting, an other workaround is to deploy twice (the update actually works, only the 'Current' version is not updated to the latest), and then rollback the latest deploy, which will make the previous (identical) one current.

like image 143
Gilles Debunne Avatar answered Sep 22 '22 09:09

Gilles Debunne