为什么要在getstream-io提要更新中将SU:放在参与者ID的前面?
data = {'actor' : 'SU:ronald',
'message': 'hello',
'object' : 'object',
'verb' : 'post'
}如果没有SU:,我就会得到错误:The policy "Don't impersonate other users" (900) blocked this request。
{'detail': 'The policy "Don\'t impersonate other users" (900) blocked this request, please consult the documentation https://getstream.io/docs/',
'status_code': 403,
'code': 17,
'exception': 'NotAllowedException',
'duration': '0.17ms'}发布于 2022-03-06 00:38:23
我从Stream.io支持处得到的答案..。
我们在Stream中为userID添加了以下前缀。SU:前缀意味着流用户引用,因此当您调用充实端点读取提要时,它将用引用的用户对象替换字符串。参与者冒号规则用于前缀,而对于常规的精确字符串匹配,只需忽略规则。
https://stackoverflow.com/questions/63144489
复制相似问题