summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcreate-token7
1 files changed, 4 insertions, 3 deletions
diff --git a/create-token b/create-token
index c2f2785..c0e43a6 100755
--- a/create-token
+++ b/create-token
@@ -24,15 +24,16 @@ import apifw
filename = sys.argv[1]
-aud = sys.argv[2]
-scopes = sys.argv[3]
+iss = sys.argv[2]
+aud = sys.argv[3]
+scopes = sys.argv[4]
key_text = open(filename, 'r').read()
key = Crypto.PublicKey.RSA.importKey(key_text)
now = time.time()
claims = {
- 'iss': 'https://idp.example.com',
+ 'iss': iss,
'sub': 'subject-uuid',
'aud': aud,
'exp': now + 3600,