I am currently working on an Ember 2.4.x application and I am using ember-simple-auth
with a custom Authenticator and a custom Authoriser.
Upon successful authentication, the server responds with a json body containing information about the current user plus a cookie in the Response Headers:
Response Headers:
Set-Cookie:Authorization=1s39gpzqy4d0w1quxekavz6yj1;Path=/
Now, the only thing I need, for each consecutive requests, is to send back that same cookie. I understand that with ember-simple-auth
, I can use the block
callback in order to set an additional header in my the custom authoriser. However, I could not find a way to resend that exact same cookie with each requests.
Also I am wondering whether I need an Authoriser at all since I am not setting any header, the server only cares about that cookie.
Aucun commentaire:
Enregistrer un commentaire