Add support for token based authentication to the XML Collector

Description

In the current state it's not possible to collect data from webservices which require an authentication. eg. Oauth.
It would be a big benefit to have this function in ONMS.

Project Proposal: https://wiki.opennms.org/wiki/Proposals/XmlCollectorAuthentication

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

John Blackburn May 14, 2018 at 10:00 PM

This is also relevant to accessing the Azure API.  Need to take into account that for Azure, the token needs renewing hourly.

It is possible to put the token in the xml source with the following code in xml-datacollection-config.xml taking data from fields I've manually populated in the asset info:

 

It would be good if OpenNMS had a native way to handle this, and also the ability to include the token in a detector.
 

John Blackburn May 14, 2018 at 6:01 AM

Implementing this would assist with 

Details

Assignee

Reporter

Components

Affects versions

Priority

PagerDuty

Created June 9, 2017 at 8:44 AM
Updated August 4, 2023 at 2:39 AM