paulvanbladel / aurelia-auth

:key: Authentication plugin for aurelia
200 stars 74 forks source link

Allow Aurelia-Auth to set the auth token as a cookie #156

Open SeanFarrow opened 7 years ago

SeanFarrow commented 7 years ago

Hi,

I am using Aurelia-auth with SignalR and IdentityServer and am wondering whether when a user is authenticated Aurelia-auth set the token as a cookie as well as using the auth header. If it doesn't could this be added/how can I do this? Any help appreciated. Kind regards Sean.

chriswait commented 7 years ago

@paulvanbladel I would be keen to have a go at a PR for this enhancement sometime in the next week, if it's something you're interested in having?

'storage.js' would obviously get a bit more complex due to the lack of a similar storage/cookies API.

This would open up the future possibility of a graceful fallback to cookies, which would address #160.

paulvanbladel commented 7 years ago

Hi @chriswait . cool. As long as things stay nicely backward compat. Thanks.