Giter VIP home page Giter VIP logo

Comments (9)

Pinguwien avatar Pinguwien commented on August 28, 2024 3

Hey :) Is there any progress on adding flows? Would be a great feature!

from terraform-provider-keycloak.

tomrutsaert avatar tomrutsaert commented on August 28, 2024

This is something on my todo list, I should be tackling this in the coming weeks

from terraform-provider-keycloak.

mrparkers avatar mrparkers commented on August 28, 2024

I actually started this on the authentication-flows branch.

Unfortunately, I wasn't able to come up with a good way to manage nested flows and executions, which is a use case I have for this particular feature. Keycloak allows you to create top-level flows and subflows, and you can technically have an infinite number of subflows. I couldn't figure out a way to elegantly do this within the provider. I was hoping that v0.12 would have better support for features like this, but I haven't gotten back to this since that update was made.

from terraform-provider-keycloak.

tomrutsaert avatar tomrutsaert commented on August 28, 2024

I would need this functionality as well. We have a lot of custom authenticators with config and thus also custom flows and executions.
How do you see the way forward?
Could we work with an in-between solution?
How production ready are the changes in your authentication-flows branch?
How can I help?

from terraform-provider-keycloak.

tomrutsaert avatar tomrutsaert commented on August 28, 2024

@mrparkers, FYI: I will be working on this issue

from terraform-provider-keycloak.

tomrutsaert avatar tomrutsaert commented on August 28, 2024

The more I look at this, the more I think there should be a separation between topLevelFlows, subFlows and executions.
All 3 behave different in Create/Update/Read/Import and Delete.

from terraform-provider-keycloak.

mrparkers avatar mrparkers commented on August 28, 2024

Thanks @tomrutsaert, I'm glad you have the time to take a look at this.

My branch, as you have probably noticed already, is not quite production ready yet, although the foundation for what you need should be mostly there.

The part I really struggled with was understanding how we can represent subflows in HCL and relate them to the top level flows, or other subflows that are a parent to them. The problem I encountered was that subflows needed to know what flow they are a child of, and the parent flow needed to know about the subflow in order to enforce ordering (to ensure subflow A comes before subflow B for example). This created a bidirectional data flow that I didn't know how to represent in HCL.

The only idea I had that I didn't have a chance to implement was a data source like keycloak_authentication_subflow which has the same attributes as the keycloak_authentication_flow resource, but all the data source does is serialize that model into JSON that can be used in the top level flow. This way, only the keycloak_authentication_flow resource would be controlling its subflows and their order.

I don't know if this will actually work, but feel free to give that a try or pitch some other ideas you might have.

from terraform-provider-keycloak.

svenstaro avatar svenstaro commented on August 28, 2024

Can't this be closed now with #138 in?

from terraform-provider-keycloak.

tomrutsaert avatar tomrutsaert commented on August 28, 2024

Can't this be closed now with #138 in?

Yes, you are right.

from terraform-provider-keycloak.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.