Authenticating with your Splunkenvironment
Our code so far looks very similar to the code from the HTML dashboard that we have been working on in the previous chapters. One major difference that you need to note is that we need to set up authentication with our Splunk environment to allow communication to take place. In our previous chapters, this was not an issue as we were using our Splunk environment as our development platform, but now when we move our web pages off Splunk, this needs to be taken into consideration.
This is one of the great features of SplunkJS. By using the config.js
JavaScript file, it allows us to easily authenticate without the need for any complicated coding. It's now time to implement our authentication as part of our ...
Get Learning Splunk Web Framework now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.