mercredi 13 juillet 2016

Pass token from form

I have build a login api in which when users login he will get a token .And by using that token i am able to access other apis .

Authorization Token token=sadfghjkjhgfdsasdfghjgf

Like this I pass token by adding in header on each page.In my application controller I have added before_action :authenticate_user .So my question is I am building a form now and i need to pass the token which i have given above .This is not the form authenticity token so don't be confuse with that .I have search a lot but didn't got any relevant answer

Aucun commentaire:

Enregistrer un commentaire