summaryrefslogtreecommitdiff
path: root/script/01_authz_code
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2022-04-22 17:30:21 -0600
committermo khan <mo@mokhan.ca>2022-04-22 17:30:21 -0600
commit0b09e735c9733f557e1ec7138e108e8d5bd7a7f5 (patch)
treee05d88d76fd8c2be3526e0bfd379bf4bbdc2a742 /script/01_authz_code
parent9fd1a9f376fb315ebbe8171aa989298fc34c66ce (diff)
rename bin to script
Diffstat (limited to 'script/01_authz_code')
-rwxr-xr-xscript/01_authz_code7
1 files changed, 7 insertions, 0 deletions
diff --git a/script/01_authz_code b/script/01_authz_code
new file mode 100755
index 0000000..3f6c44b
--- /dev/null
+++ b/script/01_authz_code
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+cd "$(dirname "$0")/.."
+HOST="${HOST:-http://localhost:8282}"
+
+curl -s "${HOST}/authorize?response_type=code&scope=openid&client_id=client_id&state=potatoe&redirect_uri=http://example.org/callback"