#1207·infisical

[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:

  1. Set CLIENT_ID_GITHUB_LOGIN and CLIENT_SECRET_GITHUB_LOGIN to valid OAuth values from GitHub
  2. Set INVITE_ONLY_SIGNUP to true
  3. 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