Saml redirect url issue

This commit is contained in:
harish
2025-01-16 13:20:23 +05:30
parent 70a3098fae
commit 4cb4d78403

View File

@@ -58,14 +58,16 @@ public class SamlFailureHandler implements AuthenticationFailureHandler {
feBaseUrl = hub.getDomainName();
}
}
response.sendRedirect(feBaseUrl + "/login");
String redirectUrl = feBaseUrl + "/login";
response.sendRedirect(redirectUrl);
logger.info("SAML redirect Url: " + redirectUrl);
} catch (Exception e) {
logger.error("Error processing SAML failure handler", e);
}
}
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);
Matcher matcher = pattern.matcher(message);