示例#1
0
 def share_grant_v1(self, request):
     data = _request_data(request, mandatory_keys=[('trusted_global_id', 'trusted_idurl', 'trusted_id', ), 'key_id', ])
     return api.share_grant(
         trusted_remote_user=data.get('trusted_global_id') or data.get('trusted_idurl') or data.get('trusted_id'),
         key_id=data['key_id'],
         timeout=data.get('timeout', 30),
     )
 def jsonrpc_share_grant(self, key_id, trusted_user_id):
     return api.share_grant(key_id, trusted_user_id)
示例#3
0
 def jsonrpc_share_grant(self, trusted_remote_user, key_id):
     return api.share_grant(trusted_remote_user, key_id)