add an authentication endpoint.