Hello Eric!

For your new service accounts, your code imports credentials from a stored 
JSON file, which is one of the possible alternatives, all of which should 
work well. 

How did you grant domain-wide access to your service account, exactly? 

Did you then implement the OAuth2WebServerFlow as described on the “OAuth 
2.0” page 
<https://developers.google.com/api-client-library/python/guide/aaa_oauth>? 

If you delegated domain-wide access to your service account successfully, 
you need to use the "delegated_credentials = 
credentials.*create_delegated*('[email protected]')" 
statement to impersonate a user with the service account, as indicated at 
the “Delegate domain-wide authority” paragraph on the “Using OAuth 2.0 for 
Server to Server Applications” page 
<https://developers.google.com/identity/protocols/OAuth2ServiceAccount>. 

I hope this helps for now. I’ll look at your code and try to reproduce the 
bug meanwhile, waiting for your reply. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/86b68c0c-7297-41ec-bf4f-f7eab91945c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to