Whenever you're ready, walk me through how you'd approach this.
What is your approach to designing secure APIs, and how do you handle authentication and authorization vulnerabilities? Explain how you would identify threats, select authentication and authorization controls, validate inputs, protect secrets, and secure error handling. Include how you would test the controls and respond if an authentication or authorization weakness were discovered.