protected function isOauth2($credentialsKeys)
    {
        $keys = $this->getOauth2Keys();
        foreach ($keys as $value) {
            if (subarray($value, $credentialsKeys)) {
                return true;
            }
        }

        return false;

    }