<?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 HTTP 401 -- Unauthorized - API connection error after some requests in Security</title>
    <link>https://community.splunk.com/t5/Security/HTTP-401-Unauthorized-API-connection-error-after-some-requests/m-p/547061#M12187</link>
    <description>&lt;P&gt;I have an error in authentication in the API, I do some authentications successfully, but then it gives an error&amp;nbsp;&lt;SPAN&gt;HTTP 401 -- Unauthorized.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem may be that the connection is not closed, but I don't know how I could do it and if this is really the cause of the error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;private void authentication() {&lt;BR /&gt;&lt;BR /&gt;Service.setSslSecurityProtocol(SSLSecurityProtocol.TLSv1);&lt;BR /&gt;serviceSplunk = new Service(configMap.getSplunkHost(), configMap.getSplunkPort());&lt;BR /&gt;String credentials = configMap.getSplunkUserName() + ":" + configMap.getSplunkPassword();&lt;BR /&gt;String basicAuthHeader = Base64.encode(credentials.getBytes());&lt;BR /&gt;serviceSplunk.setToken("Basic " + basicAuthHeader);&lt;BR /&gt;&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Help me, please!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Apr 2021 15:45:03 GMT</pubDate>
    <dc:creator>isa_melo</dc:creator>
    <dc:date>2021-04-07T15:45:03Z</dc:date>
    <item>
      <title>HTTP 401 -- Unauthorized - API connection error after some requests</title>
      <link>https://community.splunk.com/t5/Security/HTTP-401-Unauthorized-API-connection-error-after-some-requests/m-p/547061#M12187</link>
      <description>&lt;P&gt;I have an error in authentication in the API, I do some authentications successfully, but then it gives an error&amp;nbsp;&lt;SPAN&gt;HTTP 401 -- Unauthorized.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem may be that the connection is not closed, but I don't know how I could do it and if this is really the cause of the error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;private void authentication() {&lt;BR /&gt;&lt;BR /&gt;Service.setSslSecurityProtocol(SSLSecurityProtocol.TLSv1);&lt;BR /&gt;serviceSplunk = new Service(configMap.getSplunkHost(), configMap.getSplunkPort());&lt;BR /&gt;String credentials = configMap.getSplunkUserName() + ":" + configMap.getSplunkPassword();&lt;BR /&gt;String basicAuthHeader = Base64.encode(credentials.getBytes());&lt;BR /&gt;serviceSplunk.setToken("Basic " + basicAuthHeader);&lt;BR /&gt;&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Help me, please!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 15:45:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/HTTP-401-Unauthorized-API-connection-error-after-some-requests/m-p/547061#M12187</guid>
      <dc:creator>isa_melo</dc:creator>
      <dc:date>2021-04-07T15:45:03Z</dc:date>
    </item>
  </channel>
</rss>

