<?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: Splunk REST API endpoint to confirm password? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-REST-API-endpoint-to-confirm-password/m-p/322281#M60058</link>
    <description>&lt;P&gt;See if this helps:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/RESTUM/RESTusing#Authentication_and_authorization"&gt;http://docs.splunk.com/Documentation/Splunk/latest/RESTUM/RESTusing#Authentication_and_authorization&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Basic HTTP authentication&lt;/P&gt;

&lt;P&gt;Splunkd also supports basic authentication as defined by RFC 1945. This is the mechanism used when you access resources using a Web browser.&lt;/P&gt;

&lt;P&gt;So use a .net library that supports web requests with basic auth, encode the user/pass according to basic auth RFC 1945, and try to hit &lt;A href="https://localhost:8089/services/"&gt;https://localhost:8089/services/&lt;/A&gt;.  If you get a status code that is less than or equal to 399, then you can assume auth was successful and proceed.&lt;/P&gt;

&lt;P&gt;You might prefer to use the SDK though: &lt;A href="http://dev.splunk.com/csharp"&gt;http://dev.splunk.com/csharp&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 May 2017 18:24:31 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2017-05-30T18:24:31Z</dc:date>
    <item>
      <title>Splunk REST API endpoint to confirm password?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-REST-API-endpoint-to-confirm-password/m-p/322280#M60057</link>
      <description>&lt;P&gt;Building a .NET app that will access Splunk via REST API. App will prompt for password to use for admin access. Is there an endpoint which returns true/false with regards to auth validation? Don't want to proceed until valid password has been entered.&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 17:38:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-REST-API-endpoint-to-confirm-password/m-p/322280#M60057</guid>
      <dc:creator>simpkins1958</dc:creator>
      <dc:date>2017-05-30T17:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk REST API endpoint to confirm password?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-REST-API-endpoint-to-confirm-password/m-p/322281#M60058</link>
      <description>&lt;P&gt;See if this helps:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/RESTUM/RESTusing#Authentication_and_authorization"&gt;http://docs.splunk.com/Documentation/Splunk/latest/RESTUM/RESTusing#Authentication_and_authorization&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Basic HTTP authentication&lt;/P&gt;

&lt;P&gt;Splunkd also supports basic authentication as defined by RFC 1945. This is the mechanism used when you access resources using a Web browser.&lt;/P&gt;

&lt;P&gt;So use a .net library that supports web requests with basic auth, encode the user/pass according to basic auth RFC 1945, and try to hit &lt;A href="https://localhost:8089/services/"&gt;https://localhost:8089/services/&lt;/A&gt;.  If you get a status code that is less than or equal to 399, then you can assume auth was successful and proceed.&lt;/P&gt;

&lt;P&gt;You might prefer to use the SDK though: &lt;A href="http://dev.splunk.com/csharp"&gt;http://dev.splunk.com/csharp&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 18:24:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-REST-API-endpoint-to-confirm-password/m-p/322281#M60058</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-05-30T18:24:31Z</dc:date>
    </item>
  </channel>
</rss>

