endpoint to get and update onepassword token (#3089)

This commit is contained in:
Shuchang Zheng
2025-08-05 07:34:26 -07:00
committed by GitHub
parent 02576e5be3
commit 00c9446023
9 changed files with 420 additions and 186 deletions

View File

@@ -16,6 +16,7 @@ import {
} from "@/components/ui/card";
import { envCredential } from "@/util/env";
import { HiddenCopyableInput } from "@/components/ui/hidden-copyable-input";
import { OnePasswordTokenForm } from "@/components/OnePasswordTokenForm";
function Settings() {
const { environment, organization, setEnvironment, setOrganization } =
@@ -67,6 +68,25 @@ function Settings() {
<HiddenCopyableInput value={apiKey ?? "API key not found"} />
</CardContent>
</Card>
<Card>
<CardHeader className="border-b-2">
<CardTitle className="text-lg">1Password Integration</CardTitle>
<CardDescription>
Manage your 1Password service account token.{" "}
<a
href="https://developer.1password.com/docs/service-accounts/get-started/"
target="_blank"
rel="noopener noreferrer"
className="text-blue-600 underline"
>
Learn how to create a service account and get your token.
</a>
</CardDescription>
</CardHeader>
<CardContent className="p-8">
<OnePasswordTokenForm />
</CardContent>
</Card>
</div>
);
}