title: authorize google calendar api works on personal account but not on google domain account
body: <p>I need to make a Java application that stores calendar events in employees within a Google Domain.
  I created the application based on a sample I found on <a href="http://code.google.com/p/google-api-java-client/wiki/APIs#Calendar_API" rel="nofollow">http://code.google.com/p/google-api-java-client/wiki/APIs#Calendar_API</a></p>
  
  <p>Now I wanted to make it work on an account from the google domain and suddenly I'm stuck.
  I changed the client_secrets.json file with a new one. generated on code.google.com/apis/console for an installed application and now I get a invalid client error:</p>
  
  <p>ex = (com.google.api.client.auth.oauth2.TokenResponseException) com.google.api.client.auth.oauth2.TokenResponseException: 400 Bad Request
  {
    "error" : "unauthorized_client"
  }</p>
  
  <p>Do I need to do other steps for this? Also it needs to work on all accounts by default within the domain not the single account. Maybe other console? I hope not an other library.</p>