From df1fe2d658df617106249a2fde6766a7f929df51 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 25 Jan 2019 10:26:35 +0200 Subject: Fix: add allowed_scopes to new admin clients --- effitool | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/effitool b/effitool index 97cf205..f3897cd 100755 --- a/effitool +++ b/effitool @@ -225,14 +225,15 @@ class Tool: new_client = { 'id': args['client_id'], + 'allowed_scopes': ADMIN_SCOPES, } + client_path = '/clients/{}'.format(new_client['id']) api.post_json(token, '/clients', new_client) new_secret = { 'secret': args['client_secret'], } - api.put_json( - token, '/clients/{}/secret'.format(new_client['id']), new_secret) + api.put_json(token, '{}/secret'.format(client_path), new_secret) print('Created new admin client', new_client['id']) -- cgit v1.2.1