<?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 to get OAuth Token- using Curl command in Security</title>
    <link>https://community.splunk.com/t5/Security/How-to-get-OAuth-Token-using-Curl-command/m-p/604114#M16207</link>
    <description>&lt;P&gt;Well, I think that was related to the policy from Admin that not to use userName and Password and to use the token instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jul 2022 12:12:06 GMT</pubDate>
    <dc:creator>mmoayed</dc:creator>
    <dc:date>2022-07-01T12:12:06Z</dc:date>
    <item>
      <title>How to get OAuth Token- using Curl command</title>
      <link>https://community.splunk.com/t5/Security/How-to-get-OAuth-Token-using-Curl-command/m-p/603358#M16182</link>
      <description>&lt;P&gt;Hi, I want to get back Token id from the Curl command below :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;curl -k -u UserName:Password -X POST &lt;A href="https://0.0.0.0:8089/services/authorization/tokens" target="_blank" rel="noopener"&gt;https://0.0.0.0:8089/services/authorization/tokens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But , I am&amp;nbsp; getting back :&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;response&amp;gt;&lt;BR /&gt;&amp;lt;messages&amp;gt;&lt;BR /&gt;&amp;lt;msg type="ERROR"&amp;gt;Unauthorized&amp;lt;/msg&amp;gt;&lt;BR /&gt;&amp;lt;/messages&amp;gt;&lt;BR /&gt;&amp;lt;/response&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help how to resolve this case , what is missing in Curl command or what is wrong ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 10:22:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-get-OAuth-Token-using-Curl-command/m-p/603358#M16182</guid>
      <dc:creator>mmoayed</dc:creator>
      <dc:date>2022-06-27T10:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get OAuth Token- using Curl command</title>
      <link>https://community.splunk.com/t5/Security/How-to-get-OAuth-Token-using-Curl-command/m-p/603361#M16183</link>
      <description>&lt;P&gt;Hi, use GET instead of POST&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;curl -k -u &amp;lt;username&amp;gt;:&amp;lt;password&amp;gt; -X GET https://&amp;lt;server&amp;gt;:&amp;lt;management_port&amp;gt;/services/authorization/tokens&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.2.2203/Security/ManageAuthTokens#Manage_authentication_tokens_using_REST" target="_self"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.2.2203/Security/ManageAuthTokens#Manage_authentication_tokens_using_REST&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 10:47:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-get-OAuth-Token-using-Curl-command/m-p/603361#M16183</guid>
      <dc:creator>Velluv</dc:creator>
      <dc:date>2022-06-27T10:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get OAuth Token- using Curl command</title>
      <link>https://community.splunk.com/t5/Security/How-to-get-OAuth-Token-using-Curl-command/m-p/603362#M16184</link>
      <description>&lt;P&gt;Thank you for your reply , but I still having same :&lt;BR /&gt;&lt;BR /&gt;└──&amp;gt; curl -k -u UserName:PassWord -X GET &lt;A href="https://0.0.0.0:8089/services/authorization/tokens" target="_blank"&gt;https://0.0.0.0:8089/services/authorization/tokens&lt;/A&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;response&amp;gt;&lt;BR /&gt;&amp;lt;messages&amp;gt;&lt;BR /&gt;&amp;lt;msg type="ERROR"&amp;gt;Unauthorized&amp;lt;/msg&amp;gt;&lt;BR /&gt;&amp;lt;/messages&amp;gt;&lt;BR /&gt;&amp;lt;/response&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 10:52:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-get-OAuth-Token-using-Curl-command/m-p/603362#M16184</guid>
      <dc:creator>mmoayed</dc:creator>
      <dc:date>2022-06-27T10:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get OAuth Token- using Curl command</title>
      <link>https://community.splunk.com/t5/Security/How-to-get-OAuth-Token-using-Curl-command/m-p/603363#M16185</link>
      <description>&lt;P&gt;Ok,&amp;nbsp; then You should double check that You are using correct username:password combination&amp;nbsp; and that the user has Admin role&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 11:09:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-get-OAuth-Token-using-Curl-command/m-p/603363#M16185</guid>
      <dc:creator>Velluv</dc:creator>
      <dc:date>2022-06-27T11:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get OAuth Token- using Curl command</title>
      <link>https://community.splunk.com/t5/Security/How-to-get-OAuth-Token-using-Curl-command/m-p/603399#M16186</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Ok,&amp;nbsp; then You should double check that You are using correct username:password combination&amp;nbsp; and that the user has Admin role&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 14:46:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-get-OAuth-Token-using-Curl-command/m-p/603399#M16186</guid>
      <dc:creator>Velluv</dc:creator>
      <dc:date>2022-06-27T14:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get OAuth Token- using Curl command</title>
      <link>https://community.splunk.com/t5/Security/How-to-get-OAuth-Token-using-Curl-command/m-p/604114#M16207</link>
      <description>&lt;P&gt;Well, I think that was related to the policy from Admin that not to use userName and Password and to use the token instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 12:12:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-get-OAuth-Token-using-Curl-command/m-p/604114#M16207</guid>
      <dc:creator>mmoayed</dc:creator>
      <dc:date>2022-07-01T12:12:06Z</dc:date>
    </item>
  </channel>
</rss>

