A delegated authorization solution for smart-city mobile applications