Giter Club home page Giter Club logo

Comments (12)

greabock avatar greabock commented on July 19, 2024 3

@anhnt0212 same problem. Have you any solution?

from firebase-php.

skizzo avatar skizzo commented on July 19, 2024 2

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!

firebasephpdefaulttoken

from firebase-php.

parthjdabhi avatar parthjdabhi commented on July 19, 2024

@ktamas77 @llbbl @brianpilati @craigrusso can you help ?

from firebase-php.

evansnguyen0104 avatar evansnguyen0104 commented on July 19, 2024

@greabock i don't have :(

from firebase-php.

evansnguyen0104 avatar evansnguyen0104 commented on July 19, 2024

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.

evansnguyen0104 avatar evansnguyen0104 commented on July 19, 2024

@skizzo tks a lot.let me check again :D

from firebase-php.

martisj avatar martisj commented on July 19, 2024

Does this database secret override all the security rules defined?

from firebase-php.

evansnguyen0104 avatar evansnguyen0104 commented on July 19, 2024

@martisj i think it no

from firebase-php.

codemonkeynorth avatar codemonkeynorth commented on July 19, 2024

I believe this is deprecated now? Or am i looking at the wrong thing?

image

from firebase-php.

quocthinh212 avatar quocthinh212 commented on July 19, 2024

token

from firebase-php.

codemonkeynorth avatar codemonkeynorth commented on July 19, 2024

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.

codemonkeynorth avatar codemonkeynorth commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.