Skip to content

Commit

Permalink
feat(keycloakify): improve ORCid sign in UX (#1204)
Browse files Browse the repository at this point in the history
* orcidLogo

* Update Login.tsx

* Remove docker caching

* Update config-preprocessor-build.yml
  • Loading branch information
theosanderson committed Feb 29, 2024
1 parent e4e56ba commit aae283d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion keycloak/keycloakify/src/login/pages/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type { PageProps } from "keycloakify/login/pages/PageProps";
import { useGetClassName } from "keycloakify/login/lib/useGetClassName";
import type { KcContext } from "../kcContext";
import type { I18n } from "../i18n";
import orcidLogoUrl from "../assets/orcid-logo.png";

const my_custom_param = new URL(window.location.href).searchParams.get("my_custom_param");

Expand Down Expand Up @@ -191,7 +192,7 @@ export default function Login(props: PageProps<Extract<KcContext, { pageId: "log
{social.providers.map(p => (
<li key={p.providerId} className={getClassName("kcFormSocialAccountListLinkClass")}>
<a href={p.loginUrl} id={`zocial-${p.alias}`} className={clsx("zocial", p.providerId)}>
<span>{p.displayName}</span>
<span><img src={orcidLogoUrl} alt="ORCID logo" width={50} /> Sign in with {p.displayName}</span>
</a>
</li>
))}
Expand Down

0 comments on commit aae283d

Please sign in to comment.