Though that government has been recognized by the United Nations as the legitimate authority in Somalia , its power barely extends to the municipal limits of Baidoa , the inland town where it is based .