diff options
| author | mo khan <mo@mokhan.ca> | 2022-04-14 10:19:55 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2022-04-14 10:19:55 -0600 |
| commit | a6b7842ff4196901225c82b8bf4a4117a2197290 (patch) | |
| tree | 7555ef673df69150141c8380c4a5a08a85a2babb /src/oidc/bin/00_metadata | |
| parent | a136d208d5d385af639f131651bd5c764aa2aa58 (diff) | |
update bin scripts to accept a target host
Diffstat (limited to 'src/oidc/bin/00_metadata')
| -rwxr-xr-x | src/oidc/bin/00_metadata | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/oidc/bin/00_metadata b/src/oidc/bin/00_metadata index 857fa40..7d57dad 100755 --- a/src/oidc/bin/00_metadata +++ b/src/oidc/bin/00_metadata @@ -2,6 +2,7 @@ set -e cd "$(dirname "$0")/.." +HOST="${HOST:-http://localhost:8282}" -curl -s "http://localhost:8282/.well-known/openid-configuration" | jq '.' -curl -s "http://localhost:8282/.well-known/jwks.json" | jq '.' +curl -s "${HOST}/.well-known/openid-configuration" | jq '.' +curl -s "${HOST}/.well-known/jwks.json" | jq '.' |
