started on adding openid login

This commit is contained in:
2026-01-28 12:13:04 -05:00
parent c6ff651f21
commit e03b291ca6
8 changed files with 191 additions and 47 deletions

View File

@@ -11,6 +11,18 @@ NEXTAUTH_SECRET=your-secret
NEXTAUTH_URL=http://localhost:3000
NEXT_PUBLIC_BASE_URL=http://localhost:3000
# OIDC Configuration (optional)
OIDC_ENABLED=true
OIDC_PROVIDER_NAME="Company SSO" # Display name for the button
OIDC_CLIENT_ID=your-oidc-client-id
OIDC_CLIENT_SECRET=your-oidc-client-secret
OIDC_ISSUER=https://your-oidc-provider.com/auth/realms/your-realm
# Optional: Role mapping
OIDC_ROLE_CLAIM=roles
OIDC_ADMIN_ROLES=admin,superuser
OIDC_PLANNER_ROLES=planner,editor
# SMTP (optional)
SMTP_HOST=smtpserver
SMTP_PORT=587