Configure the following environment variables in your server configuration or .env file to enable social logins:
# GitHub OAuth ConfigurationGITHUB_CLIENT_ID=your_github_client_idGITHUB_CLIENT_SECRET=your_github_client_secret# Google OAuth ConfigurationGOOGLE_CLIENT_ID=your_google_client_idGOOGLE_CLIENT_SECRET=your_google_client_secret# Optional: Force the redirect base URL (useful behind reverse proxies)RP_ORIGIN=https://your-admin-domain.com
If public registration is turned off (registrationOpen: false in System Settings):
Linked Accounts: Previously bound Google/GitHub accounts will continue to sign in normally.
Auto-binding: If an unlinked social login attempts to authenticate, and its primary email matches an existing local administrator account, AIGCS will automatically link them to protect access.
Strangers Blocked: Unrecognized accounts with no local profile or prior binding will be blocked from registering, and redirected to the login page with the warning: "Registration is closed. Please ask the administrator to create your account first, then bind it."