2 Replies Latest reply on Apr 4, 2017 7:01 AM by Kavimani Gunasekaran

    access an external site

    Aymen Kanzari

      Hi all,

       

      I want to access an external site from my application when I click on a button

      I create this method but when I click on a button, it shows an error

      public boolean handleFbAuthUrl(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws ServletException, IOException {

        pResponse.sendRedirect("http://www.facebook.com/dialog/oauth");

        return fasle;

          }

       

      **** Warning Mon Apr 03 17:34:27 +01:00 2017 1491237267482 /atg/dynamo/servlet/pipeline/RedirectURLValidator Not allowing redirect of the URL "http://www.facebook.com/dialog/oauth". Adjust settings of this component (such as the "allowedHostNames", "allowLocalHost", and "allowAllSiteURLs" properties) to allow. Will not warn again for URLs of host "www.facebook.com" for 5 minutes.

       

      <Apr 3, 2017 5:34:27 PM CET> <Error> <HTTP> <BEA-101020> <[ServletContext@233989763[app:axcore.ear module:store path:null spec-version:3.0]] Servlet failed with an Exception

      java.lang.IllegalArgumentException: Invalid redirect URL: http://www.facebook.com/dialog/oauth

        at atg.servlet.DynamoHttpServletResponse.sendRedirect(DynamoHttpServletResponse.java:1042)

        at atg.servlet.DynamoHttpServletResponse.sendRedirect(DynamoHttpServletResponse.java:963)

        at com.axeleate.userprofiling.facebook.FBConnection.handleFbAuthUrl(FBConnection.java:31)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        Truncated. see log file for complete stacktrace