<?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: SD-WAN -Not able to get the Session token using the API in DevNet Sandbox</title>
    <link>https://community.cisco.com/t5/devnet-sandbox/sd-wan-not-able-to-get-the-session-token-using-the-api/m-p/4953023#M8839</link>
    <description>Good morning . sorry for being later in reply and thanks a lot for the help in here.&lt;BR /&gt;That worked !&lt;BR /&gt;I also did further investigation and the below also worked fine&lt;BR /&gt;&lt;BR /&gt;curl --location -g -k -i -C --request POST '&lt;A href="https://sandbox-sdwan-2.cisco.com/j_security_check" target="_blank"&gt;https://sandbox-sdwan-2.cisco.com/j_security_check&lt;/A&gt;' --header 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'j_username=the user name r' --data-urlencode 'j_password="the password"'&lt;BR /&gt;</description>
    <pubDate>Fri, 03 Nov 2023 05:38:19 GMT</pubDate>
    <dc:creator>malrabas</dc:creator>
    <dc:date>2023-11-03T05:38:19Z</dc:date>
    <item>
      <title>SD-WAN -Not able to get the Session token using the API</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/sd-wan-not-able-to-get-the-session-token-using-the-api/m-p/4952060#M8825</link>
      <description>&lt;P&gt;HI ,&lt;/P&gt;
&lt;P&gt;I am trying to to get&amp;nbsp;&lt;I&gt;JSESSIONID i(&lt;/I&gt;&lt;I&gt;authorization cookie) using CURL to access the API m using the below&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;curl -c - -X POST -k "&lt;A href="https://sandbox-sdwan-2.cisco.com/" target="_blank" rel="noopener"&gt;https://sandbox-sdwan-2.cisco.com/&lt;/A&gt;" -H "Content-Type: application/json" -d '{&lt;BR /&gt;"j_username": "The username provided in the Sandbox guide ,&lt;BR /&gt;"j_password": "the password provided in the sandbox guide "&lt;BR /&gt;}' -c cookies.txt&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;getting this error&lt;/P&gt;
&lt;P&gt;&amp;lt;div id="errorInfoText"&amp;gt;&lt;BR /&gt;&amp;lt;span id="errorMessageBox" name="errorMessageBox" class="errorMessageBox"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;span id="errorDetails" class="errorDetails"&amp;gt;&lt;BR /&gt;&amp;lt;ul&amp;gt;&lt;BR /&gt;&amp;lt;li&amp;gt;If username and password are valid, user account is locked. Wait for some time and try again or contact Administrator&amp;lt;/li&amp;gt;&lt;BR /&gt;&amp;lt;li&amp;gt;If username and password are valid, password has expired. Contact Administrator&amp;lt;/li&amp;gt;&lt;BR /&gt;&amp;lt;/ul&amp;gt;&lt;BR /&gt;&amp;lt;/span&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please note&amp;nbsp; that login is sucessful when trying to access the sandbox&amp;nbsp; SD-WAN GUI&amp;nbsp; using same credential&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 14:48:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/sd-wan-not-able-to-get-the-session-token-using-the-api/m-p/4952060#M8825</guid>
      <dc:creator>malrabas</dc:creator>
      <dc:date>2023-11-01T14:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: SD-WAN -Not able to get the Session token using the API</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/sd-wan-not-able-to-get-the-session-token-using-the-api/m-p/4952132#M8826</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/584723"&gt;@malrabas&lt;/a&gt;&amp;nbsp;try this.&amp;nbsp;&lt;SPAN&gt;The following example shows requests for obtaining a token:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;~ via  v3.11.(venv)
❯ curl --user devnetuser:RG\!_Yw919_83 https://sandbox-sdwan-2.cisco.com/dataservice/client/token --insecure
6E7B2862C8A0E8A88E213AB6136003D9E91285F6EEB1F46CEC2DD7E94C7F5856A6ADBF0076C0B634DF551315E0FFED4D292F&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also the Always On SD-WAN SBX is read only, and i think you can only perform GET requests. In your error you would also see -&amp;nbsp;Access Forbidden for this user.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 17:10:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/sd-wan-not-able-to-get-the-session-token-using-the-api/m-p/4952132#M8826</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2023-11-01T17:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: SD-WAN -Not able to get the Session token using the API</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/sd-wan-not-able-to-get-the-session-token-using-the-api/m-p/4953016#M8838</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/352839"&gt;@bigevilbeard&lt;/a&gt;&amp;nbsp; you rock!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 05:24:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/sd-wan-not-able-to-get-the-session-token-using-the-api/m-p/4953016#M8838</guid>
      <dc:creator>divitgupta</dc:creator>
      <dc:date>2023-11-03T05:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: SD-WAN -Not able to get the Session token using the API</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/sd-wan-not-able-to-get-the-session-token-using-the-api/m-p/4953023#M8839</link>
      <description>Good morning . sorry for being later in reply and thanks a lot for the help in here.&lt;BR /&gt;That worked !&lt;BR /&gt;I also did further investigation and the below also worked fine&lt;BR /&gt;&lt;BR /&gt;curl --location -g -k -i -C --request POST '&lt;A href="https://sandbox-sdwan-2.cisco.com/j_security_check" target="_blank"&gt;https://sandbox-sdwan-2.cisco.com/j_security_check&lt;/A&gt;' --header 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'j_username=the user name r' --data-urlencode 'j_password="the password"'&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Nov 2023 05:38:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/sd-wan-not-able-to-get-the-session-token-using-the-api/m-p/4953023#M8839</guid>
      <dc:creator>malrabas</dc:creator>
      <dc:date>2023-11-03T05:38:19Z</dc:date>
    </item>
  </channel>
</rss>

