Throw an exception if authentication was attempted