Code Monkey home page Code Monkey logo

Comments (7)

jeromegamez avatar jeromegamez commented on August 21, 2024

Hi Elodie,

this is not yet possible with the bundle, but I am working on it - the base library this bundle is based upon already has the authentication support, so you could implement that in the meantime: https://github.com/kreait/firebase-php/releases

I hope that I can update the bundle in the next week.

Cheers
:octocat: Jérôme

from firebase-bundle.

elodieirdor avatar elodieirdor commented on August 21, 2024

OK, I was thinking about doing a PR after updating firebase-php to version 0.6.1 but if you're going to work on it, I can wait :)

Thanks again.

from firebase-bundle.

jeromegamez avatar jeromegamez commented on August 21, 2024

If you already have something, please proceed - I am only hoping to get to it next week :)

from firebase-bundle.

elodieirdor avatar elodieirdor commented on August 21, 2024

I don't have anything yet. I just took a look around and found an issue : the http-adapter-bundle requires version 0.6.0 for the http-adapter whereas firebase-php requires version 0.7.0. I'll try to work on it this weekend.

from firebase-bundle.

jeromegamez avatar jeromegamez commented on August 21, 2024

I just released a new version of the bundle which includes the latest firebase-php release. It's a bit rough on the edges and includes manual work in your application code, but I think it is a start.

https://github.com/kreait/firebase-bundle#authentication

It includes adding a new configuration parameter secret to a connection, an additional composer require firebase/token-generator and the addition of some code in your controller or service:

$firebase       = $this->container->get('kreait_firebase.connection.main');
$tokenGenerator = $firebase->getConfiguration()->getAuthTokenGenerator();

$adminToken     = $tokenGenerator->createAdminToken();

$firebase->setAuthToken($adminToken);

Please let me know if this is a starting point you could work with.

from firebase-bundle.

elodieirdor avatar elodieirdor commented on August 21, 2024

Hello Jérôme,

Thanks a lot it's perfectly working! You did a great job.

Cheers

from firebase-bundle.

jeromegamez avatar jeromegamez commented on August 21, 2024

Thanks for the feedback, Elodie - I will close this issue then :)

from firebase-bundle.

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.