Uploaded image for project: 'PicketLink'
  1. PicketLink
  2. PLINK-421

Picketlink Social Facebook Authentication fails in EAR file

XMLWordPrintable

    • Hide

      1. Download and build the picketlink-authentication-facebook quick start from https://github.com/jboss-developer/jboss-picketlink-quickstarts/tree/master/picketlink-authentication-facebook

      2. Deploy this on Wildfly 8.1, and you'll see that as a WAR deployment it works as expected

      3. Modify the packaging so that the WAR is now part of an EAR file, and the various PicketLink libraries are packaged in the EAR, rather than WEB-INF/lib of the WAR

      4. Deploy the EAR and you'll notice that the Facebook authentication never kicks off. The code goes through the FacebookFilter class as expected, but the call to identity.login() results in a FAIL, with the user never being redirected to Facebook to authenticate.

      Show
      1. Download and build the picketlink-authentication-facebook quick start from https://github.com/jboss-developer/jboss-picketlink-quickstarts/tree/master/picketlink-authentication-facebook 2. Deploy this on Wildfly 8.1, and you'll see that as a WAR deployment it works as expected 3. Modify the packaging so that the WAR is now part of an EAR file, and the various PicketLink libraries are packaged in the EAR, rather than WEB-INF/lib of the WAR 4. Deploy the EAR and you'll notice that the Facebook authentication never kicks off. The code goes through the FacebookFilter class as expected, but the call to identity.login() results in a FAIL, with the user never being redirected to Facebook to authenticate.
    • Interactive Demo/Tutorial, Compatibility/Configuration

      When packaging an application as an EAR file, the Facebook authenticator does not seem to be called. I was able to successfully deploy the picketlink-authentication-facebook quick start from jboss-picketlink-quickstarts, which deploys a social login sample as a WAR file. This worked as expected.

      However, when this app is repackaged as an EAR – with the PicketLink and PicketLink Social libraries contained within the EAR, rather than WEB-INF/lib – the code fails. Clicking the sample button that kicks off the Facebook authentication process does not invoke the FacebookAuthenticator when "identity.login()" is called. Nor do I see the various Facebook components – FacebookConfiguration, FacebookAuthenticator, etc. – being created via the expected @Producer methods

            psilva@redhat.com Pedro Igor Craveiro
            sdnakhla_jira Akhbar Falafel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: