title: Google OAuth2 PlayGround returns "Unauthorized Client"
body: <pre><code>    clientId = xxxxxx
      clientSecret = xxxxxxxx
      applicationHost = xxxxxxxxx
  </code></pre>
  
  <p>My authorization code request:</p>
  
  <pre><code>   OAuthClientRequest oAuthClientRequest = OAuthClientRequest
                  .authorizationProvider(OAuthProviderType.GOOGLE)
                  .setResponseType("code")
                  .setClientId(clientId)
                  .setParameter("access_type", "online")
                  .setRedirectURI(applicationHost + "auth/google/callback")
                  .setScope("https://www.googleapis.com/auth/plus.login")
                  .buildQueryMessage();
  
          response.sendRedirect(oAuthClientRequest.getLocationUri());
  </code></pre>
  
  <p>I am getting an authorization code with this. but whenever I send a request for the access_token using this code I am getting an error. (Code 400)</p>
  
  <p>My access_token request:</p>
  
  <pre><code>    OAuthClientRequest oAuthClientRequest = OAuthClientRequest
              .tokenProvider(OAuthProviderType.GOOGLE)
              .setGrantType(GrantType.AUTHORIZATION_CODE)
              .setClientId(clientId)
              .setClientSecret(clientSecret)
              .setParameter("access_type", "online")
              .setRedirectURI(applicationHost + "auth/google/callback")
              .setCode(code)
              .buildQueryMessage();
  
      GitHubTokenResponse oAuthResponse = oAuthClient.accessToken(
              oAuthClientRequest, GitHubTokenResponse.class);
      return oAuthResponse.getAccessToken();
  </code></pre>
  
  <p>OAuth2 Playground response:</p>
  
  <pre><code>    HTTP/1.1 400 Bad Request
      Alternate-protocol: 443:quic
      Content-length: 37
      X-xss-protection: 1; mode=block
      X-content-type-options: nosniff
      X-google-cache-control: remote-fetch
      -content-encoding: gzip
      Server: GSE
      Via: HTTP/1.1 GWA
      Pragma: no-cache
      Cache-control: no-cache, no-store, max-age=0, must-revalidate
      Date: Mon, 17 Feb 2014 09:03:52 GMT
      X-frame-options: SAMEORIGIN
      Content-type: application/json
      Expires: Fri, 01 Jan 1990 00:00:00 GMT
      {
         "error": "unauthorized_client"
      }
  </code></pre>
  
  <p>Please help me out. Thanks in advance.</p>