Re: [Firebase] Firebase Auth with Google App Engine Go112 does not work

168 views
Skip to first unread message

Hiranya Jayathilaka

unread,
Oct 14, 2019, 5:41:10 PM10/14/19
to fireba...@googlegroups.com
This probably means the service account used by the App Engine instance lacks a required permission. If the service account was not discovered, I'd expect the SDK initialization to fail entirely. Go through the roles of the App Engine default service account and grant it the Firebase Admin role.

On Mon, Oct 14, 2019 at 1:32 PM Tomas Grubliauskas <v3nom...@gmail.com> wrote:
I am testing my Go application after some rewrite to support changes made for GO112 environment on Google App Engine. 
VerifyIDToken and VerifyIDTokenAndCheckRevoked no longer work and consistently return "message":"rpc error: code = PermissionDenied desc = Missing or insufficient permissions.". I suspect that Firebase can't discover the firebase service account anymore in the new environment. Anyone got it working? 

Slightly off topic: I really don't want to switch to key file and implement my own secret management, might as well drop App Engine while I am at it, so I would not need to rewrite my application again in the future.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/1ced1d6f-2d4d-4d0e-9e14-d412504adda6%40googlegroups.com.


--

Hiranya Jayathilaka | Software Engineer | h...@google.com | 650-203-0128

Tomas Grubliauskas

unread,
Oct 14, 2019, 7:14:27 PM10/14/19
to Firebase Google Group
Thanks. I discovered that datastore client was misconfigured in prod and it was not the Firebase Auth client. I was only seeing it in production, because locally datastore client takes configuration from the env variables and overrides user passed values.


On Monday, October 14, 2019 at 11:41:10 PM UTC+2, Hiranya Jayathilaka wrote:
This probably means the service account used by the App Engine instance lacks a required permission. If the service account was not discovered, I'd expect the SDK initialization to fail entirely. Go through the roles of the App Engine default service account and grant it the Firebase Admin role.

On Mon, Oct 14, 2019 at 1:32 PM Tomas Grubliauskas <v3nom...@gmail.com> wrote:
I am testing my Go application after some rewrite to support changes made for GO112 environment on Google App Engine. 
VerifyIDToken and VerifyIDTokenAndCheckRevoked no longer work and consistently return "message":"rpc error: code = PermissionDenied desc = Missing or insufficient permissions.". I suspect that Firebase can't discover the firebase service account anymore in the new environment. Anyone got it working? 

Slightly off topic: I really don't want to switch to key file and implement my own secret management, might as well drop App Engine while I am at it, so I would not need to rewrite my application again in the future.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fireba...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages