<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I do simple token based authentication with the REST modular TA? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-do-I-do-simple-token-based-authentication-with-the-REST/m-p/370891#M44786</link>
    <description>&lt;P&gt;Without seeing your actual config or any logs , this answer is merely a guess.&lt;/P&gt;

&lt;P&gt;In the custom header field , the key : value is "=" delimited   (mentioned in the annotation and example directly under the text entry field on the setup screen).&lt;/P&gt;

&lt;P&gt;So : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Authorization=Token redactedtoken
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 09 Feb 2018 04:16:27 GMT</pubDate>
    <dc:creator>Damien_Dallimor</dc:creator>
    <dc:date>2018-02-09T04:16:27Z</dc:date>
    <item>
      <title>How do I do simple token based authentication with the REST modular TA?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-do-I-do-simple-token-based-authentication-with-the-REST/m-p/370890#M44785</link>
      <description>&lt;P&gt;This seems like it should be really simple but I am having trouble wrapping my head around the different types of authentication available in the REST modular TA.  Basically I am working with a NetBox instance and I am trying to pull in json data via the REST API.  I am able to get data directly from the server by running this simple curl command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -X GET --header 'Accept: application/json' --header 'Authorization: Token redactedtoken' 'https://netbox.mydomain.com/api/circuits/circuits/' --insecure
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This returns the expected data running it directly on the OS.  I do not think this is standard oath1 or oath2, but maybe on of those options can still work for this use case?   I tried oath2 by setting the Token Type to "Token" and then entering my token value in the token field, but I receive an error stating that Token is not a valid type of Token.  I have also tried putting "Authorization: Token redactedtoken" in the custom header field, and it does not parse that correctly as a header either and throws errors.&lt;/P&gt;

&lt;P&gt;I can access parts of the API that do not require credentials, so I know that splunk can make the connection.  I feel like I am missing something extremely simple, any thoughts would be appreciated.  Even finding a way to log what curl command the rest.py script is trying to use would go a long way in figuring out what fields my information needs to go in.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 22:19:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-do-I-do-simple-token-based-authentication-with-the-REST/m-p/370890#M44785</guid>
      <dc:creator>centrafraserk</dc:creator>
      <dc:date>2018-02-08T22:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I do simple token based authentication with the REST modular TA?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-do-I-do-simple-token-based-authentication-with-the-REST/m-p/370891#M44786</link>
      <description>&lt;P&gt;Without seeing your actual config or any logs , this answer is merely a guess.&lt;/P&gt;

&lt;P&gt;In the custom header field , the key : value is "=" delimited   (mentioned in the annotation and example directly under the text entry field on the setup screen).&lt;/P&gt;

&lt;P&gt;So : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Authorization=Token redactedtoken
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Feb 2018 04:16:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-do-I-do-simple-token-based-authentication-with-the-REST/m-p/370891#M44786</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2018-02-09T04:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I do simple token based authentication with the REST modular TA?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-do-I-do-simple-token-based-authentication-with-the-REST/m-p/370892#M44787</link>
      <description>&lt;P&gt;Thank you this is correct, but now i don't see the json input anymore.  I think the netbox server has limits, i will challenge them.  Thank you so much! I appreciate your help! &lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 10:58:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-do-I-do-simple-token-based-authentication-with-the-REST/m-p/370892#M44787</guid>
      <dc:creator>centrafraserk</dc:creator>
      <dc:date>2018-02-09T10:58:17Z</dc:date>
    </item>
  </channel>
</rss>

