<?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 Passing data from SKI to the bundle in Software Defined Networking</title>
    <link>https://community.hpe.com/t5/software-defined-networking/passing-data-from-ski-to-the-bundle/m-p/6305819#M1213</link>
    <description>&lt;P&gt;In a simple application that I am trying to build, I have a method annotated with @POST in a resource java file in the ui bundle. Using cURL and specifying "X-Auth-Token" in the header and using method POST, I am able to access this method and have its code executed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I am not certain how to use the SKI framework to access this method. I created a view that contains a HTML form that users can fill out and submit. The HTML form is built using "api.lib.htmlTags" and has the correct action URL. When I click submit on the form, an authetication required JSON encoded message comes up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a specific function in SKI that I can use to post data which will include the authentication token in the header? Am I able to programatically get access to the authentication token being used? Am I expected to use $.post() to pass this information?&lt;/P&gt;</description>
    <pubDate>Mon, 16 Dec 2013 06:19:32 GMT</pubDate>
    <dc:creator>sepbot</dc:creator>
    <dc:date>2013-12-16T06:19:32Z</dc:date>
    <item>
      <title>Passing data from SKI to the bundle</title>
      <link>https://community.hpe.com/t5/software-defined-networking/passing-data-from-ski-to-the-bundle/m-p/6305819#M1213</link>
      <description>&lt;P&gt;In a simple application that I am trying to build, I have a method annotated with @POST in a resource java file in the ui bundle. Using cURL and specifying "X-Auth-Token" in the header and using method POST, I am able to access this method and have its code executed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I am not certain how to use the SKI framework to access this method. I created a view that contains a HTML form that users can fill out and submit. The HTML form is built using "api.lib.htmlTags" and has the correct action URL. When I click submit on the form, an authetication required JSON encoded message comes up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a specific function in SKI that I can use to post data which will include the authentication token in the header? Am I able to programatically get access to the authentication token being used? Am I expected to use $.post() to pass this information?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2013 06:19:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/passing-data-from-ski-to-the-bundle/m-p/6305819#M1213</guid>
      <dc:creator>sepbot</dc:creator>
      <dc:date>2013-12-16T06:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Passing data from SKI to the bundle</title>
      <link>https://community.hpe.com/t5/software-defined-networking/passing-data-from-ski-to-the-bundle/m-p/6306759#M1214</link>
      <description>&lt;P&gt;After going through the JS source code, it seems that the authentication token can be accessed via auth.token and it can be passed to the server by using $.ajax.headers. $.post does support passing header information.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2013 22:57:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/passing-data-from-ski-to-the-bundle/m-p/6306759#M1214</guid>
      <dc:creator>sepbot</dc:creator>
      <dc:date>2013-12-16T22:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Passing data from SKI to the bundle</title>
      <link>https://community.hpe.com/t5/software-defined-networking/passing-data-from-ski-to-the-bundle/m-p/6357187#M1215</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are gald you found the answer, please do let us know if you&amp;nbsp;need&amp;nbsp;any further assistance regarding this query.&lt;/P&gt;&lt;P&gt;Please feel free to reply incase you have more questions around the same topic or open a new thread if new&amp;nbsp; topic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="arial,helvetica,sans-serif"&gt;If you feel&amp;nbsp;this isuses is resolved, please do let us know&amp;nbsp;by marking response as an 'accepted solution’.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="arial,helvetica,sans-serif"&gt;Thanks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="arial,helvetica,sans-serif"&gt;Sukar&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="arial,helvetica,sans-serif"&gt;HP SDN Team&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2014 12:09:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/passing-data-from-ski-to-the-bundle/m-p/6357187#M1215</guid>
      <dc:creator>Sukar</dc:creator>
      <dc:date>2014-01-30T12:09:18Z</dc:date>
    </item>
  </channel>
</rss>

