diff options
Diffstat (limited to 'create-token')
-rwxr-xr-x | create-token | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/create-token b/create-token index a99b611..55a7f7e 100755 --- a/create-token +++ b/create-token @@ -1,5 +1,5 @@ #!/usr/bin/python3 -# Copyright (C) 2017 Lars Wirzenius +# Copyright (C) 2017-2018 Lars Wirzenius # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by @@ -26,13 +26,13 @@ import apifw # FIXME: These should agree with how ick controller is configured. # See the Ansible playbook. iss = 'localhost' -aud = 'localhost' key_text = sys.stdin.read() key = Crypto.PublicKey.RSA.importKey(key_text) scopes = ' '.join(sys.argv[1].split()) +aud = sys.argv[2] now = time.time() claims = { |