Manish Patiyal Manish Patiyal - 1 year ago 682
Android Question

Firebase Service Account Credentials Json Read permission denied

I downloaded my service account credential json file from Firebase console placed it earlier in the main directory of GAE endpoint project when I run my backed locally it gives Security exception. access denied ("" "\src\main\secret.json" "read")

I tried placing the .json file under the src directory also but no help.

Answer Source

Finally, I found the solution, Its written under the APIs and references section of Google App Engine in this link, that we need to add such files in the appengine-web.xml file under the <resource-files> tag, using <include path=""/> property. After doing so its works for me. I placed the .json file containing project credentials in the WEB-INF directory and then entered its relative path in <resource-files> tag.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download