Java Code Examples for org.keycloak.representations.idm.RealmRepresentation#getAuthenticationFlows()

The following examples show how to use org.keycloak.representations.idm.RealmRepresentation#getAuthenticationFlows() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ImportAuthenticationFlowsIT.java    From keycloak-config-cli with Apache License 2.0 5 votes vote down vote up
private AuthenticationFlowRepresentation getAuthenticationFlow(RealmRepresentation updatedRealm, String flowAlias) {
    List<AuthenticationFlowRepresentation> authenticationFlows = updatedRealm.getAuthenticationFlows();
    return authenticationFlows.stream()
            .filter(f -> f.getAlias().equals(flowAlias))
            .findFirst()
            .orElse(null);
}
 
Example 2
Source File: AuthenticationFlowRepository.java    From keycloak-config-cli with Apache License 2.0 4 votes vote down vote up
public List<AuthenticationFlowRepresentation> getAll(String realm) {
    RealmRepresentation realmExport = realmRepository.partialExport(realm, false, false);
    return realmExport.getAuthenticationFlows();
}