Scott Bain went from putting up walls to hitting a brick one before he found his chance to construct an entirely different script.

The goalkeeper can write his name into Celtic folklore over the next week and has insisted “the two parties got what they deserved” after a torrid time at Dundee earlier this season.

The 26-year-old goalkeeper endured a personal nightmare in the opening months of the campaign after being frozen out at Dundee by Neil McCann. There were reports of a dressing room bust-up following a game against Hamilton last October and while Bain has always been coy on exactly what took place, there was little ambiguity about his remarks as he geared up for a push at Celtic’s number one shirt.

Read more: Celtic striker Leigh Griffiths set for bumper new deal as he hits back at internet trolls​

The stopper headed out to Hibs on a loan deal in January only for Celtic to step in following the injury to Craig Gordon and take him to Glasgow in the final hours of the transfer window.

“I don’t think I’ll ever thank him [McCann] for what was going on,” said Bain.

“The two parties probably got what they deserved out of what was going on at Dundee.

“Me sitting here and then finishing a mediocre season.

“It’s been a mad season.

“It happens all the time in football. I wouldn’t even call it a disagreement. I didn’t have a disagreement with anyone.

“But whatever went on, the manager wants you out of the door and wants you not to do well.

“You just have to stick by your guns and say you do not want to be treated that way.

“I knew something would come up in January. I knew with my ability that someone would want me as part of their team and I am grateful to Hibs that they wanted me and then again that Neil Lennon let me come and have this opportunity.

Read more: Celtic manager Brendan Rodgers wants to bring curtain down on league in style​

“I travelled with a couple of boys and I got a lot of support from the boys in the dressing room.

“Obviously, they know the full story of what went on, so I got a lot of support from the boys.

“I can look back and have a laugh about it.

“The boys that I travelled with stuck by me, but you have to look at yourself and know that you are going to come through it.

“Like I said, all parties got what they deserved.”

Not that there will be any looking over his shoulder from Bain.

Having put himself firmly in the picture at Celtic the keeper is now determined to kick on under Brendan Rodgers

“The manager here has taken me to another level already with his backing, with his coaching and with his belief in me and knowing that I can come into this club and can do a job for him whenever I am called upon,” reflected Bain. “With me being here for another four years, the only way is up for me I think.

“If you had told me at the start of the season that I was going to finish the season as a league winner and contributing, as little as it was to winning the league and potentially playing in a Scottish Cup final I would have said you were mad.

Read more: Celtic striker Leigh Griffiths set for bumper new deal as he hits back at internet trolls​

“But I think every game at this club is special. There are no easy games or games where you can take your foot off the gas because everyone wants to beat you. If I can play it is going to be an amazing end to an amazing season but if not it is a case of being there to push Craig on and push the rest of the team on.”

Bain joked that he almost turned up to sign his new deal at Celtic Park on Thursday afternoon sporting his Hibs tracksuit, a reference to his January signing night when he turned up at the club in the Easter Road training kit.

There will, though, be little doubting his affiliation as he takes his place between the sticks tomorrow afternoon as Celtic host a title party against Aberdeen.

At the minute Bain will not qualify for a league winner’s medal but it is something that the club can look it if they wish to request additional gongs for players. For the goalkeeper, though, it is all about living in the moment.

Read more: Celtic manager Brendan Rodgers wants to bring curtain down on league in style​

“We’ll see,” he said. “I will just be happy to enjoy the day on Sunday, something that I have never experienced before, whether a medal comes or not. Hopefully there’s four more years worth of medals to come.”

It is difficult to underplay just how significant Bain’s debut was for Celtic as he took the place of the injured Dorus de Vries and Craig Gordon for a 3-2 win at Ibrox, something that the player himself believes showed Rodgers that he had the required temperament to play with the Hoops.

“I think it was big for the manager to see,” he said. “It has been four months since I had played a game and it was big for the manager to see me. It isn’t an atmosphere that you can replicate, playing at Ibrox. It is a difficult game and a difficult venue and I think it showed him that my mentality is right for this club.”

Bain’s story, like that of Liverpool’s Andy Robertson, highlights the folly of writing players off before their careers have started. And the keeper hopes that his own story of being released by Aberdeen and starting over in the Third Division with Alloa offers hope to any kids who are currently on the receiving end of bad news.

“I think it is quite a cool time to sign this deal because for a lot of young boys this is the time of the season where you can learn that you are being released from a club,” he said. “I think it is important to play a lot of games so if you get released from a big club then you should go and play games at a lower league – someone will watch you if you are doing well. It is a good thing.

“You can knuckle down, put in the hours out in the hard work and you never know where it will take you.

“You can’t say that when I was with Alloa in the Third Division that I was thinking ‘oh, I could play for Celtic’ but I knew I had the ability to go through the leagues.”