I am using session based authentication common for django application (subdomainA.example.com) and SPA consuming django API (subdomainB.exmaple.com).
I check certain artifact to determine either user is currently authenticated (certain cookie - seems poor solution but any idea how to do it better) and if yes, I would like to set ember simple auth session as authenticated.
How should I do it? this.set('session.isAuthenticated', true);
seems not working fine, because on invalidate
I got error: ember.debug.js:16624 Uncaught Error: Assertion Failed: Session#invalidate requires the session to be authenticated!
Aucun commentaire:
Enregistrer un commentaire