diff options
| author | Frederick Muriuki Muriithi | 2026-06-22 13:05:46 -0500 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-06-22 14:21:39 -0500 |
| commit | 5222bd314992aa17cab2a0e3d549586e6a844b5c (patch) | |
| tree | 69f95f84553838e7bb32e79418422feea1d6ec76 /gn_auth | |
| parent | 7486ce287f006e1ec2ad85e35a90fd458d2c72f6 (diff) | |
| download | gn-auth-5222bd314992aa17cab2a0e3d549586e6a844b5c.tar.gz | |
Delete the credentials files since they are no longer needed.
Diffstat (limited to 'gn_auth')
| -rw-r--r-- | gn_auth/wsgi.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gn_auth/wsgi.py b/gn_auth/wsgi.py index ec47201..4fc9bd0 100644 --- a/gn_auth/wsgi.py +++ b/gn_auth/wsgi.py @@ -469,6 +469,7 @@ def delete_oauth2_client(credentials_path): print(f"No client found with ID {client_id}", file=sys.stderr) sys.exit(1) delete_client(conn, the_client.value) + os.unlink(credentials_path) print(f"Deleted OAuth2 client {client_id}.") @@ -494,6 +495,7 @@ def delete_test_users(credentials_path): with db.connection(app.config["AUTH_DB"]) as conn: deleted = delete_users_by_id(conn, user_ids) + os.unlink(credentials_path) print(f"Deleted {deleted} user(s).") ##### END: CLI Commands ##### |
