An authentication example written with Cuba