[native] Pass CSAT to Blob service when fetching multimedia
Summary:
Modified fetchAndDecryptMedia() to accept authMetadata argument and pass it as Authorization header with Blob service requests.
Test Plan:
- Enabled encrypted media and blob service, sent a multimedia message
- Modified blob handlers the same way as in D10908 test plan
- Opened chat on native - the multimedia loads correctly, blob service logs contain auth metadata:
INFO get_blob{blob_hash=xn2ILjHR45XHsbjNf_wRalWNjusWtCNntiutX1eJn0w}: blob::http::handlers::blob: Get blob request auth=UserToken(UserIdentity { user_id: "foo", access_token: "baz", device_id: "9/Dk+21eU27n7fpvFDVWqNrouje2XKGW2jtLPC7vx+A" }) `
Reviewers: atul, tomek, inka, michal
Reviewed By: tomek
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D10910