Uploaded image for project: 'Red Hat build of Keycloak'
  1. Red Hat build of Keycloak
  2. RHBK-2338

Social login - Stack Overflow test fails [GHI#27856]

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Before reporting an issue

      [X] I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

      Area

      ci

      Describe the bug

      org.keycloak.testsuite.broker.SocialLoginTest.stackoverflowLogin fails with the following error:

      ```
      no such element: Unable to locate element:

      {"method":"css selector","selector":"#firstName"}

      ```

      Related pipeline run: https://master-jenkins.redhat.com/view/RH-SSO/job/universal-test-pipeline-server/3566/testReport/org.keycloak.testsuite.broker/SocialLoginTest/stackoverflowLogin/

      Version

      latest

      Regression

      [ ] The issue is a regression

      Expected behavior

      Successful login via Stack Overflow.

      Actual behavior

      While trying to reproduce this issue locally running the testsuite using private account, the application fails with the very same error.

      The login starts by clicking on the Stack Overflow social login option, then it's redirected to the Stack Overflow login page, and after inserting the login credentials, the application is not able to redirect back to Keycloak and fails with:

      !image

      Similar behaviour occurred in #27197 but in the end the failure was not a regression and purely related to the PayPal IdP.

      <ins>However</ins>, while trying to manually login via Stack Overflow having Keycloak running, the application successfully proceeds with the login to Keycloak. The failure occurs <ins>only</ins> during the execution of the testsuite.

      How to Reproduce?

      1. Set up the Stack Overflow application according to the documentation

      https://www.keycloak.org/docs/latest/server_admin/#_stackoverflow
      

      3. Prepare social.properties file containing the required variables (e.g., Client ID, Client Secret, ...)
      4. Run the testsuite with following command with your custom social.properties file
      ```
      $ mvn -f testsuite/integration-arquillian/pom.xml clean install \

        -Dtest=SocialLoginTest#stackoverflowLogin \
        -Dsocial.config=path\to\social.properties \
        -Dbrowser=chrome
      

      ```

      Anything else?

      Related resources:

      • [Server Administration Guide | Social Indentity Providers | Stack Overflow|https://www.keycloak.org/docs/latest/server_admin/#_stackoverflow]
      • Authentication - Stack Exchange API

              Unassigned Unassigned
              pvlha Pavel Vlha
              Keycloak Core IAM
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: