<?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: Does the REST API based search support only username/password based authentication? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Does-the-REST-API-based-search-support-only-username-password/m-p/402313#M71561</link>
    <description>&lt;P&gt;@alpsholic&lt;/P&gt;

&lt;P&gt;Did the answer below help you solve your problem? If so, please resolve this post by approving it! &lt;BR /&gt;
If your problem is still not solved, keep us updated so that someone else can help ya. Thanks for posting!&lt;/P&gt;</description>
    <pubDate>Fri, 28 Sep 2018 22:57:00 GMT</pubDate>
    <dc:creator>mstjohn_splunk</dc:creator>
    <dc:date>2018-09-28T22:57:00Z</dc:date>
    <item>
      <title>Does the REST API based search support only username/password based authentication?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-the-REST-API-based-search-support-only-username-password/m-p/402310#M71558</link>
      <description>&lt;P&gt;Does the REST API based search support only username/password based authentication?? If I am developing an app which does REST API searches, the customer may not be willing to give username/password. Is there any other way of authorization possible?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 00:32:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-the-REST-API-based-search-support-only-username-password/m-p/402310#M71558</guid>
      <dc:creator>alpsholic</dc:creator>
      <dc:date>2018-09-28T00:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Does the REST API based search support only username/password based authentication?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-the-REST-API-based-search-support-only-username-password/m-p/402311#M71559</link>
      <description>&lt;P&gt;Hey@alpsholic,&lt;/P&gt;

&lt;P&gt;I am not sure if this will work. But you can ask the customer to create a splunk role which can access rest api and you can use that credentials to do api searches.&lt;BR /&gt;
The role will need following capabilities:&lt;BR /&gt;
rest_apps_view&lt;BR /&gt;
rest_properties_get&lt;BR /&gt;
rest_properties_set&lt;BR /&gt;
rest_apps_management&lt;/P&gt;

&lt;P&gt;Let me know if this helps!!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:24:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-the-REST-API-based-search-support-only-username-password/m-p/402311#M71559</guid>
      <dc:creator>deepashri_123</dc:creator>
      <dc:date>2020-09-29T21:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Does the REST API based search support only username/password based authentication?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-the-REST-API-based-search-support-only-username-password/m-p/402312#M71560</link>
      <description>&lt;P&gt;Hi @alpsholic,&lt;BR /&gt;
No you cannot get access to Splunk with REST call without having username and password. But you can ask them for the Session key. Ask them to generate a session key and they can give it to you.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -u admin:changeme -k &lt;A href="https://localhost:8089/services/auth/login/" target="test_blank"&gt;https://localhost:8089/services/auth/login/&lt;/A&gt; -d"username=admin&amp;amp;password=changeme"
 &amp;lt;response&amp;gt;
 &amp;lt;sessionKey&amp;gt;30774f9d502004b5c655c08b5362bdca&amp;lt;/sessionKey&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps!&lt;/P&gt;

&lt;P&gt;There are some other authentication methods available in Splunk, but I don't think that will work with REST api calls - &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.3/Security/Setupbuilt-inauthentication"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.3/Security/Setupbuilt-inauthentication&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 05:42:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-the-REST-API-based-search-support-only-username-password/m-p/402312#M71560</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2018-09-28T05:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Does the REST API based search support only username/password based authentication?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-the-REST-API-based-search-support-only-username-password/m-p/402313#M71561</link>
      <description>&lt;P&gt;@alpsholic&lt;/P&gt;

&lt;P&gt;Did the answer below help you solve your problem? If so, please resolve this post by approving it! &lt;BR /&gt;
If your problem is still not solved, keep us updated so that someone else can help ya. Thanks for posting!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 22:57:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-the-REST-API-based-search-support-only-username-password/m-p/402313#M71561</guid>
      <dc:creator>mstjohn_splunk</dc:creator>
      <dc:date>2018-09-28T22:57:00Z</dc:date>
    </item>
  </channel>
</rss>

