¶ Manage userpool configuration
Update Time: 2025-02-18 09:00:47
Authing Userpool configuration management module.
¶ Query userpool configuration
UserPoolManagementClient().detail()
Query userpool configuration
¶ parameter
¶ Example
¶ Update userpool configuration
UserPoolManagementClient().update(updates)
Update userpool configuration
¶ parameter
updates
<UpdateUserpoolInput>updates.name
<string> Userpool nameupdates.logo
<string> Userpool logoupdates.domain
<string> Userpool enterprise application panel secondary domain nameupdates.description
<string> Descriptionupdates.emailVerifiedDefault
<boolean> Setting the mailbox default is the verified state (the user'semailVerified
field istrue
updates.sendWelcomeEmail
<boolean> Whether the user is registered to send a welcome emailupdates.registerDisabled
<boolean> Whether to close registration, after the user pools closes the registration, ordinary users will not be able to register an account, only the administrator can manually create an account.updates.allowedOrigins
<string> Security domain configuration, Allowed Origins, it is allowed to send a request from JavaScript to Authing API (usually used with CORS). By default, you will allow you to use all URLs. This field allows you to enter other sources if needed. You can separate multiple valid URLs by line and use wildcards (for example:https://*.sample.com
). Verifying these URLs Do not consider query strings and haveh messages, if you bring a query string and haveh information system automatically ignore the entire domain name. If there are multiple, please separate it.updates.whitelist
<Object> Userpool white list configurationupdates.whitelist.phoneEnabled
<boolean> Whether to open the phone number whitelistupdates.whitelist.emailEnabled
<boolean> Whether to open a mailbox white listupdates.whitelist.usernameEnabled
<boolean> Whether to open a list of usersupdates.tokenExpiresAfter
<number> token Expirationupdates.loginFailCheck
<Object> Frequent login failed restrictions, after opening, log in again after the number of times, log in again. If your business has the same time segment in the same area, close this detection.updates.loginFailCheck.enabled
<boolean> Whether to openupdates.loginFailCheck.timeInterval
<number>The detection cycle is in seconds.updates.loginFailCheck.limit
<number> The limit condition will be triggered when the same IP login failed has reached how many times.updates.frequentRegisterCheck
<Object> Frequency registration restrictions, the frequency limit is triggered when the same IP is frequently registered, and you need to wait for a while to re-register. If your business has a scenario registered in the same time in the same area, please check this.updates.frequentRegisterCheck.enabled
<boolean> Whether to openupdates.frequentRegisterCheck.timeInterval
<Object> The detection cycle is in seconds.updates.frequentRegisterCheck.limit
<Object> Frequency limit is triggered when the number of the same IP registration is reached in the same cycle.
¶ Example
¶ Get list of environment variables
UserPoolManagementClient().list_env()
Get the list of user pool environment variables. The environment variables configured by the user pool can be used in the pipeline scenario. For details, please see:https://docs.authing.cn/v2/guides/pipeline/env.html
¶ parameter
¶ Example
¶ Add environment variables
UserPoolManagementClient().add_env(key, value)
Add environment variables
¶ parameter
key
<string> Environment variablevalue
<any> Environment variable value
¶ Example
¶ Delete environment variables
UserPoolManagementClient().remove_env(key)
Delete environment variables
¶ parameter
key
<string> Environment variable
¶ Example