MCPcopy Index your code
hub / github.com/bugy/script-server / _normalize_users

Function _normalize_users

src/auth/authorization.py:14–21  ·  view source on GitHub ↗
(allowed_users)

Source from the content-addressed store, hash-verified

12
13
14def _normalize_users(allowed_users):
15 if isinstance(allowed_users, list):
16 if ANY_USER in allowed_users:
17 return ANY_USER
18
19 return [_normalize_user(user) for user in allowed_users]
20
21 return allowed_users
22
23
24class Authorizer:

Callers 2

__init__Method · 0.85
is_allowedMethod · 0.85

Calls 1

_normalize_userFunction · 0.85

Tested by

no test coverage detected