Not all Portugal riverside property is legal; many Portuguese riverfront properties risk being demolished under an old law, re-legislated in 2005 as the Water Resources Ownership law (law no. 54/2005) and finalised in 2014.
If a riverside property in Portugal is within 30 meters of the river, the owners will need to prove that the land was privately owned since 1864, which is nearly impossible to do.
If you are looking to buy (a) riverside Portugal property / properties, make sure the property itself is well beyond the 30 meter river water border line.
For examples of legal riverside Portugal properties, please see;
Spain / Portugal Waterfront Property