Comments (12)
@anhnt0212 same problem. Have you any solution?
from firebase-php.
Chin up champs, in your firebase console, just go to the project settings, then to the tab database and then copy the secret key. Worked like a charm for me!
from firebase-php.
@ktamas77 @llbbl @brianpilati @craigrusso can you help ?
from firebase-php.
@greabock i don't have :(
from firebase-php.
Can you help me ?
On Mon, Aug 22, 2016 at 6:18 PM, Parth Dabhi (iOS & Android developer) <
[email protected]> wrote:
@ktamas77 https://github.com/ktamas77 @llbbl https://github.com/llbbl
@brianpilati https://github.com/brianpilati @craigrusso
https://github.com/craigrusso can you help ?—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#46 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMkHvQFADBySMb_3IE8RLr_lliP80huSks5qiYV1gaJpZM4JQhvo
.
from firebase-php.
@skizzo tks a lot.let me check again :D
from firebase-php.
Does this database secret override all the security rules defined?
from firebase-php.
@martisj i think it no
from firebase-php.
I believe this is deprecated now? Or am i looking at the wrong thing?
from firebase-php.
from firebase-php.
yes the secret still works but it is deprecated. you ought to be using Service Accounts now but this library does not yet support it
v1.x/2.x Firebase JWT token's that @anhnt0212 is using are not the same as the secret.
you could try kreait's version instead, which supports the Service Accounts used by v3.x firebase
having looked at that codebase, it's not simple so it's no small task that we are asking @ktamas77 to do to update this library to the new version by the way
what are you actually trying to do @anhnt0212 ?
from firebase-php.
ps if you use REST to access Firebase .json I believe authentication works in either of the following ways
...something.json?auth={secret}
// DEFAULT_TOKEN in ktamas77's docs
...something.json?auth={JWT}
...something.json?access_token={v3_service_account_oauth_token_etc}
I believe the middle one is what the token generator library you are using provides @anhnt0212
as you can see the token is passed in the querystring options for auth
https://github.com/ktamas77/firebase-php/blob/master/src/firebaseLib.php#L107
you could try creating a JWT token with Firebase token generator using your secret, and then pass that token into @ktamas77's library... if you don't want to pass your secret directy. I've not tried it though. it depends if it should be passed as auth= or access_token=
from firebase-php.
Related Issues (20)
- How to set the app or version
- how to set name in push?
- Recommend switching to `kreait/firebase-php`
- FirebaseLib HOT 1
- Git push is removing firebase_php folder. HOT 1
- Firestore Usage HOT 1
- Cannot use Database and Auth together HOT 1
- Slow query HOT 8
- firebase connection in php HOT 1
- Firebase created a new authentication HOT 2
- how to authenticate user using email and password
- i got "Permission denied" error
- firebase query "equalTo" doesn't work with "+" symbol HOT 1
- Setting value to 0 (number) is not possible HOT 1
- Credentials provided by firebase HOT 1
- No logging in firebaseLib
- I got 3 arduino devices with same code with same php code using this Lib but in firebase it only update 1 data not simultaneously those 3 devices it requires other device to be turn off so it can be updated HOT 5
- Getting unexpected error code 0/null/100
- Composer with php7.3 first time install issue: HOT 1
- Requirements? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase-php.