A controller (or a server with pre-installed appropriate software) that sets the action algorithm.
The key that carries the user ID.
A reader that distinguishes one or another identifier and transmits data to the controller.
A lock that unlocks automatic doors, gates, turnstiles, whatever.