diff options
Diffstat (limited to 'create-token')
-rwxr-xr-x | create-token | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/create-token b/create-token index cf99c93..c2f2785 100755 --- a/create-token +++ b/create-token @@ -25,6 +25,7 @@ import apifw filename = sys.argv[1] aud = sys.argv[2] +scopes = sys.argv[3] key_text = open(filename, 'r').read() key = Crypto.PublicKey.RSA.importKey(key_text) @@ -35,7 +36,7 @@ claims = { 'sub': 'subject-uuid', 'aud': aud, 'exp': now + 3600, - 'scope': 'openid person_resource_id uapi_orgs_get uapi_orgs_post' + 'scope': scopes, } token = apifw.create_token(claims, key) |