Authority is a specific position occupied within an organisation. An organisation that has influence over the way you do things. Legitimacy is the right and acceptance of authority.
Authority without legitimacy is like a punch without power. You can keep throwing it. But at some point, people are going to notice that nothing much is happening.