Posts

Showing posts from March 6, 2019

Uncaught TypeError: Cannot read property 'split' of undefined on image src

Image
0 this is my code var product_features_images = ""; var product_features_count = $(".productInfo.toolTipLink").length; for (i = 0; i < product_features_count; i++){ var feature_cached_URL = $(".productInfo.toolTipLink:eq(" + product_features_count + ") img").attr("src").split("/"); var feature_element = "<img src='/img/produkty/liebherr/icons/" + feature_cached_URL[feature_cached_URL.length - 1]; + "'>" product_features_images = product_features_images + feature_element; } All parts work. only split("/") doesn't work. feature_cached_URL = "/external/products/product-related-entity-assets/246797/IMG_40x40/liebherr-button-bluperformance.jpg", and all I want is to slice do

Is is posible to use a custom authentication logic in Keycloak?

Image
0 I have configured Keycloak with LDAP User Federation. When a user wants to login into an application, he is redirected to the Keycloak login page, enters the uid/pwd and is authenticated using an LDAP bind. This isn't enough for my requirements since I would like to implement some custom authentication logic, e.g: public boolean authenticate(String uid, String pwd) { //1.- validate against LDAP //2.- do some other validations return validationResult; } How could I include my own authentication logic into Keycloak? keycloak redhat-sso share | improve this question edited Nov 25 '18 at 22:48