Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Provide headers required for Firestore emulator. #2239

Merged
merged 1 commit into from
Aug 8, 2019
Merged

Fix: Provide headers required for Firestore emulator. #2239

merged 1 commit into from
Aug 8, 2019

Conversation

jdpedrie
Copy link
Contributor

@jdpedrie jdpedrie commented Aug 8, 2019

Fixes #2197 by adding a dummy Authorization header to firestore requests when the emulator is enabled (as discussed here and here). Also allows custom headers to be passed to grpc calls in the Firestore client.

@jdpedrie jdpedrie added the api: firestore Issues related to the Firestore API. label Aug 8, 2019
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 8, 2019
@codecov
Copy link

codecov bot commented Aug 8, 2019

Codecov Report

Merging #2239 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##             master   #2239      +/-   ##
===========================================
+ Coverage      92.6%   92.6%   +<.01%     
- Complexity     4451    4452       +1     
===========================================
  Files           307     307              
  Lines         13271   13273       +2     
===========================================
+ Hits          12290   12292       +2     
  Misses          981     981
Impacted Files Coverage Δ Complexity Δ
Firestore/src/Connection/Grpc.php 98.59% <100%> (+0.04%) 13 <2> (+1) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2bb362e...bc93736. Read the comment docs.

@dwsupplee
Copy link
Contributor

Thanks @jdpedrie 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the Firestore API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Permission Denied "Metadata operations require admin authentication" against Firestore Emulator
3 participants