summaryrefslogtreecommitdiff
path: root/effitool
diff options
context:
space:
mode:
Diffstat (limited to 'effitool')
-rwxr-xr-xeffitool5
1 files 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'])