dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts@v1.0.2/clients/interfaces/authinjector.go (about) 1 // 2 // Copyright (C) 2022 Intel Corporation 3 // 4 // SPDX-License-Identifier: Apache-2.0 5 6 package interfaces 7 8 import ( 9 "net/http" 10 ) 11 12 // AuthenticationInjector defines an interface to obtain a JWT for remote service calls 13 type AuthenticationInjector interface { 14 // AddAuthenticationData mutates an HTTP request to add authentication data 15 // (suth as an Authorization: header) to an outbound HTTP request 16 AddAuthenticationData(_ *http.Request) error 17 }