Infosys interview question

How authentication is done in REST APIs?