0

Plumb API key for Fresnel service authorization.

API key will be used for authenticating device with Fresnel Oneplatform
API. This provides one layer of protection against unauthenticated
requests.

Googlers: go/cros-device-actives-client - See Authorization section

Bug: 1204630
Change-Id: I9dc9ea0391edd1057bc666c2c66c95a196ad0dd1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3069422
Commit-Queue: Hirthanan Subenderan <hirthanan@google.com>
Reviewed-by: David Roger <droger@chromium.org>
Cr-Commit-Position: refs/heads/main@{#947610}
This commit is contained in:
Hirthanan Subenderan
2021-12-02 19:22:17 +00:00
committed by Chromium LUCI CQ
parent 0f3ae90e19
commit 658abca48e
2 changed files with 18 additions and 0 deletions

@ -88,6 +88,9 @@ std::string GetSodaAPIKey();
// Retrieves the ReadAloud API Key.
std::string GetReadAloudAPIKey();
// Retrieves the Fresnel API Key.
std::string GetFresnelAPIKey();
#if defined(OS_IOS) || defined(OS_FUCHSIA)
// Sets the API key. This should be called as early as possible before this
// API key is even accessed. It must be called before GetAPIKey.