<?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: Gettting 404 error while trying to create an access token using curl command in Security</title>
    <link>https://community.splunk.com/t5/Security/Gettting-404-error-while-trying-to-create-an-access-token-using/m-p/705105#M18231</link>
    <description>&lt;P&gt;To use the API to create access tokens, you need to use the management port (8089) not the web interface port (8000). You also need to remove the localization (en-US) part of your path.&lt;/P&gt;&lt;P&gt;It should be:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k -u admin:Password -X POST http://127.0.0.1:8089/services/authorization/tokens?output_mode=json --data name=admin --data audience=Users --data-urlencode expires_on=+30d&lt;/LI-CODE&gt;&lt;P&gt;I also suggest using https:// instead of http:// . You don't want your token to be visible in plaintext over the network.&lt;/P&gt;</description>
    <pubDate>Sat, 23 Nov 2024 14:01:03 GMT</pubDate>
    <dc:creator>marnall</dc:creator>
    <dc:date>2024-11-23T14:01:03Z</dc:date>
    <item>
      <title>Gettting 404 error while trying to create an access token using curl command</title>
      <link>https://community.splunk.com/t5/Security/Gettting-404-error-while-trying-to-create-an-access-token-using/m-p/705076#M18230</link>
      <description>&lt;P&gt;curl command :&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;curl -k -u&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;admin:Password -X POST &lt;A href="http://127.0.0.1:8000/en-US/services/authorization/tokens?output_mode=json" target="_blank" rel="noopener"&gt;http://127.0.0.1:8000/en-US/services/authorization/tokens?output_mode=json&lt;/A&gt; --data name=admin&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;--data audience=Users --data-urlencode expires_on=+30d&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;But I am able to login via UI and create an access token.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;If I try to do the same using curl command, I am getting the below response.&lt;/P&gt;
&lt;P class=""&gt;&lt;STRONG&gt;Note: The response has been trimmed.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;div class="error-message"&amp;gt;

                &amp;lt;h1 data-role="error-title"&amp;gt;Oops.&amp;lt;/h1&amp;gt;

                &amp;lt;p data-role="error-message"&amp;gt;Page not found! Click &amp;lt;a href="/" data-role="return-to-splunk-home"&amp;gt;here&amp;lt;/a&amp;gt; to return to Splunk homepage.&amp;lt;/p&amp;gt;

            &amp;lt;/div&amp;gt;

        &amp;lt;/div&amp;gt;

    &amp;lt;/div&amp;gt;

    &amp;lt;div class="message-wrapper"&amp;gt;

        &amp;lt;div class="message-container fixed-width" data-role="more-results"&amp;gt;&amp;lt;a href="/en-US/app/search/search?q=index%3D_internal%20host%3D%22f6xffpvw93.corp.com%2A%22%20source%3D%2Aweb_service.log%20log_level%3DERROR%20requestid%3D6740cfffb611125b5e0" target="_blank"&amp;gt;View more information about your request (request ID = 6740cfffb611125b5e0) in Search&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;

        &amp;lt;div class="message-container fixed-width" data-role="crashes"&amp;gt;&amp;lt;/div&amp;gt;

        &amp;lt;div class="message-container fixed-width" data-role="refferer"&amp;gt;&amp;lt;/div&amp;gt;

        &amp;lt;div class="message-container fixed-width" data-role="debug"&amp;gt;&amp;lt;/div&amp;gt;

        &amp;lt;div class="message-container fixed-width" data-role="byline"&amp;gt;

            &amp;lt;p class="byline"&amp;gt;.&amp;lt;/p&amp;gt;

        &amp;lt;/div&amp;gt;

    &amp;lt;/div&amp;gt;

&amp;lt;/body&amp;gt;

&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 22 Nov 2024 21:25:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Gettting-404-error-while-trying-to-create-an-access-token-using/m-p/705076#M18230</guid>
      <dc:creator>prashanthvp</dc:creator>
      <dc:date>2024-11-22T21:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Gettting 404 error while trying to create an access token using curl command</title>
      <link>https://community.splunk.com/t5/Security/Gettting-404-error-while-trying-to-create-an-access-token-using/m-p/705105#M18231</link>
      <description>&lt;P&gt;To use the API to create access tokens, you need to use the management port (8089) not the web interface port (8000). You also need to remove the localization (en-US) part of your path.&lt;/P&gt;&lt;P&gt;It should be:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k -u admin:Password -X POST http://127.0.0.1:8089/services/authorization/tokens?output_mode=json --data name=admin --data audience=Users --data-urlencode expires_on=+30d&lt;/LI-CODE&gt;&lt;P&gt;I also suggest using https:// instead of http:// . You don't want your token to be visible in plaintext over the network.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2024 14:01:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Gettting-404-error-while-trying-to-create-an-access-token-using/m-p/705105#M18231</guid>
      <dc:creator>marnall</dc:creator>
      <dc:date>2024-11-23T14:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Gettting 404 error while trying to create an access token using curl command</title>
      <link>https://community.splunk.com/t5/Security/Gettting-404-error-while-trying-to-create-an-access-token-using/m-p/705117#M18232</link>
      <description>&lt;P&gt;Thanks a lot Marnall. That worked.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2024 18:32:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Gettting-404-error-while-trying-to-create-an-access-token-using/m-p/705117#M18232</guid>
      <dc:creator>prashanthvp</dc:creator>
      <dc:date>2024-11-23T18:32:28Z</dc:date>
    </item>
  </channel>
</rss>

