public static boolean checkClientSecret ( final OAuthRegisteredService registeredService , final String clientSecret ) { LOGGER . debug ( "Found: [{}] in secret check" , registeredService ) ; if ( StringUtils . isBlank ( registeredService . getClientSecret ( ) ) ) { LOGGER . debug ( "The client secret is not defined for the registered service [{}]" , registeredService . getName ( ) ) ; return true ; } if ( ! StringUtils . equals ( registeredService . getClientSecret ( ) , clientSecret ) ) { LOGGER . error ( "Wrong client secret for service: [{}]" , registeredService . getServiceId ( ) ) ; return false ; } return true ; }
Check the client secret .