public boolean doesServiceNeedAuthentication(final OAuthRegisteredService registeredService) {
        return StringUtils.isNotBlank(registeredService.getClientSecret());
    }
Is the registered service need authentication?

@param registeredService the registered service
@return whether the service need authentication
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/util/OAuth20Utils.java