Comments (17)
You can see an example of a sample authentication system at https://github.com/balinterdi/ideavote-emberfire
from emberfire.
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.
@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.
An integrated auth or tutorial on how to use Simple Login with EmberFire would be awesome!
from emberfire.
I recently code-reviewed @raytiley's version of this, maybe he is able to share.
from emberfire.
Re-opening issue, so we can target this feature in the next couple of release cycles.
from emberfire.
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.
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.
Since authentication is now in firebase core, is there plan to add this functionality to emberFire?
from emberfire.
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.
@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.
@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.
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.
@oskarrough awesome! Feel free to share when it's ready and I'll take a look
from emberfire.
@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.
@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.
@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)
- This seems to throw an error HOT 2
- Realtime: how to subscribe to multiple documents HOT 15
- Steps for local-setup lead to non-functional dummy app HOT 2
- Does emberfire v3 realtime database adapter work at all? HOT 7
- store.queryRecord broken with query-only HOT 2
- Type Error: firebase-app.ts HOT 2
- Realtime Updates not working HOT 8
- fastboot, ember simple auth and emberfire dont work each other HOT 2
- error querying firestore in fastboot mode HOT 1
- Firestore adapter reference options order
- Emberfire v3 bug in the firestore adapter
- Bug in firestore: Cannot read property 'replace' of undefined HOT 5
- Using `include` in findRecord throws error HOT 1
- subcollections implemented in a way that prevents multiple hasmany relationships with the same model
- FirestoreAdapter Error while processing route: index the adapter could not find the resource HOT 2
- Session.isAuthenticated is not getting updated? HOT 5
- adapter.fetch is not a function when using TORII for Auth in 3.0.0-rc6 HOT 1
- Potential Security Issue
- @jamesdaniels, please consider ember-adopted-addons program HOT 1
- For Anyone Struggling with hasMany relationships with Firestore
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 emberfire.