promenade/tools/dev/get-token.sh
Mark Burnett 6caf7fb54d Add initial chart for Promenade API
Co-author: Mark Burnett <mark.m.burnett@gmail.com>
Co-author: Samantha Blanco <spblanco.1@gmail.com>

Change-Id: I2e6af00b7905d9070f79b8c536385ebdae877d50
2017-11-15 14:19:43 -06:00

21 lines
422 B
Bash
Executable File

#!/usr/bin/env bash
set -e
curl -is \
-H "Content-Type: application/json" \
-d '
{ "auth": {
"identity": {
"methods": ["password"],
"password": {
"user": {
"name": "admin",
"domain": { "id": "default" },
"password": "password"
}
}
}
}
}' \
http://keystone-api.ucp.svc.cluster.local/v3/auth/tokens | grep 'X-Subject-Token' | awk '{print $2}'