Skip to content

🐞 Keycloak: Doesn't show SSO providers in deferred login mode - #2661

Merged
xalsina-sequent merged 6 commits into
mainfrom
copilot/fix-login-sso-display-issue
May 12, 2026
Merged

🐞 Keycloak: Doesn't show SSO providers in deferred login mode#2661
xalsina-sequent merged 6 commits into
mainfrom
copilot/fix-login-sso-display-issue

Conversation

CopilotAI commented May 11, 2026

Copy link
Copy Markdown
Contributor

Parent issue: https://github.com/sequentech/meta/issues/12125

  • Review PR feedback requesting latest test dependency/plugin versions
  • Check current sequent-theme Maven test configuration and latest available versions
  • Update JUnit and Surefire versions as requested
  • Run targeted sequent-theme validation
  • Reply to addressed PR comments
  • Run final validation

CopilotAIand others added 2 commits May 11, 2026 20:59
Agent-Logs-Url: https://github.com/sequentech/step/sessions/9d22d70b-20dc-47ef-8e64-34db4c1e0b12
Co-authored-by: edulix <81968+edulix@users.noreply.github.com>
Agent-Logs-Url: https://github.com/sequentech/step/sessions/9d22d70b-20dc-47ef-8e64-34db4c1e0b12
Co-authored-by: edulix <81968+edulix@users.noreply.github.com>

@edulixedulix left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apply changes in this branch

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<aws.version>2.18.6</aws.version>
<keycloak.version>26.6.1</keycloak.version>
<junit.version>5.13.4</junit.version>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use latest version instead

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the added JUnit version to the latest stable release in 2295907.

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.4</version>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use latest version here too

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the Surefire plugin version to the latest release in 2295907.

CopilotAI changed the title [WIP] Fix login page SSO display issue for deferred user profileShow SSO providers in deferred login modeMay 11, 2026
CopilotAI requested a review from edulixMay 11, 2026 21:04
Agent-Logs-Url: https://github.com/sequentech/step/sessions/c10eebf4-f73b-4235-b3bb-f04bd25b4714
Co-authored-by: edulix <81968+edulix@users.noreply.github.com>

CopilotAI commented May 11, 2026

Copy link
Copy Markdown
ContributorAuthor

apply changes in this branch

Applied the requested changes in this branch in 2295907.

@edulixedulix changed the title Show SSO providers in deferred login mode🐞 Keycloak: Doesn't show SSO providers in deferred login modeMay 11, 2026
@xalsina-sequent
xalsina-sequent marked this pull request as ready for review May 12, 2026 09:18
CopilotAI review requested due to automatic review settings May 12, 2026 09:18
@xalsina-sequent
xalsina-sequent merged commit deb2bf6 into mainMay 12, 2026
20 checks passed
@xalsina-sequent
xalsina-sequent deleted the copilot/fix-login-sso-display-issue branch May 12, 2026 09:20

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses missing SSO provider buttons when the admin-portal theme is used in “deferred login mode” by enabling and rendering the socialProviders section on register.ftl when formMode = 'LOGIN'. It also adds a regression test and updates Maven test dependencies/plugins so the theme module can run JUnit-based tests.

Changes:

  • Enable displaySocialProviders for register.ftl in login/deferred-login mode and add a socialProviders section to render provider buttons.
  • Add a JUnit test that validates the template contains the expected social-provider rendering hooks.
  • Add JUnit Jupiter dependencies and configure Maven Surefire for test execution.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

FileDescription
packages/keycloak-extensions/sequent-theme/src/test/java/sequent/keycloak/theme/RegisterTemplateTest.javaAdds a template-content regression test for deferred login social provider rendering.
packages/keycloak-extensions/sequent-theme/src/main/resources/theme/sequent.admin-portal/login/register.ftlEnables and implements social-provider rendering on the register template in login mode.
packages/keycloak-extensions/sequent-theme/pom.xmlAdds JUnit Jupiter dependencies and pins Surefire for running tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<#import "register-commons.ftl" as registerCommons>
<#include "intl-tel-input.ftl">
<@layout.registrationLayout displayMessage=messagesPerField.exists('global') displayRequiredFields=true; section>
<@layout.registrationLayout displayMessage=messagesPerField.exists('global') displayRequiredFields=true displaySocialProviders=(formMode?? && formMode = 'LOGIN' && (social.providers)?has_content); section>
Comment on lines +225 to +229
<#list visibleProviders as p>
<ul class="${properties.kcFormSocialAccountListClass!} <#if visibleProviders?size gt 3>${properties.kcFormSocialAccountListGridClass!}</#if>">
<li>
<a id="social-${p.alias}" class="${properties.kcFormSocialAccountListButtonClass!} <#if visibleProviders?size gt 3>${properties.kcFormSocialAccountGridItem!}</#if>"
type="button" href="${p.loginUrl}">

assertTrue(
template.contains(
"displaySocialProviders=(formMode?? && formMode = 'LOGIN' && (social.providers)?has_content)"));
assertTrue(template.contains("id=\"kc-social-providers\""));
assertTrue(template.contains("msg(\"identity-provider-login-label\")"));
assertTrue(template.contains("href=\"${p.loginUrl}\""));
assertTrue(template.contains("${msg(p.displayName)!}"));
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<aws.version>2.18.6</aws.version>
<keycloak.version>26.6.1</keycloak.version>
<junit.version>6.0.3</junit.version>
Comment on lines +232 to +234
<span class="${properties.kcFormSocialAccountNameClass!} kc-social-icon-text"><#if p.alias == 'digital-certificates'>${msg("digitalCertificateButton")}<#else>${msg(p.displayName)!}</#if></span>
<#else>
<span class="${properties.kcFormSocialAccountNameClass!}"><#if p.alias == 'digital-certificates'>${msg("digitalCertificateButton")}<#else>${msg(p.displayName)!}</#if></span>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@edulix@xalsina-sequent