Skip to content

Linking an existing account to Google falls back to unstyled Keycloak pages #35

In progress

Description

@saqibmanan

What: After "Existing account found" → Continue with Google, users get the default "Link Google" email-verification page (orange links, raw realm name), then the email link. The design goes straight to "Account verified".
Why it matters: An off-brand, confusing step for every existing user who adopts Google sign-in.
Fix: not fixed — theme login-idp-link-email.ftl, and decide whether the first-broker-login flow should verify by email or auto-link trusted Google emails.

Activity

  1. added
    bug
    on Sep 25, 2026
  2. added theissue type on Sep 25, 2026
  3. saqibmanan commented on Sep 25, 2026

    @saqibmanan
    ContributorAuthor

    Repro: existing password account x@gmail.com, never used Google → Continue with Google with the same email.

    Observed: "Existing account found" (custom, matches design) → Continue with Google → default page titled "Link Google": "You need to verify your email address to link your account with Google. An email with instructions to link Google account … with your account has been sent to you." Orange Click here links. Email subject "Link Google"; its link completes the link and signs in.
    Expected (design): straight to "Account verified".

  4. removed their assignment
    on Sep 29, 2026
  5. saqibmanan commented on Nov 26, 2026

    @saqibmanan
    ContributorAuthor

    Retested on the released theme (main 6880894), locally on Keycloak 26.7. I used a stand-in OIDC provider under the alias google and a password account with the same email that had never been linked.

    Fixed: the page is no longer unstyled. The theme's layout wraps the default login-idp-link-email.ftl (brand colours, logo panel, Back to Home, Privacy footer, no orange links).

    Still open:

    • No custom page: the theme doesn't define login-idp-link-email.ftl (it isn't in KcPage.tsx), so the content is Keycloak's default. The title is "Link Google". The body reads "An email with instructions to link Google account with your DataSpace account has been sent to you", showing the raw realm name. It has two "Click here" links, one to resend and one to continue in another browser.
    • Email: the subject is "Link Google" (default template).
    • After the email link: the account is linked and the user goes straight back to the app. No "Account verified" page appears.

    Remaining decision: keep verify-by-email and give this page the design's copy, or skip it by trusting Google emails. Skipping it means setting Trust email on the Google provider and making Verify existing account by Email the only option. That is a security trade-off: anyone who controls a Google account with that email can link to the account without an email check.

  6. saqibmanan commented on Nov 26, 2026

    @saqibmanan
    ContributorAuthor

    Decision (option A): keep verify-by-email; it stays a security check. @UdayRajSahai2, please add a custom login-idp-link-email.ftl page in the redesign's style:

    • A design-style title and body in place of "Link Google", with no raw realm name. Say CivicDataSpace, and show the Google account's email, not its username.
    • Plain buttons or links in place of the two "Click here" links: resend the email, and continue if already verified in another browser.
    • The "Link Google" email subject and template, if the design covers emails.

    The flow itself doesn't change: after the email link, the user goes straight back to the app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions