Git Product home page Git Product logo

Comments (17)

mikeboydbrowne avatar mikeboydbrowne commented on May 14, 2024

You can see an example of a sample authentication system at https://github.com/balinterdi/ideavote-emberfire

from emberfire.

anantn avatar anantn commented on May 14, 2024

We don't plan on adding authentication support in the immediate future, though it is on the roadmap. You can always directly use the Firebase auth API or Simple Login directly.

from emberfire.

katowulf avatar katowulf commented on May 14, 2024

@mikeboydbrowne thanks for the great example! It looks like it should be rather helpful for other users until we have auth baked in. Cheers!

from emberfire.

davecyen avatar davecyen commented on May 14, 2024

An integrated auth or tutorial on how to use Simple Login with EmberFire would be awesome!

from emberfire.

stefanpenner avatar stefanpenner commented on May 14, 2024

I recently code-reviewed @raytiley's version of this, maybe he is able to share.

from emberfire.

anantn avatar anantn commented on May 14, 2024

Re-opening issue, so we can target this feature in the next couple of release cycles.

from emberfire.

raytiley avatar raytiley commented on May 14, 2024

Still a work in progress but people are welcome to glean what info they can from it: https://gist.github.com/raytiley/8976037

This controller is kinda tied to the way I want my app to work (it automatically creates a new ember data User when creating a new user). I'll probably refactor that out.

The big gotcha with the SimpleLogin stuff is that you have a single callback that gets fired every time user state changes. This makes it tricky to wrap things like logging in and logging out with a Promise which would feel more Emberish, especially when checking things like login state via promise aware router hooks.

I can give more feedback later if needed.

from emberfire.

hayd avatar hayd commented on May 14, 2024

I think this would be really useful as a custom generator for ember-cli!

This Stack Overflow question is also related: http://stackoverflow.com/questions/21084013/implement-firebase-simplelogin-email-password-in-ember-js-app

from emberfire.

davidpett avatar davidpett commented on May 14, 2024

Since authentication is now in firebase core, is there plan to add this functionality to emberFire?

from emberfire.

katowulf avatar katowulf commented on May 14, 2024

Authentication being added to the core doesn't make it any simpler to implement in Ember. As mentioned before, it's something that is definitely on our radar (this issue is still open). As we grow the team, we'll look into this. In the mean time, use the example from @mikeboydbrowne and build from there.

from emberfire.

davidpett avatar davidpett commented on May 14, 2024

@katowulf, thanks for the reply, I'm working on an initializer now that might be helpful, if it gets to a good point, I will submit a PR

from emberfire.

sararob avatar sararob commented on May 14, 2024

@Shadowfaxenator I'm closing this issue since it's a duplicate of #111. We'll work on adding support for authentication in upcoming releases.

from emberfire.

oskarrough avatar oskarrough commented on May 14, 2024

I have a working authentication Firebase Auth and Emberfire. Some hoops but stable for 2-3 weeks now. Will see if I can publish it somehow.

from emberfire.

sararob avatar sararob commented on May 14, 2024

@oskarrough awesome! Feel free to share when it's ready and I'll take a look

from emberfire.

oskarrough avatar oskarrough commented on May 14, 2024

@davidpett @sararob here we go: https://gist.github.com/oskarrough/914653b03d886c015320

I added some excessive commenting to the gist with the hope we can make it better together.

from emberfire.

davidpett avatar davidpett commented on May 14, 2024

@oskarrough looks very similar to what I have. I will fork this and add in the authWithPassword since that is what I'm using in my app. Great work!

from emberfire.

hayd avatar hayd commented on May 14, 2024

@oskarrough Thanks for posting that!

I wonder if it's worth/makes sense tweaking that into a fully-fledged ember-cli addon?

from emberfire.

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.