Infosys Interview Question

How authentication is done in REST APIs?