Particle acceleration in magnetized, relativistic outflows of astrophysical sources