def check_whitelist(self, username):
        if not self.whitelist:
            # No whitelist means any name is allowed
            return True
        return username in self.whitelist
Check a username against our whitelist.
dataset/ETHPy150Open jupyterhub/jupyterhub/jupyterhub/auth.py/Authenticator.check_whitelist