Salesforce Interview Question

Explain how APIs can be secured with oauth2