started on adding openid login
This commit is contained in:
12
.env.example
12
.env.example
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user