vendredi 3 janvier 2020

How allow a static token for any request contain token using passport

Sample Code from postman :

curl -X PUT
'{URL}/status?referrer_token=27aysoEVcFAWcqOWYv2H92gj6trR2nzl+Rdrl3i7vf4='
-H 'Accept: /'
-H 'Content-Type: application/json'
-d '{
   "order": {
   "id": 407,
   "status": "unassigned"
   }
}'

In the above code i m passing token from params but I want passport authorization allow this token from authorization Bearer token like

-H 'Authorization: Bearer 27aysoEVcFAWcqOWYv2H92gj6trR2nzl+Rdrl3i7vf4=

I hope, made my point clear.

Thanks in advance.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire