title: GoogleAuthException from GoogleAuthUtil.getToken() for scope oauth2:https://www.googleapis.com/auth/userinfo.profile
body: <p>I am trying to obtain basic user info using Android Google-play-services library. I started with the sample project that comes with the SDK : <code>sdk\extras\google\google_play_services\samples\auth</code>.
  It runs fine. My account authenticates and I can retrieve my public user info.</p>
  
  <p>The problem starts when I rename the project from <code>com.google.android.gms.auth.sample.helloauth</code> to <code>com.mydomain.myapp</code> - <code>GoogleAuthUtil.getToken()</code> throws <code>GoogleAuthException</code>. Naturally one would think there is a problem with credentials. However, I am not able to find one. In the developers console I have Google Play Android Developer API turned on, and under Credentials:</p>
  
  <pre><code>Client ID for Android application
  Client ID   XXXXX.apps.googleusercontent.com
  Redirect URIs
  urn:ietf:wg:oauth:2.0:oob
  http://localhost
  Package name    com.mydomain.myapp
  Certificate fingerprint (SHA1)  XX:YY:ZZ:70:aa:57:f4:b2:3e:9b:b3:08:16:c5:19:45:2e:18:f8:5d
  Deep linking    Enabled
  </code></pre>
  
  <p>and my fingerprint is correct. (It works fine for other APIs such as Google maps). How do I debug this problem?</p>
  
  <p><strong>EDIT:</strong> I have the exact same problem with the newer Google+ scope (<a href="https://www.googleapis.com/auth/plus.login" rel="nofollow">https://www.googleapis.com/auth/plus.login</a>)</p>