You mention Canada in your article, this all comes down to what police can and can not do in Canada (unlike the USA) as soon as you are on our soil, cleared or uncleared by customs, you have all the same rights, unlike the USA where you enter this sort of holding zone.
So ultimately this comes down to whether or not a police officer can ask for your password or not. as of right now, that is not legal without a warrant. In that case Mr. Philippon should have asked to see his lawyer immediately, which he did not do.
That being said he did have 5000$ cash, 2 cellphones, and his luggage swabbed positive for cocaine… so it’s not like getting a warrant would have been hard.