Before the end of KH2, he could use dark portals.
KH3 is the only time he would need to use it and he was always teamed with Mickey who probably had his own
Don't you ruin my head canon you ninny.
Seriously though, its just funny... I have never actually thought how riku got around untill that one scene