Skip to content

Commit

Permalink
Convert error log to debug log for returnTo url mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakshan-Banneheke committed Dec 14, 2023
1 parent def78d9 commit 5241877
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ public SAMLSSOReqValidationResponseDTO process(String sessionId, QueryParamDTO[]
if (StringUtils.isNotBlank(returnTo)) {
if (!logoutReqIssuer.getIdpInitSLOReturnToURLList().contains(returnTo) && !logoutReqIssuer
.getAssertionConsumerUrlList().contains(returnTo)) {
log.error(SAMLSSOConstants.Notification.INVALID_RETURN_TO_URL);
if (log.isDebugEnabled()) {
log.debug(SAMLSSOConstants.Notification.INVALID_RETURN_TO_URL);
}
validationResponseDTO.setValid(false);
if (LoggerUtils.isDiagnosticLogsEnabled() && finalizeDiagLogBuilder != null) {
finalizeDiagLogBuilder.resultStatus(DiagnosticLog.ResultStatus.FAILED)
Expand Down

0 comments on commit 5241877

Please sign in to comment.