All Apps and Add-ons

How to configure authentication in REST API Modular Input?

felipecerda
Path Finder

Hi,

I just installed the REST API Modular Input add-on in my Splunk Enterprise environment.
I'm trying to input data from the Usabilla.com REST API using this add-on, but I'm having a problem that I believe has to do with the authentication.

Usabilla provides a client access key and a secret key, but I can't find an option in the REST API Modular Input add-on that allows me to put these 2 keys to get it to work.

The options are basic, digest, oauth1, oauth2 and custom. What do I have to choose? All of them open a new set of fields to complete, and none of them seem to work with the access and private keys I have.

Has anyone been able to set this up correctly?

Thanks in advance.
Felipe

0 Karma
1 Solution

Damien_Dallimor
Ultra Champion

You'll likely need to create a custom auth handler.

There are examples in the rest_ta/bin/authhandlers.py script.

So create your custom handler in this script by adding a class , then declare this class to be applied in the setup screen when you select "custom".

The python logic in your custom authentication handler class will depend on whatever the specification for the security protocol is as per Usabilla's documentation, http://developers.usabilla.com/#def-api-credentials

View solution in original post

Damien_Dallimor
Ultra Champion

You'll likely need to create a custom auth handler.

There are examples in the rest_ta/bin/authhandlers.py script.

So create your custom handler in this script by adding a class , then declare this class to be applied in the setup screen when you select "custom".

The python logic in your custom authentication handler class will depend on whatever the specification for the security protocol is as per Usabilla's documentation, http://developers.usabilla.com/#def-api-credentials

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...