diff options
| author | Frederick Muriuki Muriithi | 2026-06-22 12:58:35 -0500 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-06-22 12:58:35 -0500 |
| commit | 7486ce287f006e1ec2ad85e35a90fd458d2c72f6 (patch) | |
| tree | cdf9bf9082c24ae6e266cbe57c865d6f5a7faaa2 | |
| parent | 1e385752d53d5154dc91f9ba1a737c83038ff430 (diff) | |
| download | gn-auth-7486ce287f006e1ec2ad85e35a90fd458d2c72f6.tar.gz | |
Specify scopes when creating a client.
| -rw-r--r-- | gn_auth/wsgi.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gn_auth/wsgi.py b/gn_auth/wsgi.py index bab9991..ec47201 100644 --- a/gn_auth/wsgi.py +++ b/gn_auth/wsgi.py @@ -434,7 +434,9 @@ def create_test_oauth2_client(session_timestamp, users_file, owner_role, f"Owner user {owner_record['user_id']!r} not found in DB", file=sys.stderr) sys.exit(1) - record = __create_one_client__(conn, client_name, owner, tuple()) + record = __create_one_client__(conn, client_name, owner, scopes=( + "profile", "group", "role", "resource", + "register-client", "user", "masquerade")) __write_output__( {"session_timestamp": session_timestamp, "client": record}, |
