From 224afe3b367cba9b978115e969e714c14c71caa6 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 24 Apr 2018 17:03:17 +0300 Subject: Change: GET /work, POST /worker use access token to identify worker --- create-token | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'create-token') 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 = { -- cgit v1.2.1