static void configureClientCustomProperties(final BaseClient client, final Pac4jBaseClientProperties clientProperties) {
        val customProperties = client.getCustomProperties();
        customProperties.put(ClientCustomPropertyConstants.CLIENT_CUSTOM_PROPERTY_AUTO_REDIRECT_TYPE, clientProperties.getAutoRedirectType());

        FunctionUtils.doIfNotBlank(clientProperties.getPrincipalIdAttribute(),
            __ -> customProperties.put(ClientCustomPropertyConstants.CLIENT_CUSTOM_PROPERTY_PRINCIPAL_ATTRIBUTE_ID, clientProperties.getPrincipalIdAttribute()));
        FunctionUtils.doIfNotBlank(clientProperties.getCssClass(),
            __ -> customProperties.put(ClientCustomPropertyConstants.CLIENT_CUSTOM_PROPERTY_CSS_CLASS, clientProperties.getCssClass()));
        FunctionUtils.doIfNotBlank(clientProperties.getDisplayName(),
            __ -> customProperties.put(ClientCustomPropertyConstants.CLIENT_CUSTOM_PROPERTY_DISPLAY_NAME, clientProperties.getDisplayName()));
    }
Configure client custom properties.

@param client           the client
@param clientProperties the client properties
support/cas-server-support-pac4j-api/src/main/java/org/apereo/cas/pac4j/client/DelegatedIdentityProviderFactory.java