title: Failed Validation while setting up LinkedIn Webhook
body: <pre><code>@app.route('/webhooks/linkedin', methods=['GET'])
  def webhook_challenge_linkedIn():
      
    # creates HMAC SHA-256 hash from incoming token and your consumer secret
    sha256_hash_digest = hmac.new(bytes({api_secret},'utf-8'), msg=bytes(request.args.get('challengeCode'),'utf-8'), digestmod=hashlib.sha256)
  
    # construct response data with base64 encoded hash
    print((sha256_hash_digest))
    val = {
   &quot;challengeCode&quot; : request.args.get('challengeCode'),
   &quot;challengeResponse&quot; : sha256_hash_digest.hexdigest()
    }
  
    return json.dumps(val)
  </code></pre>
  <p>When I try to set up the server and send an authentication request from LinkedIn for webhook to this endpoint it says <code>Failed Validation</code></p>
  <p>all i need to do for the verification is return the challenge code in</p>
  <pre><code>challengeResponse = Hex-encoded(HMACSHA256(challengeCode, clientSecret))
  </code></pre>
  <p>I think this is what I did but the still validation gets failed.</p>
  <p>I don't seem to see the issue.</p>