Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Support for flows, subflows and executions #215

Merged

Conversation

tomrutsaert
Copy link
Contributor

support for flows, subflows and executions
(+ added missing fields in data_source_keycloak_realm)

This are the changes form PR #138 + adaptations needed for keycloak 8.0.x

See comments in #138 for more info

@mrparkers
Copy link
Owner

Thanks for re-opening this, I'll have some time later this week to review this again 😄

"ssl_required": {
Type: schema.TypeString,
Computed: true,
},

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changes in this file are not really related to the PR, but I saw they were missing, so I added them. see also #218

keycloak/authentication_subflow.go Outdated Show resolved Hide resolved
keycloak/authentication_subflow.go Outdated Show resolved Hide resolved
return nil
}

func (keycloakClient *KeycloakClient) LowerAuthenticationExecutionPriority(realmId, id string) error {
Copy link
Owner

Choose a reason for hiding this comment

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

are these two functions used? if not, how should users raise and lower the priority for executions?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are not used, but they do work.
I left in here in the case some one worked out a better solution, and could use these methods....

Should I remove them?

Copy link
Owner

Choose a reason for hiding this comment

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

No, I was just curious how the priority was determined, but then I realized in your example that you used depends_on in order to ensure subflows with higher priorities were created before subflows with lower priorities.

This approach makes sense, although it would be impossible to update this aftwards. But if that's good enough for you then I'm okay with this. I'm hoping that this is good enough for most users until Keycloak X is released, in which case I'll probably have to rewrite a lot of this provider anyways.

Copy link
Owner

@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.

Thanks for the PR! I'll try and get some docs added at some point.

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

Successfully merging this pull request may close these issues.

2 participants