def __init__(self, log):
     self.log = log
     self.config = Cs3ConfigManager().get_config()
     self.auth = Auth.get_authenticator(config=self.config, log=self.log)
     channel = ChannelConnector().get_channel()
     auth_interceptor = check_auth_interceptor.CheckAuthInterceptor(
         log, self.auth)
     intercept_channel = grpc.intercept_channel(channel, auth_interceptor)
     self.cs3_api = cs3gw_grpc.GatewayAPIStub(intercept_channel)
     return
Beispiel #2
0
 def __init__(self, log):
     self.log = log
     self.config = Cs3ConfigManager().get_config()
     self.auth = Auth.get_authenticator(config=self.config, log=self.log)
     self.file_api = Cs3FileApi(log)
     channel = ChannelConnector().get_channel()
     auth_interceptor = check_auth_interceptor.CheckAuthInterceptor(
         log, self.auth)
     intercept_channel = grpc.intercept_channel(channel, auth_interceptor)
     self.cs3_api = grpc_gateway.GatewayAPIStub(intercept_channel)
     self.public_share_api = link_api_grpc.LinkAPIStub(channel)
     return