GoogleCloudPlatform / ios-docs-samples

iOS samples that demonstrate APIs and services of Google Cloud Platform.
Apache License 2.0
328 stars 209 forks source link

Error 403 PERMISSION_DENIED #131

Closed CZhang1997 closed 4 years ago

CZhang1997 commented 4 years ago

Please execute this shell command then replace it with your console output.

OS

ProductName: Mac OS X ProductVersion: 10.14.6 BuildVersion: 18G95

POD

1.7.4

Project

dialogflow/stopwatch/Podfile /Users/churongzhang/XCode_Project/ios-docs-samples/dialogflow/stopwatch


Problem | Feature

I am trying to test the stopwatch app, after following the steps on Readme, the app is able to connect with firebase, but when it generates the ShortLivedAuthTokens it shows an error 403 on the firebase Database. The service account has 3 roles, which are Dialogflow API Client, Dialogflow API Reader, and Service Account Token Creator. do I need to put the service account credential to the firebase project directory?

Thank you very much!

Churong

CZhang1997 commented 4 years ago

"For your "App Engine Default Service Account" add the following IAM role: Service Account Token Creator"