serviceClientCredentials.ts 524 B

1234567891011121314
  1. // Copyright (c) Microsoft Corporation. All rights reserved.
  2. // Licensed under the MIT License. See License.txt in the project root for license information.
  3. import { WebResource } from "../webResource";
  4. export interface ServiceClientCredentials {
  5. /**
  6. * Signs a request with the Authentication header.
  7. *
  8. * @param {WebResource} webResource The WebResource/request to be signed.
  9. * @returns {Promise<WebResource>} The signed request object;
  10. */
  11. signRequest(webResource: WebResource): Promise<WebResource>;
  12. }