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/01_authz_code | |
| parent | a136d208d5d385af639f131651bd5c764aa2aa58 (diff) | |
update bin scripts to accept a target host
Diffstat (limited to 'src/oidc/bin/01_authz_code')
| -rwxr-xr-x | src/oidc/bin/01_authz_code | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/oidc/bin/01_authz_code b/src/oidc/bin/01_authz_code index a3fadd4..3f6c44b 100755 --- a/src/oidc/bin/01_authz_code +++ b/src/oidc/bin/01_authz_code @@ -2,5 +2,6 @@ set -e cd "$(dirname "$0")/.." +HOST="${HOST:-http://localhost:8282}" -curl -s "http://localhost:8282/authorize?response_type=code&scope=openid&client_id=f00d&state=potatoe&redirect_uri=http://example.org/callback" +curl -s "${HOST}/authorize?response_type=code&scope=openid&client_id=client_id&state=potatoe&redirect_uri=http://example.org/callback" |
