A JavaScript application running on AppWorks has an access to the otagtoken
and can perform AJAX requests to REST APIS served from the same origin. How about communicating with other REST APIs and enjoying SSO coming from the initial login to AppWorks?
Let's say that I'd like to access the CS REST API. I can authenticate using OTCSTicket, OTDSTicket and MYSAPSSO2 headers, or by Basic Authentication. None of those authorization tokens are available in AppWorks, am I right?
Is there an AppWorks-integration CS module with a login callback accepting the otagtoken? Like the OTDS integration module does for the OTDSTicket and MYSAPSSO2 token. If it is, I'd just send the otagtoken to authorize the requests.
If the OTDS integration is turned on, is the OTDSTicket available from within the app? If it is, I'd just use to authorize the requests.
If I configure OTAG as a reverse proxy to access my CS, can I deploy a custom filter to the proxy? I wonder how feasible it'd be to add a CS-specific authorization header (OTCSTicket) based on the otagtoken I'd send from the app. The requests would be authorized by OTAG on behalf of the user logged in to OTAG in the app.
Developing all APIs to be deployed on OTAG only is probably unrealistic. The OTAG proxy component is a good start to avoid CORS problems and to overcome firewalls. How about the SSO now?