-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Look into integrating with Ember Simple Auth #111
Comments
+1 |
That would be amazing. |
+1 |
1 similar comment
+1 |
This project should prolly be callled |
Are there any examples of how oath can be done with ember+firebase? It seems like (potentially) only a small amount of wiring may be needed even without seemless simple-auth integration. :s |
Hey all, we are actively working on integrating EmberFire with our Firebase login feature. I apologize that it has taken a little longer than expected, but we have someone actively working on it and we will hopefully have this new feature shortly. @hayd - In the meantime, you can just use our regular JavaScript library to do authentication. Ember after all is just JavaScript. The link I shared above has a ton of documentation on how to authenticate users. The methods should work fine in your Ember code without anything special. Note that the new authentication features require Firebase 1.1.x, not 1.0.x. If you are still on an older version of Firebase, you will need to also include our deprecated Firebase Simple Login library. I definitely suggest upgrading to the latest version if you can though! It should be very easy to get up-and-running! Feel free to ask questions on the EmberFire Google Group if you run into issues. |
Please look to the torii-fire library for integrating auth. It should be usable via the ember-simple-auth torii adapter. |
If anyone's interested, I just released a custom Firebase authenticator for Ember Simple Auth. You can find it here: https://github.com/jamesdixon/ember-cli-simple-auth-firebase At this time, it only supports Firebase's email + password authentication. |
where has this gotten to? I'm trying to use ember-simple-auth 1.0 (fully rewritten from prior versions) and want to plugin firebase but can't quite get my head around it. @jamesdixon I'll try your addon but it was clearly written in the pre-1.0 era so fingers crossed it still works as needed. |
@ksnyde yeah, i hope it works, but can't make any guarantees. Unfortunately, I'm not using Firebase any longer, so I have no plans to update it. That said, more than willing to accept a PR if it needs/you want to update it. |
@ksnyde did you get it up and running? So far I was able to configure ember-simple-auth with torii ( I've generated authenticator ) next I wrote my component // layout/authentication-widget/component.js
import Ember from 'ember';
export default Ember.Component.extend({
session: Ember.inject.service(),
actions: {
signIn: function (provider = "google") {
this.get("session").authenticate('authenticator:torii', 'firebase', {provider: provider});
},
signOut: function () {
this.get("session").invalidate();
}
}
}); And the popup invocation works good - I can make authentication with google, and when popup is closing I'm getting:
Not sure what is the problem - hard for me to debug. |
I decided I didn't need simple-auth and just used torii to firebase. Been using it for several months now and it works well. |
@ksnyde I figure out what was the problem - to make long story short - issue was with google credential, one letter was missing (my bad). Still debugging was hard for me ( first time I was looking into In the end it looks very good - all that I did before was done correctly: authenticator, torii-adapter, component (and it works as I expect). I picked ember-simple-auth as I know that in the end I might not be using firebase authentication (before in one of the project I've use torii session service, just like you, and it works fine). If ever would need any assist, just let me know - I might write a tutorial how to setup this one, as I didn't found anything in the internet. |
glad you got it sorted. it's always these simple mistakes that take the longest to unwind. :) |
http://ember-simple-auth.simplabs.com/
The text was updated successfully, but these errors were encountered: