mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-17 10:11:31 +10:00
Implement OpenID Connect Authentication Strategy (works with Keycloak, Authentik etc.)
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { t } from "@lingui/macro";
|
||||
import { GithubLogo, GoogleLogo } from "@phosphor-icons/react";
|
||||
import { Fingerprint, GithubLogo, GoogleLogo } from "@phosphor-icons/react";
|
||||
import { Button } from "@reactive-resume/ui";
|
||||
|
||||
import { useAuthProviders } from "@/client/services/auth/providers";
|
||||
@ -32,6 +32,19 @@ export const SocialAuth = () => {
|
||||
</a>
|
||||
</Button>
|
||||
)}
|
||||
|
||||
{providers.includes("openid") && (
|
||||
<Button
|
||||
asChild
|
||||
size="lg"
|
||||
className="w-full !bg-[#dc2626] !text-white hover:!bg-[#dc2626]/80"
|
||||
>
|
||||
<a href="/api/auth/openid">
|
||||
<Fingerprint className="mr-3 size-4" />
|
||||
{t`OpenID`}
|
||||
</a>
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user