From 7486ce287f006e1ec2ad85e35a90fd458d2c72f6 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 22 Jun 2026 12:58:35 -0500 Subject: Specify scopes when creating a client. --- gn_auth/wsgi.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gn_auth') 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}, -- cgit 1.4.1