jquery - Auto login and access the Oracle ADF application from Oracle Apex -
i using oracle apex 5.1. in application need access oracle adf application oracle apex. used iframe view adf application apex. since logged in oracle apex, don't want login again in adf application. tried auto login while loading page using ajax post method. browser doesn't allow request due cross domain access issues. if possible way auto login or going wrong in code, please me. in advance.
code used login in ajax:
$.ajax({ url: 'https://xxxxxx.co.xx:7302/xxxx/faces/pages/login/login.jspx', data: {j_username: "xxxxx",j_password:"xxxxx"}, type: 'post', crossdomain: true, datatype: 'text/html', success: function() { alert("success"); }, error: function() { alert('failed!'); }, headers: { 'access-control-allow-origin': '*' } });
the error:
cross-origin request blocked: same origin policy disallows reading remote resource @ https://xxxxx.co.xx:7302/xxxx/faces/pages/login/login.jspx. (reason: cors header 'access-control-allow-origin' missing).
if possible way auto login, please me. in advance.
you'll want use single-sign-on achieve this, , you'll need configure weblogic server runs adf part sso apex instance. here video adf part - https://www.youtube.com/watch?v=g7x7qunt-58 on apex side: http://www.oracle.com/technetwork/developer-tools/apex/learnmore/apex-oam-integration-1375333.pdf
Comments
Post a Comment