-
Bug
-
Resolution: Done
-
Undefined
-
None
-
False
-
-
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:
```
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:
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
- links to