policies

Password Policy Viewset

post/policies/password/

Request body

namestring required
execution_loggingboolean

When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.

password_fieldstring

Field key to check, field keys defined in Prompt stages are available.

amount_digitsinteger
amount_uppercaseinteger
amount_lowercaseinteger
amount_symbolsinteger
length_mininteger
symbol_charsetstring
error_messagestring
check_static_rulesboolean
check_have_i_been_pwnedboolean
check_zxcvbnboolean
hibp_allowed_countinteger

How many times the password hash is allowed to be on haveibeenpwned

zxcvbn_score_thresholdinteger

If the zxcvbn score is equal or less than this value, the policy will fail.

Response

pkstring uuid required
namestring required
execution_loggingboolean

When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.

componentstring required

Get object component so that we know how to edit the object

verbose_namestring required

Return object's verbose_name

verbose_name_pluralstring required

Return object's plural verbose_name

meta_model_namestring required

Return internal model name

bound_tointeger required

Return objects policy is bound to

password_fieldstring

Field key to check, field keys defined in Prompt stages are available.

amount_digitsinteger
amount_uppercaseinteger
amount_lowercaseinteger
amount_symbolsinteger
length_mininteger
symbol_charsetstring
error_messagestring
check_static_rulesboolean
check_have_i_been_pwnedboolean
check_zxcvbnboolean
hibp_allowed_countinteger

How many times the password hash is allowed to be on haveibeenpwned

zxcvbn_score_thresholdinteger

If the zxcvbn score is equal or less than this value, the policy will fail.

Changes

No recorded changes to this endpoint across all 1 revision of this API.