Saml redirect url issue

This commit is contained in:
harish
2025-01-16 13:20:23 +05:30
parent 7d80ecce63
commit 491d8495e6

View File

@@ -58,14 +58,16 @@ public class SamlFailureHandler implements AuthenticationFailureHandler {
feBaseUrl = hub.getDomainName(); feBaseUrl = hub.getDomainName();
} }
} }
response.sendRedirect(feBaseUrl + "/login"); String redirectUrl = feBaseUrl + "/login";
response.sendRedirect(redirectUrl);
logger.info("SAML redirect Url: " + redirectUrl);
} catch (Exception e) { } catch (Exception e) {
logger.error("Error processing SAML failure handler", e); logger.error("Error processing SAML failure handler", e);
} }
} }
public static String extractInResponseTo(String message) { public static String extractInResponseTo(String message) {
String regex = "InResponseTo attribute \\[([a-zA-Z0-9\\-]+)\\]"; String regex = "InResponseTo attribute \\[([a-zA-Z0-9\\-_]+)\\]";
Pattern pattern = Pattern.compile(regex); Pattern pattern = Pattern.compile(regex);
Matcher matcher = pattern.matcher(message); Matcher matcher = pattern.matcher(message);