jeudi 8 janvier 2015

ember-simple-auth - help get me over the final hurdle

I am trying to port an app that is early in development from .NET to Node/Sails/Passport. The UI is an emberjs app. The backend can authenticate users using Facebook. That is tested and working.


To now start integrate that into the UI i have made the following commit:


http://ift.tt/1AJhcwG


As you can see I am pulling in ember-simple-auth


Now, I have no idea how to get ember-simple-auth to see that once I visit http://ift.tt/1BKOxW1 and authenticate that I now have a valid session with the server.


Inside my header (http://ift.tt/1AJhaop) i am doing:



{{#if session.isAuthenticated}}
the user is authenticated
{{/if}}


but this is never true.


So my q is how do i finish off wiring all this up?


Aucun commentaire:

Enregistrer un commentaire