Skip to content

Commit 0641d39

Browse files
authored
add keycloak built-in required actions docs (#1308)
fixes #1284 Signed-off-by: Stijn de Witt <[email protected]>
1 parent f271c8d commit 0641d39

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

docs/resources/required_action.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,30 @@ resource "keycloak_required_action" "required_action" {
3131
## Argument Reference
3232

3333
- `realm_id` - (Required) The realm the required action exists in.
34-
- `alias` - (Required) The alias of the action to attach as a required action.
35-
- `name` - (Optional) The name of the required action.
34+
- `alias` - (Required) The alias of the action to attach as a required action. Case sensitive.
35+
- `name` - (Optional) The name of the required action to use in the UI.
3636
- `enabled` - (Optional) When `false`, the required action is not enabled for new users. Defaults to `false`.
3737
- `default_action` - (Optional) When `true`, the required action is set as the default action for new users. Defaults to `false`.
38-
- `priority`- (Optional) The priority of the required action.
38+
- `priority`- (Optional) An integer to specify the running order of required actions with lower numbers meaning higher precedence.
3939
- `config`- (Optional) The configuration. Keys are specific to each configurable required action and not checked when applying.
4040

41+
## Keycloak built-in required actions
42+
43+
| Alias | Description | Class
44+
|-----------------------------------|---------------------------------------------|-----------------------------
45+
| `CONFIGURE_RECOVERY_AUTHN_CODES` | Configure recovery authentication codes | [RecoveryAuthnCodesAction](https://www.keycloak.org/docs-api/latest/javadocs/org/keycloak/authentication/requiredactions/RecoveryAuthnCodesAction.html)
46+
| `CONFIGURE_TOTP` | Require user to configure 2FA (TOTP) | [UpdateTotp](https://www.keycloak.org/docs-api/latest/javadocs/org/keycloak/authentication/requiredactions/UpdateTotp.html)
47+
| `delete_account` | Allow user to delete their account | [DeleteAccount](https://www.keycloak.org/docs-api/latest/javadocs/org/keycloak/authentication/requiredactions/DeleteAccount.html)
48+
| `delete_credential` | Allow user to delete a credential |
49+
| `idp_link` | Link account with identity provider |
50+
| `TERMS_AND_CONDITIONS` | Require user to accept terms and conditions | [TermsAndConditions](https://www.keycloak.org/docs-api/latest/javadocs/org/keycloak/authentication/requiredactions/TermsAndConditions.html)
51+
| `UPDATE_PASSWORD` | Prompt user to update their password | [UpdatePassword](https://www.keycloak.org/docs-api/latest/javadocs/org/keycloak/authentication/requiredactions/UpdatePassword.html)
52+
| `UPDATE_PROFILE` | Prompt user to update their profile | [UpdateProfile](https://www.keycloak.org/docs-api/latest/javadocs/org/keycloak/authentication/requiredactions/UpdateProfile.html)
53+
| `update_user_locale` | Prompt user to set or update their locale | [UpdateUserLocaleAction](https://www.keycloak.org/docs-api/21.0.2/javadocs/org/keycloak/authentication/requiredactions/UpdateUserLocaleAction.html)
54+
| `VERIFY_EMAIL` | Require user to verify their email address | [VerifyEmail](https://www.keycloak.org/docs-api/latest/javadocs/org/keycloak/authentication/requiredactions/VerifyEmail.html)
55+
| `VERIFY_PROFILE` | Verify user profile information | [VerifyUserProfile](https://www.keycloak.org/docs-api/latest/javadocs/org/keycloak/authentication/requiredactions/VerifyUserProfile.html)
56+
57+
4158
## Import
4259

4360
Authentication executions can be imported using the formats: `{{realm}}/{{alias}}`.
@@ -46,4 +63,4 @@ Example:
4663

4764
```bash
4865
$ terraform import keycloak_required_action.required_action my-realm/my-default-action-alias
49-
```
66+
```

0 commit comments

Comments
 (0)