我正在尝试将早期开发的应用程序从.NET移植到Node / Sails / Passport。用户界面是一个emberjs应用程序。后端可以使用Facebook验证用户身份。经过测试和运作。
现在开始将其集成到UI中,我做了以下提交:
https://github.com/wayne-o/sonatribe/commit/9c50f7fe7200251196543a59ae51c1e149de83ae
正如你所看到的,我正在使用ember-simple-auth
现在,我不知道如何让ember-simple-auth看到我访问http://someauthservice.com/auth/facebook并验证我现在与服务器有一个有效的会话。
我的标题内部(https://github.com/wayne-o/sonatribe/blob/master/src/sonatribe-ui/app/templates/header.hbs)我在做:
{{#if session.isAuthenticated}}
the user is authenticated
{{/if}}
但事实并非如此。
所以我的问题是如何完成这一切的连线?