I am struggling a little with how I should implement a user authentication management in Ember JS. I would like to start with a very basic implementation.
# database table
users
-----
username, password, token
When the user attempts to sign in, they would provide credentials (username, password). The API which is requested should return a token and this token (in a header) should be used in every subsequent http request.
Couple of questions here:
- Where do I store the "token". Is there a local store management?
- I know I could use this.get('store') although this ties with the "api server data source" as well
Any direction would be appreciated!
Thanks!
Aucun commentaire:
Enregistrer un commentaire