    def pre_spawn_start(self, user, spawner):
        """Hook called before spawning a user's server

        Can be used to do auth-related startup, e.g. opening PAM sessions.
        """
Hook called before spawning a user's server

Can be used to do auth-related startup, e.g. opening PAM sessions.
jupyterhub/auth.py