diff --git a/apps/fdsnws/fdsnws.py b/apps/fdsnws/fdsnws.py index f478ec554..4e97a243b 100644 --- a/apps/fdsnws/fdsnws.py +++ b/apps/fdsnws/fdsnws.py @@ -269,6 +269,14 @@ def authorize(self, user, net, sta, loc, cha, t1, t2): except KeyError: pass + try: + # New in JWT + for memberof in user["eduperson_entitlement"]: + matchers.append((self.__matchAttribute, f"{memberof}")) + + except KeyError: + pass + for m in matchers: for u, start, end in self.__access.get((net, "", "", ""), []): if self.__matchTime(t1, t2, start, end) and m[0](m[1], u):