diff options
-rwxr-xr-x | effitool | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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']) |