about summary refs log tree commit diff
path: root/gn_auth
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2026-06-22 12:58:35 -0500
committerFrederick Muriuki Muriithi2026-06-22 12:58:35 -0500
commit7486ce287f006e1ec2ad85e35a90fd458d2c72f6 (patch)
treecdf9bf9082c24ae6e266cbe57c865d6f5a7faaa2 /gn_auth
parent1e385752d53d5154dc91f9ba1a737c83038ff430 (diff)
downloadgn-auth-7486ce287f006e1ec2ad85e35a90fd458d2c72f6.tar.gz
Specify scopes when creating a client.
Diffstat (limited to 'gn_auth')
-rw-r--r--gn_auth/wsgi.py4
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},