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:
https://github.com/wayne-o/sonatribe/commit/9c50f7fe7200251196543a59ae51c1e149de83ae
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://someauthservice.com/auth/facebook and authenticate that I now have a valid session with the server.
Inside my header (https://github.com/wayne-o/sonatribe/blob/master/src/sonatribe-ui/app/templates/header.hbs) 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?