Pregunta de entrevista de Infosys

How authentication is done in REST APIs?