Saml redirect url issue
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user