Skip to content

Commit 1f3a0a8

Browse files
feat: add OpenID Connect options to login screen
1 parent 10375b5 commit 1f3a0a8

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/components/Login/index.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,21 @@ const Login = () => {
161161
</Button>
162162
))
163163
)),
164+
...settings.currentSettings.openIdProviders.map((provider) => (
165+
<Button
166+
as="a"
167+
href={`/api/v1/auth/oidc/login/${provider.slug}`}
168+
className="flex-1 bg-transparent"
169+
>
170+
{/* eslint-disable-next-line @next/next/no-img-element */}
171+
<img
172+
src={provider.logo}
173+
alt={provider.name}
174+
className="mr-2 max-h-5 w-5"
175+
/>
176+
<span>{provider.name}</span>
177+
</Button>
178+
)),
164179
].filter((o): o is JSX.Element => !!o);
165180

166181
return (

0 commit comments

Comments
 (0)