Bonjour,
J'ai un fichier config :
J'ai un fichier bash test.sh:
1 2 3 4 5 6 7 8 9
|
source /home/name/test/config
curl -X GET \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer $bearer' \https://.../api/vendors \-o
json_file/vendors.json |
Lorsque je me rends sur mon fichier vendors.json, j'ai un message me disant : "Invalid token or token has expired"
Mais quand je mets mon token directement de le bearer cela fonctionne très bien:
-H 'Authorization: Bearer *****'
Donc je ne comprends pas mon erreur
Merci de votre aide
Partager