google_api_gateway_test/scripts/get_jwks.bash

23 lines
366 B
Bash
Raw Normal View History

2024-10-16 03:03:52 +00:00
#!/usr/bin/env bash
#
# Key the JWKS
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
function main() {
local gateway_address
gateway_address=$(tf output -raw gateway_address)
curl "https://$gateway_address/.well-known/jwks.json"
}
function tf() {
terraform -chdir="$DIR/../terraform" "${@}"
}
main "${@}"