Moussa Dembele converted an injury-time penalty as Celtic beat Astana 2-1 at Parkhead to reach the Champions League play-offs.
Leigh Griffiths gave Brendan Rodgers' men the lead from the spot right at the end of the first half but Agim Ibraimi equalised from long range just after the hour mark.
After a 1-1 draw in Kazakhstan, extra time was looming but Dembele held his nerve after being brought down in the box to send Celtic into Friday's draw.
Their opponents in the next round will be one of Dinamo Zagreb, Ludogorets Razgrad, FC Copenhagen, Hapoel Beer-Sheva or Dundalk.