Note that there are some explanatory texts on larger screens.

plurals
  1. POGoogle Plus Domains API AccessTokenRefreshError
    primarykey
    data
    text
    <p>I'm attempting to use the Google+ Domains API to provision circles for my Google Apps domain. I'm using domain-wide delegation as per <a href="https://developers.google.com/+/domains/authentication/delegation" rel="nofollow">https://developers.google.com/+/domains/authentication/delegation</a> which I have already used successfully for group, user and calendar provisioning. In the API console, I've added the Google+ API and Google+ Domains API to the API project. I've tried using both the pre-existing key, and generating a new one. When I attempt to run the following code:</p> <pre><code>service_account_email='somelongstring@developer.gserviceaccount.com' key=file("path/to/keyfile","rb").read() user_email='someroleaccount@mydomain.com' SCOPES_PLUS = [ 'https://www.googleapis.com/auth/plus.me', 'https://www.googleapis.com/auth/plus.stream.write', ] credentials = SignedJwtAssertionCredentials(service_account_email, key, scope=SCOPES_PLUS, sub=user_email) http = httplib2.Http() http = credentials.authorize(http) plus = build(serviceName='plus', version='v1domains', http=http) </code></pre> <p>I get</p> <pre><code>AccessTokenRefreshError: access_denied </code></pre> <p>when it hits the build() call.</p> <p>However, the exact same code (with different scopes and services) works for the directory service, groupssettings service and calendar service.</p> <p>I have tried with both a role account as the sub email address, and as my own (super-admin) account.</p> <p>Any ideas?</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.
    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