Hi all,
My scenarios is as follows:
We have OTDS 10.5 and Content Server 10.5, and we have developed some RESTful webservices that sit independent of Content Server/OTDS. We also have a Javascript-only (no JSP/etc) client. We want to get IWA authentication (falling back to forms-based sign-on) using the OTDS login page (/otdsws/login?RFA=...) and then use the OTDSTicket in our calls to Content Server.
We have:
- setup a new Resource in OTDS called 'Webapp' and activated it
- assigned access to our domain users
- Content Server is already setup and working fine with OTDS
- we are using the ResourceID of the Webapp in teh RFA param (/login?RFA={webapp-resource-id}:/webapp/page/path) to authenticate, and hope to use it to obtain a ticket for Content Server using OTDS APIs.
I am able to redirect to the login page, authenticate using IWA (seemelessly) and bounce back to the Webapp page fine, however because the OTDSTicket is returned in an HttpOnly cookie, i cannot access it using javascript to authenticate for subsequent API calls, and XHR can't send the cookie (even using "withCredentials") due to security restrictions.
My question is: how do we access and use the OTDSTicket authentication ticket from a purely-javascript application?
Thanks,
Nick