Merge pull request #165 from Kitzanos/saml-redirect-url-issue-prod

Cherry-pick (Fixed SAML redirect URL issue )
This commit is contained in:
Rinaldo
2025-01-16 08:56:13 +01:00
committed by GitHub

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);