MCPcopy Create free account
hub / github.com/pydio/cells / UserProvider

Class UserProvider

python/test.py:49–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 )
48
49class UserProvider(cells_idm_pb2_grpc.UserServiceServicer):
50 def SearchUser(self, request, context):
51 print("Doing search user")
52 yield cells_idm_pb2.SearchUserResponse(
53 User=cells_idm_pb2.User(
54 Uuid="admin",
55 GroupPath="python",
56 Attributes={
57 "profile": "admin",
58 },
59 Roles=[
60 cells_idm_pb2.Role(
61 Uuid="ROOT_GROUP",
62 ),
63 cells_idm_pb2.Role(
64 Uuid="ADMINS"
65 ),
66 cells_idm_pb2.Role(
67 Uuid="ee43ecf4-6c9e-4eab-ba85-6fdf746c3724",
68 ),
69 ],
70 Login="admin",
71 IsGroup=False,
72
73 )
74 )
75
76 def CountUser(self, request, context):
77 print("Counting")
78 return cells_idm_pb2.CountUserResponse(
79 Count=1,
80 )
81
82
83def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…