Make Project Keys more visible
Some checks failed
all-good: Did all the other checks pass? / all-good (push) Has been cancelled
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Server Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Server Test / docker (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Runs E2E API Tests with custom port prefix / build (22.x) (push) Has been cancelled
Runs E2E API Tests with external source of truth / build (22.x) (push) Has been cancelled
Lint & build / lint_and_build (latest) (push) Has been cancelled
Dev Environment Test With Custom Base Port / restart-dev-and-test-with-custom-base-port (push) Has been cancelled
Dev Environment Test / restart-dev-and-test (push) Has been cancelled
Run setup tests / setup-tests (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled

This commit is contained in:
Konstantin Wohlwend 2025-11-30 00:41:37 -08:00
parent dc7337743b
commit eb5e1cb28d
3 changed files with 12 additions and 1 deletions

View File

@ -259,7 +259,6 @@ export async function createOrUpdateProjectWithLegacyConfig(
configOverrideOverride['apps.installed.authentication.enabled'] ??= true;
configOverrideOverride['apps.installed.emails.enabled'] ??= true;
configOverrideOverride['apps.installed.api-keys.enabled'] ??= true;
}
await overrideEnvironmentConfigOverride({
projectId: projectId,

View File

@ -1,4 +1,5 @@
"use client";
import { StyledLink } from "@/components/link";
import { SettingCard, SettingSwitch } from "@/components/settings";
import { Typography } from "@stackframe/stack-ui";
import { AppEnabledGuard } from "../app-enabled-guard";
@ -12,6 +13,13 @@ export default function PageClient() {
return (
<AppEnabledGuard appId="api-keys">
<PageLayout title="API Keys" description="Configure API key settings for your project">
<span className="bg-blue-500/10 p-4 rounded-lg border">
Note: This app allows your users to create API keys for their accounts and teams. It is helpful if you have your own API that you would like to secure with Stack Auth.<br /><br />
If you are looking to create or manage keys for your Stack Auth project, head over to the <StyledLink href={`/projects/${project.id}/project-keys`}>Project Keys</StyledLink> settings.<br /><br />
For more information, see the <StyledLink href="https://docs.stack-auth.com/docs/apps/api-keys">API Keys docs</StyledLink>.
</span>
<SettingCard
title="API Key Settings"
description="Configure which types of API keys are allowed in your project."

View File

@ -160,6 +160,10 @@ export default function PageClient() {
value={project.id}
/>
<span className="text-xs text-muted-foreground">
NOTE: Looking for project API keys? Head over to the <StyledLink href={`/projects/${project.id}/project-keys`}>Project Keys</StyledLink> page.
</span>
<SettingCopyableText
label={renderInfoLabel("JWKS URL", "Use this url to allow other services to verify Stack Auth-issued sessions for this project.")}
value={jwksUrl}