I'm taking my first steps with Vision ML and using the REST interface (https://vision.googleapis.com/v1/files:annotate). As API key I provide the key from the Firebase project settings. In the Authorization Bearer, I supply the token from Firebase-Auth after sign-in.
When accessing Annotate I get a 403 (Permission_Denied) error message back:
Error opening file: gs://######.appspot.com/MyFile.tiff.
The object is available in the corresponding bucket and it is not blocked due to the Firebase Storage rules.
Can I pass a Firebase token in this REST interface at all?
How do I make sure that the service account can access the storage?
Thank you for any hint
Author of FB4D GitHub Project (A Delphi Library for access Firebase Services via REST).