Showing posts with label Websphere portal cross domain issue. Show all posts
Showing posts with label Websphere portal cross domain issue. Show all posts

Monday, 10 February 2014

Fixing Cross Domain issue in WebSphere Portal with Connections

Environment - Integrated WebSphere Portal 8X with Connections 4.5 with SSO established.

Issue - Unable to retreive Connections Feed in Portlet without passing credentials.

Solution - To Resolve cross domain issue we have to update proxy-config.xml file and restart the server.

Process - Goto,

D:\IBM\WebSphere\wp_profile\config\cells\TIT-JAVA-010Cell\applications\AJAX Proxy Configuration.ear\deployments\AJAX Proxy Configuration\wp.proxy.config.war\WEB-INF\proxy-config.xml

    1. Take backup of proxy-config.xml
    2. Update the proxy-config.xml by adding below lines after <mapping ;
            <policy url="*" acf="none">
                <actions>
                    <method>GET</method>
                </actions>
            </policy>
    3. Update the proxy-config.xml by adding below lines for <policy url="{$ibm_connections_policy}" acf="none" basic-auth-support="true">
            <users>
                <user>AllAuthenticatedUsers</user>           
            </users>
    4. For my testing I also updated Connections Proxy-config.xml at location IBM/WebSphere/proxy-config.xml
   
    5. Restart the server.
   
    6. Next, call below url in portlet to retrive feed without using credentials;
            http://<hostname>:<port>/wps/proxy/http/conserver.com/path/on/server/somefile.xml
           
            Example : https://andiwspdb01.spil.com/social/proxy/http/andiswp01.spil.com/connections/opensocial/basic/rest/activitystreams/urn:lsid:lconn.ibm.com:communities.community:89743724-9899-488a-bd9d-491ee2fed4f6/@all/@status?rollup=true&format=atom
           
           
Ref Url :

http://www-10.lotus.com/ldd/portalwiki.nsf/xpDocViewer.xsp?lookupName=IBM+WebSphere+Portal+7+Product+Documentation#action=openDocument&res_title=Global_proxy_configuration_wp7&content=pdcontent

http://publib.boulder.ibm.com/infocenter/ltscnnct/v2r0/index.jsp?topic=/com.ibm.connections.25.help/t_admin_proxy_ltpa_token.html

http://publib.boulder.ibm.com/infocenter/ltscnnct/v2r0/index.jsp?topic=/com.ibm.connections.25.help/t_admin_config_ajax_proxy.html

http://www-10.lotus.com/ldd/lcwiki.nsf/dx/Setting_up_single_sign-on_between_IBM_Lotus_Connections_2.5_and_Computer_Associates_SiteMinder

http://www-10.lotus.com/ldd/lcwiki.nsf/xpDocViewer.xsp?lookupName=IBM+Connections+4.5+Documentation#action=openDocument&res_title=Enabling_the_AJAX_proxy_to_forward_user_credentials_ic45&content=pdcontent

http://infolib.lotus.com/resources/portal/8.0.0/doc/en_us/PT800ACD002/collab/i_coll_t_enable_lcserver_access.html

http://www-10.lotus.com/ldd/mashupswiki.nsf/page.xsp?documentId=655ED56EB51DE0C5852576CE004BA293&action=openDocument

http://www-10.lotus.com/ldd/mashupswiki.nsf/xpDocViewer.xsp?lookupName=IBM+Mashup+Center+2.0+documentation#action=openDocument&res_title=Configuring_the_AJAX_proxy_with_single_signon__Mashup_Center_2.0&content=pdcontent

http://www-10.lotus.com/ldd/portalwiki.nsf/dx/Troubleshooting_the_Ajax_Proxy_in_Portal

http://www-10.lotus.com/ldd/portalwiki.nsf/dx/The_Ajax_Proxy_in_Portal