Don't blame yourself - this topic indeed could have been documented
better. Despite the endpoints being documented more or less, you need
to find the correct parameters yourself. This is how I do it:
- log into the Admin GUI;
- open Network console (F12 -> Network in bot Firefox and Chrome);
- perform the desired action;
- look for a POST request and inspect its URL and body.
Thus, to add an execution to an existing flow, you'll need to do the
./kcadm.sh create authentication/flows/foo/executions/execution -s
On Tue, 2018-07-03 at 15:37 +0000, triton oidc wrote:
Thanks a lot for your answer,
and apologies for my lack of search.
I'm having another issue, i can't add an execution to the newly
I can create one in the GUI, retrieve it using the get feature
./kcadm.sh get authentication/flows/dummy-auth/executions -r
"id" : "cbe89904-c746-48fb-8b44-40d16859765b",
"requirement" : "DISABLED",
"displayName" : "Testsuite Dummy Pass Thru",
"requirementChoices" : [ "REQUIRED" ],
"configurable" : false,
"providerId" : "testsuite-dummy-passthrough",
"level" : 0,
"index" : 0
However, i tried saving the output as a json (removing the ID in the
Json, and the execution in the GUI)
./kcadm.sh create authentication/flows/dummy-auth/executions -r
apprentice -f myjson.json
./kcadm.sh create authentication/flows/[my-object-ID]/executions -r
apprentice -f myjson.json
i get an
HTTP error - 405 Method Not Allowed
I'm guessing i'm not using the correct create syntax, but i didn't
found the example in the documentation
Does someone have a working example ?
If i manage to find the answer i'll reply in the mailling list
On Tue, Jul 3, 2018 at 11:09 AM, Dmitry Telegin <dt(a)acutus.pro>
> To create a flow with kcadm, you need to provide the necessary
> ./kcadm.sh create authentication/flows -s alias=foo -s
> providerId=basic-flow -s topLevel=true
> Created new flow with id 'dd756392-a1ec-4704-b134-713f47796418'
> Dmitry Telegin
> CTO, Acutus s.r.o.
> Keycloak Consulting and Training
> Pod lipami street 339/52, 130 00 Prague 3, Czech Republic
> + 42 (022) 888-30-71
> E-mail: email@example.com
> > Hi,
> > i'm using a docker image, and in the build, i'd like to create a
> > new flow.
> > However i could not find a way to do this in CLI
> > Doing it in the GUI is not really what i want
> > When i try
> > ./kcadm.sh create authentication/flows
> > i get a
> > HTTP error - 415 Unsupported Media Type
> > Does this mean it's not possible ?
> > If so should a create a feature request ?
> > my company pay a lot of redhat support, so they could support
> > this feature.
> > Thanks for any help
> > Amaury
> > _______________________________________________
> > keycloak-user mailing list
> > keycloak-user(a)lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/keycloak-user