Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

package org.wso2.financial.services.accelerator.identity.extensions.auth.extensions.request.validator;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
Expand All @@ -44,6 +45,8 @@
* The extension of RequestObjectValidatorImpl to enforce Financial services specific validations of the
* request object.
*/
@SuppressFBWarnings(value = {"CRLF_INJECTION_LOGS", "REPLACE_STR_LINE_TERMINATORS"},
justification = "Log messages are sanitized for CRLF injection.")
public class FSRequestObjectValidationExtension extends RequestObjectValidatorImpl {

private static final Log log = LogFactory.getLog(FSRequestObjectValidationExtension.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package org.wso2.financial.services.accelerator.identity.extensions.auth.extensions.response.handler;

import com.fasterxml.jackson.core.JsonProcessingException;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception;
Expand All @@ -34,6 +35,8 @@
/**
* Extension to append scope with FS_ prefix at the end of auth flow, before offering auth code.
*/
@SuppressFBWarnings(value = {"CRLF_INJECTION_LOGS", "REPLACE_STR_LINE_TERMINATORS"},
justification = "Log messages are sanitized for CRLF injection.")
public class FSCodeResponseTypeHandlerExtension extends CodeResponseTypeHandler {

private static final Log log = LogFactory.getLog(FSCodeResponseTypeHandlerExtension.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package org.wso2.financial.services.accelerator.identity.extensions.auth.extensions.response.handler;

import com.fasterxml.jackson.core.JsonProcessingException;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception;
Expand All @@ -34,6 +35,8 @@
/**
* Extension to append scope with FS_ prefix at the end of auth flow, before offering auth code.
*/
@SuppressFBWarnings(value = {"CRLF_INJECTION_LOGS", "REPLACE_STR_LINE_TERMINATORS"},
justification = "Log messages are sanitized for CRLF injection.")
public class FSHybridResponseTypeHandlerExtension extends HybridResponseTypeHandler {

private static final Log log = LogFactory.getLog(FSHybridResponseTypeHandlerExtension.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package org.wso2.financial.services.accelerator.identity.extensions.claims;

import com.nimbusds.jwt.JWTClaimsSet;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
Expand All @@ -37,6 +38,8 @@
/**
* This call back handler adds FS specific additional claims to the self-contained JWT access token.
*/
@SuppressFBWarnings(value = {"CRLF_INJECTION_LOGS", "REPLACE_STR_LINE_TERMINATORS"},
justification = "Log messages are sanitized for CRLF injection.")
public class FSDefaultOIDCClaimsCallbackHandler extends DefaultOIDCClaimsCallbackHandler {

private static Log log = LogFactory.getLog(FSDefaultOIDCClaimsCallbackHandler.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

package org.wso2.financial.services.accelerator.identity.extensions.grant.type.handlers;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception;
Expand All @@ -37,6 +38,8 @@
* FS specific authorization code grant handler.
* main usage of extending is to handle the refresh token issuance and setting the refresh token validity period.
*/
@SuppressFBWarnings(value = {"CRLF_INJECTION_LOGS", "REPLACE_STR_LINE_TERMINATORS"},
justification = "Log messages are sanitized for CRLF injection.")
public class FSAuthorizationCodeGrantHandler extends AuthorizationCodeGrantHandler {

private static final Log log = LogFactory.getLog(FSAuthorizationCodeGrantHandler.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

package org.wso2.financial.services.accelerator.identity.extensions.grant.type.handlers;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
Expand All @@ -40,6 +41,8 @@
/**
* FS specific refresh grant handler.
*/
@SuppressFBWarnings(value = {"CRLF_INJECTION_LOGS", "REPLACE_STR_LINE_TERMINATORS"},
justification = "Log messages are sanitized for CRLF injection.")
public class FSRefreshGrantHandler extends RefreshGrantHandler {

private static final Log log = LogFactory.getLog(FSRefreshGrantHandler.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
/**
* Common utility class for Identity Extensions.
*/
@SuppressFBWarnings(value = {"CRLF_INJECTION_LOGS", "REPLACE_STR_LINE_TERMINATORS"},
justification = "Log messages are sanitized for CRLF injection.")
public class IdentityCommonUtils {

private static final Log log = LogFactory.getLog(IdentityCommonUtils.class);
Expand Down Expand Up @@ -378,10 +380,6 @@ public static boolean isRegulatoryApp(String clientId) throws FinancialServicesE
identityCache.addToCache(identityCacheKey, regulatoryProperty);
return Boolean.parseBoolean(regulatoryProperty.toString());
} else {
if (log.isDebugEnabled()) {
log.debug("Regulatory property not found in service provider metadata for clientId: "
+ clientId + ". Hence treating it as a non-regulatory application.");
}
return false;
}
} else {
Expand Down
Loading