mirror of
https://github.com/bitbaum/datacat.git
synced 2026-12-04 04:27:33 +01:00
OrangeCat (OIDC) becomes the primary way into datacat on /login and /register; email + password stays behind a disclosure, and is the only form shown when the box has no OrangeCat client credentials. - next-auth v4 provider "orangecat": client_secret_post, PKCE + state, scope "openid profile email", issuer https://orangecat.ch (ORANGECAT_OAUTH_ISSUER overrides). Absent, not broken, while ORANGECAT_OAUTH_CLIENT_ID/_SECRET are unset. - Users keyed on the OIDC sub (new nullable unique users.orangecatSub). A new sub always creates a new user; it is never linked to an existing account by email (OrangeCat email_verified is untrustworthy). If the email is already held, the new user gets email NULL, so users.email becomes nullable. Additive migration only. - Identity only: no OrangeCat token is kept or refreshed. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
59 lines
2.0 KiB
Plaintext
59 lines
2.0 KiB
Plaintext
# Branding Configuration
|
|
# Set these environment variables to customize your branding
|
|
|
|
# Brand Identity
|
|
NEXT_PUBLIC_BRAND_NAME="Universal Form Builder"
|
|
NEXT_PUBLIC_BRAND_SHORT_NAME="FormBuilder"
|
|
NEXT_PUBLIC_BRAND_DESCRIPTION="AI-Ready Intake System - Modular Form Builder"
|
|
|
|
# Brand Assets
|
|
NEXT_PUBLIC_BRAND_LOGO="/logo.svg"
|
|
NEXT_PUBLIC_BRAND_FAVICON="/favicon.ico"
|
|
|
|
# Brand Colors
|
|
NEXT_PUBLIC_BRAND_PRIMARY_COLOR="#3B82F6"
|
|
NEXT_PUBLIC_BRAND_SECONDARY_COLOR="#1F2937"
|
|
NEXT_PUBLIC_BRAND_ACCENT_COLOR="#10B981"
|
|
|
|
# Brand Theme
|
|
NEXT_PUBLIC_BRAND_THEME="light"
|
|
|
|
# Use Case & Domain
|
|
NEXT_PUBLIC_BRAND_USE_CASE="Universal Intake"
|
|
NEXT_PUBLIC_BRAND_DOMAIN="formbuilder.com"
|
|
|
|
# Backend API
|
|
# Configure the base URL of the backend for auth/API calls
|
|
NEXT_PUBLIC_API_URL="http://localhost:5001"
|
|
|
|
# Quick Preset Selection
|
|
# Uncomment one of these to use a preset:
|
|
# NEXT_PUBLIC_BRAND_PRESET="hr"
|
|
# NEXT_PUBLIC_BRAND_PRESET="medical"
|
|
# NEXT_PUBLIC_BRAND_PRESET="legal"
|
|
# NEXT_PUBLIC_BRAND_PRESET="government"
|
|
# NEXT_PUBLIC_BRAND_PRESET="generic"
|
|
|
|
# API base for direct calls from the client (optional). If omitted, the app
|
|
# will use relative calls ("/api/..."), which are proxied to BACKEND_URL via
|
|
# Next.js rewrites configured in next.config.ts.
|
|
NEXT_PUBLIC_API_URL=""
|
|
|
|
# Backend base for server-side rewrite proxy (configured in next.config.ts).
|
|
# Example for prod: https://api.datacat.ch
|
|
# Example for local dev: http://localhost:5001
|
|
# Note: set this in your deployment environment (self-hosted on the bitbaum box).
|
|
# BACKEND_URL="http://localhost:5001"
|
|
|
|
# Core platform
|
|
DATABASE_URL="postgresql://user:password@host:5432/datacat"
|
|
NEXTAUTH_URL="http://localhost:3000"
|
|
NEXTAUTH_SECRET="replace-with-strong-secret"
|
|
|
|
# Sign in with OrangeCat (OIDC). Leave unset and the provider is simply absent:
|
|
# the sign-in page falls back to email + password. Client id is "datacat"; the
|
|
# redirect URI registered at OrangeCat is <NEXTAUTH_URL>/api/auth/callback/orangecat.
|
|
ORANGECAT_OAUTH_CLIENT_ID=""
|
|
ORANGECAT_OAUTH_CLIENT_SECRET=""
|
|
# ORANGECAT_OAUTH_ISSUER="https://orangecat.ch"
|