This commit is contained in:
Markos Gogoulos
2025-12-30 18:33:25 +02:00
parent 2e57164831
commit d3c858173f
2 changed files with 10 additions and 5 deletions

View File

@@ -53,19 +53,25 @@ class LTINRPSClient:
return []
try:
print(f"NRPS: Attempting to fetch members. nrps_claim: {self.nrps_claim}")
tool_config = DjangoToolConfig.from_platform(self.platform)
registration = tool_config.find_registration_by_issuer(self.platform.platform_id)
if not registration:
print("NRPS: No registration found for platform.")
return []
service_connector = DjangoServiceConnector(registration)
nrps = NamesRolesProvisioningService(service_connector, self.nrps_claim)
members = nrps.get_members()
print(f"NRPS: Successfully fetched {len(members)} members.")
return members
except Exception:
except Exception as e:
print(f"NRPS Error: Failed to fetch members. Exception: {e}")
import traceback
traceback.print_exc()
return []
def sync_members_to_rbac_group(self, rbac_group):