And a related issue. I have some code that this app successfully uses to 
connect to the google analytics API. I tweaked that code for firebase as 
follows:

  from oauth2client.service_account import ServiceAccountCredentials
  from httplib2 import Http
  credentials = ServiceAccountCredentials.from_json_keyfile_name(
      CLIENT_SECRETS, 
scopes=['https://www.googleapis.com/auth/firebase.database', 
'https://www.googleapis.com/auth/userinfo.email'])
  http = Http()
  http_auth = credentials.authorize(http)

But that gives 401 errors. I would guess that I need to enabled an API on the 
console, but I can’t figure out which one to enable. I enabled “Firebase 
Storage” but that didn’t help.

What API do I need to enable to get that scope authorized?

-Joshua

> On Jan 10, 2020, at 3:19 PM, Joshua Smith <[email protected]> wrote:
> 
> This looks very promising, and I’m playing with it now. Getting the 
> permissions set up is hard, though.
> 
> At first, I simply tried to create a firebase project associated with the GAE 
> project that’s going to dump data there. I was able to do that, but it won’t 
> let me create a realtime database because my GAE project has a database of 
> its own.
> 
> So then I tried creating a brand new thing. And that works, except I can’t 
> figure out how to give my GAE project permission to read/write to it. If I 
> try to add it’s “@appspot.gserviceaccount.com” email as a User with Editor 
> permission, it just gives an error.
> 
> Any idea how I can give my GAE project permission to authenticate against a 
> different Firebase project?
> 
> -Joshua
> 
>> On Jan 10, 2020, at 9:51 AM, 'Olu' via Google App Engine 
>> <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> I think using Firebase Realtime Database to send real-time updates might be 
>> applicable in your setup and it works well with App Engine(Standard). I 
>> suggest you go through this doc[1].
>> 
>> [1]https://cloud.google.com/solutions/using-firebase-real-time-events-app-engine
>>  
>> <https://cloud.google.com/solutions/using-firebase-real-time-events-app-engine>
>> 
>> -- 
>> 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] 
>> <mailto:[email protected]>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/602eb9d0-d46f-45cd-91dd-a59eddd0ef88%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-appengine/602eb9d0-d46f-45cd-91dd-a59eddd0ef88%40googlegroups.com?utm_medium=email&utm_source=footer>.
> 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/C8182E97-7F5B-4F5B-92D8-70338A917C86%40gmail.com.

Reply via email to