Skip to content

Commit

Permalink
Remove unneeded client_id when getting token
Browse files Browse the repository at this point in the history
Signed-off-by: freddidierRTE <frederic-f.didier@rte-france.com>
  • Loading branch information
freddidierRTE committed Jul 5, 2024
1 parent 511d98b commit 771f234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/getToken.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fi
echo "Get token for user $username on $url"

access_token_pattern='"access_token":"([^"]+)"'
response=$(curl -s -X POST -d "username="$username"&password=test&grant_type=password&client_id=opfab-client" $url:2002/auth/token)
response=$(curl -s -X POST -d "username="$username"&password=test&grant_type=password" $url:2002/auth/token)
if [[ $response =~ $access_token_pattern ]] ; then
export token=${BASH_REMATCH[1]}
fi
Expand Down

0 comments on commit 771f234

Please sign in to comment.