mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
641ce142df
* SCIM - init (EE) * accept db transaction * sync * Content parser support for scim+json * patch scimmy * sync * return early if userIds is empty * sync * SCIM db table * fixes * scim tokens * backfill * feat(audit): add scim token events * rename scim migration * fix * fix translation * cleanup
31 lines
817 B
TypeScript
31 lines
817 B
TypeScript
import { Group, Stack, Text, TextInput } from "@mantine/core";
|
|
import { useTranslation } from "react-i18next";
|
|
import CopyTextButton from "@/components/common/copy.tsx";
|
|
|
|
export function ScimUrlPanel() {
|
|
const { t } = useTranslation();
|
|
const scimUrl = `${window.location.origin}/api/scim/v2`;
|
|
|
|
return (
|
|
<Stack gap="xs">
|
|
<Text size="sm" fw={500}>
|
|
{t("SCIM endpoint URL")}
|
|
</Text>
|
|
<Text size="xs" c="dimmed">
|
|
{t(
|
|
"Configure your identity provider with this URL to provision users and groups.",
|
|
)}
|
|
</Text>
|
|
<Group gap="xs" wrap="nowrap">
|
|
<TextInput
|
|
variant="filled"
|
|
style={{ flex: 1 }}
|
|
value={scimUrl}
|
|
readOnly
|
|
/>
|
|
<CopyTextButton text={scimUrl} />
|
|
</Group>
|
|
</Stack>
|
|
);
|
|
}
|