Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use required action configuration instead of password policy for warning threshold #39214

@mposolda

Description

@mposolda

Recovery codes allow to configure "Warning threshold" . This is the number of recovery codes, which signals to the user in the account console that it has small amount of recovery codes remaining and hence he should refresh his recovery codes. It is 4 by default, so warning is displayed to the user in the account console when he has 3 or less remaining recovery codes.

The problem is, that this is configurable as a password policy. This is certainly not correct as "password policies" are used for passwords. Using them for anything related to recovery codes is a workaround.

There was not possibility to have configurable required actions when recovery-codes were introduced. But now configurable required actions are possible. So I wonder if configuration of recovery-codes required action could be used for this instead of password policy? If yes, we can deprecate password policy and schedule it for removal in future majore version (likely Keycloak 27).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions