summaryrefslogtreecommitdiff
path: root/bin/01_authz_code
diff options
context:
space:
mode:
Diffstat (limited to 'bin/01_authz_code')
-rwxr-xr-xbin/01_authz_code7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/01_authz_code b/bin/01_authz_code
new file mode 100755
index 0000000..3f6c44b
--- /dev/null
+++ b/bin/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"