terraform-provider-keycloak icon indicating copy to clipboard operation
terraform-provider-keycloak copied to clipboard

Adding a flow into authentication flow

Open chtiouiha opened this issue 3 years ago • 3 comments

Hello,

I'm having troubles getting an authentication flow to accept a flow inside.

here is the config I want to deploy with terraform

Thanks

"authenticationFlows": [ { "id": "2582489c1d3b", "alias": "AAAAAAA", "description": "Actions taken after first broker login with identity provider account, which is not yet linked to any Keycloak account", "providerId": "basic-flow", "topLevel": true, "builtIn": false, "authenticationExecutions": [ { "authenticatorConfig": "review profile config", "authenticator": "idp-review-profile", "requirement": "REQUIRED", "priority": 10, "userSetupAllowed": false, "autheticatorFlow": false }, { "authenticator": "registration-page-form", "requirement": "REQUIRED", "priority": 20, "flowAlias": "AAAAAAA - User Creation Or Linking", "userSetupAllowed": false, "autheticatorFlow": true } ] }, { "id": "50cdc32038dc", "alias": "AAAAAAA - User Creation Or Linking", "description": "", "providerId": "basic-flow", "topLevel": false, "builtIn": false, "authenticationExecutions": [ { "authenticatorConfig": "Domino - create unique user config", "authenticator": "idp-create-user-if-unique", "requirement": "ALTERNATIVE", "priority": 0, "userSetupAllowed": false, "autheticatorFlow": false }, { "authenticator": "idp-auto-link", "requirement": "ALTERNATIVE", "priority": 1, "userSetupAllowed": false, "autheticatorFlow": false } ] },

chtiouiha avatar Jul 02 '21 09:07 chtiouiha

You can take a look in the documentation: https://registry.terraform.io/providers/mrparkers/keycloak/latest/docs/resources/authentication_flow or for an example you can take a look in https://github.com/mrparkers/terraform-provider-keycloak/blob/master/example/main.tf (line 865)

tomrutsaert avatar Jul 02 '21 09:07 tomrutsaert

thanks for the quick answer, depending on the example I found keycloak_authentication_subflow (I think this is what I'm searching for) BUT this is not documented in the doc.. I think adding this resource to the documentation will be better

chtiouiha avatar Jul 02 '21 12:07 chtiouiha

Indeed resource "keycloak_authentication_subflow" is missing in the documentation. @mrparkers FYI Adding examples and missising resource to the documentation is always an welcome improvement. If you are willing to make a pull request, I am happy to review it.

tomrutsaert avatar Jul 02 '21 13:07 tomrutsaert