keycloak/keycloak-nodejs-admin-client

Unable to retrieve authenticationFlows of a realm

semangard opened this issue · 2 comments

Describe the bug
According to the doc : https://github.com/keycloak/keycloak-nodejs-admin-client/blob/master/src/defs/realmRepresentation.ts
It should be possible to retrieve the list of authentiocation flows of a realm
image

We tried but none flow is found

image

We check the JSON returned by kcAdminClient.realms.findOne(...), and indeed the attribute authenticationFlows is not found.
We have the issue even if we create a custom flow.

=> Why ?
=> How to get authentication`flows of a realm ?

Enviroment (please complete the following information):
We are using:

  • the latest version of the the client
  • and KeyCloak 11.0.3

To get the authentication flows there is another endpoint:

const flows = await kcAdminClient.authenticationManagement.getFlows();

console.log(flows.map(flow => flow.alias)) // this will print  ['browser', 'direct grant', 'registration', 'reset credentials','clients', 'first broker login', 'docker auth', 'http challenge']);

OK thanks.