Fix node auth
All checks were successful
release-image / release-image (push) Successful in 2m7s

This commit is contained in:
Logan Cusano
2025-06-08 00:18:46 -04:00
parent ac23a5ec84
commit e89e67f33a
4 changed files with 21 additions and 5 deletions

View File

@@ -24,7 +24,8 @@ def role_required(required_role: UserRoles):
auth_type = current_user_identity['type']
if auth_type == "node":
node = app.active_clients.get("client_id")
node = current_app.active_clients.get(user_id)
print("Node", node)
if not node:
abort(401, "Node not found or invalid token.")