#!/bin/bash

token="$(curl -s -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"username": "user", "password": "user", "rememberMe": true}' 'http://localhost:8080/api/authenticate' | python -c "import sys, json; print json.load(sys.stdin)['id_token']")\""

echo $token > .token.txt
