Developer Community

Reply
Highlighted
Occasional Contributor II

Aruba Central Webhook Token Auth

G'day All,

 

I'm playing with Aruba Central webhooks for a customer and I'm trying to find where the auth token is in the webhook's POST request. For example, I do not see the token in the headers, and I do not see it in the request's POST data. In fact, I don't see it at all.

 

Does anyone know where I can find it, or whether it is being sent at all?

 

Cheers,


Conor

Highlighted
Aruba Employee

Re: Aruba Central Webhook Token Auth

Hi Conor,

 

I am trying to understand your query, could you please elaborate a little further ? 

-Jay

Highlighted
Occasional Contributor II

Re: Aruba Central Webhook Token Auth

Hi Jay,

 

Thanks for joining the conversation! When one creates a webhook, you get a webhook_id and a token. You can see this under Webhooks in Aruba Central.

 

When my application sitting on the internet receives a webhook call, I see the webhook's ID in the HTTP POST data. As en example, here is some of the data I receive.

 

{

alert_type': 'SWITCH_POE_UTILIZATION',

'webhook': '12341234-1234-1234-1234-1234234523252'

}

Whilst I get the webhook_id in the POST data, I do not get the webhook's token.

 

I've also checked the HTTP params, i,e, the things after the host in the url:

https://myhost.com/post_action?param1=hello&param2=goodbye

 

There is no webhook token in the params, in fact, there are no params at all.

 

So lastly, I check the HTTP headers. Again I see no webhook token there.

 

I do see some Aruba Central specific things such as:

 

{

X-Central-Delivery-Timestamp': '1583177418',

'X-Central-Customer-Id': '1234567,

'X-Central-Signature': 'random_text=',

'X-Central-Service': 'alerts', 'Content-Type': 'application/json'

}

 

But no webhook token.

 

Does that explain things a bit better? In short, I'm trying to find the webhook's token in the request that Aruba Central sends to my host when firing the webhook.

 

Cheers,


Conor

 

Highlighted
Aruba Employee

Re: Aruba Central Webhook Token Auth

Hi Conor, 

 

Here are the details on utilizing the HTTP headers and validating the Webhooks message from Aruba Central.

 

A sample script is provided in the integration note.

https://help.central.arubanetworks.com/latest/documentation/online_help/content/api/servicenow-webhook.htm

 

Thanks,

Karthik

Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: