Inspectorio interview question

How do authentication and authorization work?