protected HttpAction redirectToIdentityProvider(final CallContext ctx, final List<Client> currentClients) {
        Client currentClient = (IndirectClient) currentClients.get(0);
        return currentClient.getRedirectionAction(ctx).get();
    }
Perform a redirection to start the login process of the first indirect client.

@param ctx the context
@param currentClients the current clients
@return the performed redirection
pac4j-core/src/main/java/org/pac4j/core/engine/DefaultSecurityLogic.java