title: Xamarin Google Authentication
body: <p>I am attempting to implement backend server authentication for my App Service in Azure using Google.  I used the <a href="https://causerexception.com/2017/12/03/google-native-login-with-xamarin-forms/" rel="nofollow noreferrer">this</a> guide to implement authentication in my app.  It works until I  add in .RequestIdToken(serverClientId or .RequestServerAuthCode.</p>
  
  <pre><code> public GoogleManager()
      {
          Instance = this;
          String serverClientId = "XXXXXXXXXXXXX";
          GoogleSignInOptions gso = new 
          GoogleSignInOptions.Builder(GoogleSignInOptions.DefaultSignIn)
              .RequestEmail()                            
              .RequestServerAuthCode(serverClientId)
              .Build();
  
          _googleApiClient = new 
       GoogleApiClient.Builder(((MainActivity)Forms.Context).ApplicationContext)
              .AddConnectionCallbacks(this)
              .AddOnConnectionFailedListener(this)
              .AddApi(Auth.GOOGLE_SIGN_IN_API, gso)
              .AddScope(new Scope(Scopes.Profile))                
              .Build();
      }
  </code></pre>
  
  <p>I have verify that my ClientID and ClientSecret are the same in both Azure, GoogleAPIs, and the Xamarin App.  The will return GoogleApi will return a status code of 10 when it fails but I can't find any message that associates to that.  I believe it has something to do with the ClientId I provided. </p>