Skip to content
Snippets Groups Projects
Verified Commit 6cc83675 authored by Guillaume Damiens's avatar Guillaume Damiens
Browse files

Authentification ok

parent bcea04a4
No related branches found
No related tags found
1 merge request!37Tx services p19 test
#!/bin/bash
. ids.sh
. ids.sh # contient $username et $password pour authentification
queryPica=$(curl -s https://wekan.test.picasoft.net/users/login -d 'username='"$username"'&password='"$password"'')
token=$(echo $queryPica | jq .token)
expirationDate=$(echo $queryPica | jq .tokenExpires)
echo $token
token=$(echo $queryPica | jq -r .token)
expirationDate=$(echo $queryPica | jq -r .tokenExpires)
curl -X GET https://wekan.test.picasoft.net/api/boards \
-H 'Accept: application/json' \
-H 'Authorization: '"$token"''
-H 'Authorization: Bearer '"$token"''
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment