vendredi 8 avril 2016

django - generate a csrf token

I'm writing some end to end tests for a DJANGO rest backend using dredd.

I'm creating a user and I need to authenticate him in a way that I can retrieve the csrf token. I need to retrive it to append it the the request header in my test.

Any suggestion?

Aucun commentaire:

Enregistrer un commentaire