    def get_login_url(self):
        """
        Support automatically logging in when JupyterHub is used as auth provider
        """
        if self.authenticator.auto_login_oauth2_authorize:
            return self.authenticator.login_url(self.hub.base_url)
        return super().get_login_url()
Support automatically logging in when JupyterHub is used as auth provider
jupyterhub/apihandlers/auth.py