Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Required Actions (squashed relevant commits from pr 123) #131

Merged
merged 3 commits into from
Jun 26, 2019

Conversation

tomrutsaert
Copy link
Contributor

squashed relevant commits from pr #123

@tomrutsaert tomrutsaert changed the title squashed relevant commits from pr 123 Required Actions (squashed relevant commits from pr 123) Jun 25, 2019

if !serverInfo.providerInstalled("required-action", requiredAction.Alias) {
return fmt.Errorf("validation error: required action \"%s\" does not exist on the server, installed providers: %s", requiredAction.Alias, serverInfo.getInstalledProvidersNames("required-action"))
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the extra validation check for disabled default actions

d.SetId(fmt.Sprintf("%s/%s", parts[0], parts[1]))

return []*schema.ResourceData{d}, nil
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mrparkers Please check this import function.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks perfect, nice job!

@mrparkers
Copy link
Contributor

Running make fmt should help with the failing CI build.

Copy link
Contributor

@mrparkers mrparkers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks for the contribution!

@mrparkers mrparkers merged commit 92ae62a into keycloak:master Jun 26, 2019
@tomrutsaert tomrutsaert deleted the required_actions_pr branch June 26, 2019 14:11
@timbmg
Copy link

timbmg commented Jul 7, 2020

Is it possible to assign the required action to a user or group?

@timbmg
Copy link

timbmg commented Jul 7, 2020

I just did a little bit of digging, and from the doc it seems to me that keycloak would support creating/updating required actions for users.
The user resource takes a list of strings for required actions. See here: https://www.keycloak.org/docs-api/10.0/rest-api/index.html#_userrepresentation

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants