From 828979aeaed338860a7845e3f3f1ab6547aaa99f Mon Sep 17 00:00:00 2001 From: Owen Cabalceta Date: Wed, 8 Jan 2025 11:26:58 -0500 Subject: [PATCH] feat: introduce ancla's auth interface - once #271 is merged, `chrysom/acquire` will replace `bascule` - `chrysom/acquire` will allow the user to provide there own auth implementation instead of ancla relying on `bascule` - `chrysom/acquire` will be integrated once #271 is merged --- chrysom/acquire.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 chrysom/acquire.go diff --git a/chrysom/acquire.go b/chrysom/acquire.go new file mode 100644 index 0000000..b8f139a --- /dev/null +++ b/chrysom/acquire.go @@ -0,0 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +// SPDX-License-Identifier: Apache-2.0 + +package chrysom + +// Acquirer adds an authorization header and value to a given http request. +type Acquirer interface { + Acquire() (string, error) +}