title: Google Login with Auth Token on Android (GoogleSignInOptions.Builder().requestIdToken() doesnt work)
body: <p>i want to log in to my google account in my app. this here works well: <a href="https://developers.google.com/identity/sign-in/android/sign-in#configure_google_sign-in_and_the_googleapiclient_object" rel="nofollow">https://developers.google.com/identity/sign-in/android/sign-in#configure_google_sign-in_and_the_googleapiclient_object</a>, but if i try to request the idtoken, it doesn't work. changing</p>
  
  <pre><code>GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
                  .build();
  </code></pre>
  
  <p>to</p>
  
  <pre><code>GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
                  .requestIdToken("somelettersandnumbers.apps.googleusercontent.com")
                  .build();
  </code></pre>
  
  <p>after clicking the login button the log of this code</p>
  
  <pre><code>    @Override
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
      Log.i(TAG, "on activity result " + requestCode);
      if (requestCode == RC_SIGN_IN) {
          GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(data);
          Log.i(TAG, "on activity result " + requestCode + " success: " + result.isSuccess());
          handleSignInResult(result);
      }
  }
  
  private void handleSignInResult(GoogleSignInResult result) {
      Log.i(TAG, "handleSignInResult: " + result.isSuccess());
      if (result.isSuccess()) {
          GoogleSignInAccount acct = result.getSignInAccount();
          Intent intent = new Intent(this, MainActivity.class);
          intent.putExtra(ACCOUNT_INFO, acct);
          startActivity(intent);
      }
  }
  </code></pre>
  
  <p>says: </p>
  
  <pre><code>on activity result 9001
  on activity result 9001 success: false
  handleSignInResult: false
  </code></pre>
  
  <p>why doesn't it log in, when i ask for requestidtoken? i need it for authentification with my websevice.</p>
  
  <p>i got "somelettersandnumbers.apps.googleusercontent.com" like this: <a href="https://developers.google.com/identity/sign-in/android/start-integrating#get_your_backend_servers_oauth_20_client_id" rel="nofollow">https://developers.google.com/identity/sign-in/android/start-integrating#get_your_backend_servers_oauth_20_client_id</a>. do i only need the client-id, not the client-key?</p>