Deciding, this is who I am, I stand with my fellow humans that suffer under oppression? If you don't first claim that identity, how can you do anything?
Yeah, maybe not the literal label ally, if we want to split hairs, but the path to solidarity begins with identifying as a person that rejects inequality.
You can't just claim the label without backing it by action, but that's anything really.