Giter VIP home page Giter VIP logo

Comments (2)

rwillmer avatar rwillmer commented on September 28, 2024

If you could confirm that my understanding is right, I can give you a Pull Request which allows the use of a token without using the secret.

from python-firebase.

rwillmer avatar rwillmer commented on September 28, 2024

Got this back from the firebase guys, so I guess this is apparently OK as long as your server is trusted.

"It's fine (and expected) to use your Firebase Secret in your trusted server code. You just shouldn't put it anywhere that gets sent to the user (in your html / javascript, in a mobile app, etc.).

It's not as applicable to the python client, since most of the code you write in python is probably trusted server code, so it's fine to include the secret. But for our other token generators (java, javascript, etc.) we've had issues with people accidentally leaking their secret by improperly using it in code that gets sent to their users."

But I still don't like the idea :) So I've made a couple of mods to your code which allow me to use a more fine-grained role-specific token-based approach. I'll send in a Pull Request with the changes.

from python-firebase.

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.