Clarion Technologies interview question

How do you design an authentication system from scratch?