diff --git a/src/components/proxy-hosts/AuthentikFields.tsx b/src/components/proxy-hosts/AuthentikFields.tsx index 5a3c0b90..ed1c5abe 100644 --- a/src/components/proxy-hosts/AuthentikFields.tsx +++ b/src/components/proxy-hosts/AuthentikFields.tsx @@ -1,8 +1,11 @@ - -import { Box, Checkbox, Collapse, FormControlLabel, Stack, Switch, TextField, Typography } from "@mui/material"; +import { Checkbox } from "@/components/ui/checkbox"; +import { Input } from "@/components/ui/input"; +import { Switch } from "@/components/ui/switch"; +import { Textarea } from "@/components/ui/textarea"; +import { cn } from "@/lib/utils"; import { useState } from "react"; -import { AuthentikSettings } from "@/src/lib/settings"; -import { ProxyHost } from "@/src/lib/models/proxy-hosts"; +import { AuthentikSettings } from "@/lib/settings"; +import { ProxyHost } from "@/lib/models/proxy-hosts"; const AUTHENTIK_DEFAULT_HEADERS = [ "X-Authentik-Username", @@ -35,26 +38,28 @@ function HiddenCheckboxField({ helperText?: string; }) { return ( - +
- - } - label={{label}} - disabled={disabled} - /> +
+ + +
{helperText && ( - +

{helperText} - +

)} - +
); } @@ -77,90 +82,86 @@ export function AuthentikFields({ const setHostHeaderDefault = initial?.setOutpostHostHeader ?? true; return ( - +
- - - - - Authentik Forward Auth - - - Proxy authentication via Authentik outpost - - +
+
+
+

Authentik Forward Auth

+

Proxy authentication via Authentik outpost

+
setEnabled(checked)} + onCheckedChange={setEnabled} /> - +
- - - - - {/* ... other fields ... */} - - - - +
+
+
+ + +
+
+ + +
+
+ + +
+
+ +