Skip to main content
Question

Webhook Setup Error: Invalid resource owner credentials

  • December 29, 2017
  • 3 replies
  • 1484 views

Hi Team

I am getting "Webhook Setup Error: Invalid resource owner credentials " this error.Please help me out to solve this problem.


3 replies

  • Known Participant
  • 105 replies
  • December 29, 2017
Bhagyashree,

When you are subscribing to Webhooks using the UI in the developer portal ( App -> Webhooks ) the Webhook URL must respond with the Validation-Token immediately. Please read below.


Enable Webhooks using UI:

When you enable Webhooks using the UI as shown below, your app need not Create a Subscription via Webhook instead respond immediately with a HTTP 200 and a Validation-Token in the header.



The Glip-Botman code that you are referring to is creating subscription inside the application, instead please make sure that when you 'Verify' the Webhook URL would have the below code:
<?php $callbackBody = file_get_contents('php://input');
$callbackSignature = getallheaders()['Validation-Token'];
header('Validation-Token: '. $callbackSignature); http_response_code(200);  

Invalid resource owner credentials :

You do not have to provide User Credentials when you are creating the Webhooks using UI. As shown above, your webhook URL would need to respond with a HTTP 200 and the Validation-Token. 

If you are creating an application of Type == Server/Bot, then I recommend you go through this tutorial for more information:
http://ringcentral-api-docs.readthedocs.io/en/latest/glip_bots/

If you are using the Glip-Botman library please use the branch 'Bot-provisioner'
https://github.com/ringcentral/glip-botman/tree/bot-provisioner


  • Author
  • Participating Frequently
  • 5 replies
  • December 30, 2017
I try my level best but when I am trying to verify my webhook url it's showing verification failed msg.
I using ngrok. Can u guide me to run index.php from my local machine.

  • Author
  • Participating Frequently
  • 5 replies
  • December 30, 2017
Solved  Invalid resource owner credentials  problem but now It giving "WebHook is not reachable".
Is there any mistake in this code then please guide me. 




Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings