[ENG-273] `INVITE_ONLY_SIGNUP`=`true` is ignored for GitHub Login
Author: ghostCreated Nov 30, 2023Updated Sep 27, 2026
Describe the bug
When the environment variable INVITE_ONLY_SIGNUP is set to true, new accounts can still be created if the Continue with GitHub button is configured and clicked.
To Reproduce
Steps to reproduce the behavior:
- Set
CLIENT_ID_GITHUB_LOGINandCLIENT_SECRET_GITHUB_LOGINto valid OAuth values from GitHub - Set
INVITE_ONLY_SIGNUPtotrue - Now, if you attempt to login using a GitHub account (i.e., one that has never been used on the infisical instance before) you are still authenticated, able to create an organization, reach the dashboard, etc.
Expected behavior
Setting INVITE_ONLY_SIGNUP = true should block all account sign-ups, not just the manual email/password ones.
Screenshots
n/a
Platform you are having the issue on:
- Docker build:
infisical/infisical:v0.41.1
Additional context
n/a
From SyncLinear.com | ENG-273
Source: Infisical/infisical