title: How do I test if provider credentials are valid in apache libcloud?
body: <p>I was trying to create a driver for openstack using apache libcloud. It doesn't raise any error even if the user credentials are wrong. So When i checked the faq i found an answer as given in the link
  <a href="http://ci.apache.org/projects/libcloud/docs/faq.html" rel="nofollow">Apache libcloud FAQ</a></p>
  
  <p>But it doesn't seem to be effective since querying each time to check whether the user is authenticated will reduce the performance if the query returns a bulk of data.</p>
  
  <p>When i checked the response i got from the api there is a field called <code>driver.connection.auth_user_info</code> and i found that the field is empty if the user is not authenticated. So can i use this method as a standard? Any help is appreciated </p>