diff options
Diffstat (limited to 'yarns/lib.py')
-rw-r--r-- | yarns/lib.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/yarns/lib.py b/yarns/lib.py index 583dff5..f64af8d 100644 --- a/yarns/lib.py +++ b/yarns/lib.py @@ -57,6 +57,7 @@ def start_muck(): pathname, config_filename, ] subprocess.check_call(argv) + time.sleep(2) V['base_url'] = 'http://127.0.0.1:{}'.format(12765) @@ -72,6 +73,8 @@ def create_test_token(sub): iss = 'test-issuer' aud = 'test-audience' scopes = ['create', 'update', 'show', 'delete'] + if sub in (V['superusers'] or []): + scopes.append('super') lifetime = 3600 return create_token(key_text, iss, aud, sub, scopes, lifetime) |