[keycloak-user] Create new authentication flow using kcadm in Docker

triton oidc triton.oidc at gmail.com
Tue Jul 3 11:37:31 EDT 2018


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 created flow

I can create one in the GUI, retrieve it using the get feature
./kcadm.sh get authentication/flows/dummy-auth/executions -r apprentice
{
  "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
<https://github.com/keycloak/keycloak-documentation/blob/master/server_admin/topics/admin-cli.adoc>
Does someone have a working example ?
If i manage to find the answer i'll reply in the mailling list

Thanks



On Tue, Jul 3, 2018 at 11:09 AM, Dmitry Telegin <dt at acutus.pro> wrote:

> Hi,
>
> To create a flow with kcadm, you need to provide the necessary fields:
>
> ./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'
>
> Cheers,
> Dmitry Telegin
> CTO, Acutus s.r.o.
> Keycloak Consulting and Training
>
> Pod lipami street 339/52, 130 00 Prague 3, Czech Republic
> <https://maps.google.com/?q=Pod+lipami+street+339/52,+130+00+Prague+3,+Czech+Republic&entry=gmail&source=g>
> + 42 (022) 888-30-71
> E-mail: info at acutus.pro
>
> 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
>


More information about the keycloak-user mailing list