parse authentication response