我和CognitoIdentityProviderClient的接口是这样的: class CognitoService
{
protected $client;
public function __construct(CognitoIdentityProviderClient $client)
{
$this->client = $client;
}
public function addCustomAttributes(string $userPoolName, string $attributes)
{
我发现在meteor中删除用户帐户的唯一方法(不是通过mrt重置清空数据库),实际上是登录到特定的用户帐户,并从控制台中删除帐户,使用:
Meteor.users.remove('the user id');
但正如我所说的,我需要作为特定用户登录,并且还无法找到使我能够从数据库中删除任何用户的解决方案。我确定这与权限或角色有关,但我不确定如何继续/最佳解决方案是什么/如何为特定用户设置管理角色,以便删除不同的用户帐户。
我在为服务帐户分配IAM权限时遇到了困难。
我正在构建一个测试,该测试涉及使用firebase创建自定义令牌。当我撞到:
const token = await admin.auth().createCustomToken('test', {
isAdmin: true,
})
引发下列错误
Permission iam.serviceAccounts.signBlob is required to perform
this operation on service account
projects/-/serviceAccounts/dashboard@ap