Dear 
@Emma95, 
thank you for your question in the community. 
As for your question it has been asked and answered already, please follow the link: 
https://***.wefugees.de/102031/asylum-to-canada-while-on-transit
I hope it answers the questions, if you need further guidance please do not hesitate to reach out to the community. 
Best regards, 
Nilab