¶ Management registration white list
Update Time: 2024-10-10 07:28:40
Configuring a registered list for your user pool, similar to inviting registration rules, after opening, only users in whitelist can register. Authing The currently supported white list has a mobile phone number, email, user name.
¶ Get white list record
WhitelistManagementClient().list(type)
Get white list record
¶ parameter
type
<WhitelistType> 白名单类型,USERNAME 为用户名、Email 为邮箱、Phone 为手机号。
¶ Example
$list = $managementClient->whitelist()->paginate(WhitelistType::EMAIL);
¶ 添加白名单
WhitelistManagementClient().add(type, list)
添加白名单
¶ parameter
type
<WhitelistType> 白名单类型,USERNAME 为用户名、Email 为邮箱、Phone 为手机号。list
<string[]> 白名单列表,请注意邮箱不区分大小写。
¶ Example
$managementClient->whitelist()->add(WhitelistType::EMAIL, ["test@test.com"]);
¶ 移除白名单
WhitelistManagementClient().remove(type, list)
移除白名单
¶ parameter
type
<WhitelistType> 白名单类型,USERNAME 为用户名、Email 为邮箱、Phone 为手机号。list
<string[]> 白名单列表,请注意邮箱不区分大小写。
¶ Example
$managementClient->whitelist()->remove(WhitelistType::EMAIL, ["test@test.com"]);
¶ 开启白名单
WhitelistManagementClient().enable(type)
开启白名单
¶ parameter
type
<WhitelistType> 白名单类型,USERNAME 为用户名、Email 为邮箱、Phone 为手机号。
¶ Example
$managementClient->whitelist()->enable(WhitelistType::EMAIL);
¶ 关闭白名单
WhitelistManagementClient().disable(type)
关闭白名单
¶ parameter
type
<WhitelistType> White list type, USERNAME is the username、Email is the email、Phone is the mobile phone number.
¶ Example
$managementClient->whitelist()->disable(WhitelistType::EMAIL);