the robotics club at CMU had this . . . just swipe your card, and it unlocks both the building door and the clubroom door, and also logged your visit . . . was pretty useful.
use a servo with karbonite gears to avoid repetitive wear . . .
oh, and make sure there is a backup method of getting in when there is a system failure . . .