I have an iview that worked great with default login that pointed to a trusted r3 alias, I had the following code and the connection worked great
IConnectorGatewayService cgService =(IConnectorGatewayService) PortalRuntime.getRuntimeResources().getService(IConnectorService.KEY);
ConnectionProperties prop = new ConnectionProperties(request.getLocale(), request.getUser());
connection = cgService.getConnection("Jco_Sempra", prop);
But once I changed the iview itself to anonymous, there is a link that takes you straight to the iview, the connection is null
When I use the request.getUser() it throws an exception but if I just put the request in no exception is thrown but the connection is null?
Does anyone have an answer for this one, is there something I should ensure when I login the portal as anonymous for the backend?