¶ UserPoolManagementClient
Update Time: 2024-10-10 07:28:40
Authing user pool configuration management client.
¶ Get user pool details
UserPoolManagementClient().detail()
Get user pool details
¶ Update the user pool
UserPoolManagementClient().update(updates)
Update the user pool.
¶ Parameters:
updates
<UpdateUserpoolInput>updates.name
<string> User pool nameupdates.logo
<string> User pool logoupdates.domain
<string> User pool enterprise application panel second-level domain nameupdates.description
<string> descriptionupdates.emailVerifiedDefault
<boolean> Set the email to be verified as default (emailVerified field is true)updates.sendWelcomeEmail
<boolean> Whether to send welcome email after user registrationupdates.registerDisabled
<boolean> Whether to close the registration. When the user pool closes the registration, ordinary users will not be able to register an account, and only the administrator can create an account.updates.allowedOrigins
<string> Allowed Origins configuration. TAllowed Origins is the URL that allows requests from JavaScript to the Authing API (usually used with CORS). By default, the system will allow you to use all URLs. This field also allows you to enter other sources. You can separate multiple valid URLs line by line and use wildcards at the subdomain level (for example: https://*.sample.com). The query string and hash information are not considered when verifying these URLs. If you bring the query string and hash information, the system will automatically ignore the entire domain name. If there are more than one, please separate them with line breaks.updates.whitelist
<Object> User pool whitelist configurationupdates.whitelist.phoneEnabled
<boolean> Whether to enable the whitelist of mobile phone numbersupdates.whitelist.emailEnabled
<boolean> Whether to enable the mailbox whitelistupdates.whitelist.usernameEnabled
<boolean> Whether to enable the user name whitelistupdates.tokenExpiresAfter
<number> token expiration timeupdates.loginFailCheck
<Object> Frequent login failure limit. If a user exceeds the number of times within the specified time, the system will require a verification code for login again. If you need to concurrent login in the same area at the same time period, please turn off loginFailCheck.updates.loginFailCheck.enabled
<boolean> Whether to enableupdates.loginFailCheck.timeInterval
<number> Check period, in seconds.updates.loginFailCheck.limit
<number> The limit condition will be triggered when the number of login failures for the same IP is reached.updates.frequentRegisterCheck
<Object> Frequency registration restriction. Frequency limit will be triggered when the same IP frequently registers an account, and it will take a while to register again. If you need to concurrent register in the same area and time period, please turn off frequentRegisterCheck.updates.frequentRegisterCheck.enabled
<boolean> Whether to enableupdates.frequentRegisterCheck.timeInterval
<Object> The detection period, in seconds.updates.frequentRegisterCheck.limit
<Object> The frequency limit will be triggered when the number of registrations of the same IP in the same period reaches this number.
¶ Get the environment variables list
UserPoolManagementClient().listEnv()
Get the user pool environment variables list. The environment variables configured by the user pool can be used in the pipeline scenario. Please check: https://docs.authing.cn/v2/guides/pipeline/env.html for details.
¶ Parameter
¶ Add environment variables
UserPoolManagementClient().addEnv(key, value)
Add environment variables.
¶ Parameters:
key
<string> Environment variable keyvalue
<any> Environment variable value
¶ Delete environment variables
UserPoolManagementClient().removeEnv(key)
Delete environment variables.
¶ Parameter:
key
<string> Environment variable key