Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There are several things that you should check.</p> <p>First, is the private key file that you downloaded from the <a href="https://developers.google.com/console" rel="nofollow">Google APIs Console</a> in the correct path with your code? This file is referenced by the following variable. This needs to tell the OAuth client library where to find the file.</p> <pre><code>private static final String SERVICE_ACCOUNT_PKCS12_FILE_PATH = "/path/to/&lt;public_key_fingerprint&gt;-privatekey.p12"; </code></pre> <p>It is very important that you do not rename the file.</p> <p>Second, does your scope list in your code match the list of scopes set in the Admin console?</p> <p>The configuration in the Admin console for your Google Apps domain, and the scopes provided in the request must be <em>identical</em>. Try adjusting the <code>SCOPE</code> variable <strong>in your code</strong> to be:</p> <pre><code>private static final List&lt;String&gt; SCOPE = Arrays.asList( "https://www.googleapis.com/auth/plus.me", "https://www.googleapis.com/auth/plus.circles.read", "https://www.googleapis.com/auth/plus.circles.write", "https://www.googleapis.com/auth/plus.media.upload", "https://www.googleapis.com/auth/plus.stream.read", "https://www.googleapis.com/auth/plus.stream.write"); </code></pre> <p>In general, it is best to only request the scopes that you will need, rather than all scopes available.</p> <p>Third, make sure that the client ID you generated is the one listed on the Admin console entry that specifies the scopes permitted.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload