- Community Home
- >
- Networking
- >
- Software Defined Networking
- >
- Passing data from SKI to the bundle
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2013 10:19 PM
12-15-2013 10:19 PM
Passing data from SKI to the bundle
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.
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.
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2013 02:57 PM
12-16-2013 02:57 PM
Re: Passing data from SKI to the bundle
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2014 04:09 AM
01-30-2014 04:09 AM
Re: Passing data from SKI to the bundle
Hello,
We are gald you found the answer, please do let us know if you need any further assistance regarding this query.
Please feel free to reply incase you have more questions around the same topic or open a new thread if new topic.
If you feel this isuses is resolved, please do let us know by marking response as an 'accepted solution’.
Thanks
Sukar
HP SDN Team