1 | import type { ODataRequest, ODataRequestConfig } from '../../odata-common';
|
2 | import { Destination } from './destination';
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | export declare function addAuthorizationHeader<RequestT extends ODataRequestConfig>(request: ODataRequest<RequestT>, headers: Record<string, string>): Promise<Record<string, string>>;
|
11 | export declare function getAuthHeaders(destination: Destination, customHeaders?: Record<string, any>): Promise<AuthenticationHeaders>;
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | export declare function buildAndAddAuthorizationHeader(destination: Destination): (headers: Record<string, any>) => Promise<Record<string, string>>;
|
20 | export declare function basicHeader(username: string, password: string): string;
|
21 | interface AuthenticationHeaderCloud {
|
22 | authorization: string;
|
23 | }
|
24 | interface AuthenticationHeaderOnPrem {
|
25 | 'SAP-Connectivity-Authentication': string;
|
26 | }
|
27 | interface AuthenticationHeaders {
|
28 | authorization?: string;
|
29 | 'Proxy-Authorization'?: string;
|
30 | 'SAP-Connectivity-Authentication'?: string;
|
31 | }
|
32 | export declare function buildAuthorizationHeaders(destination: Destination, customAuthHeader?: AuthenticationHeaderCloud | AuthenticationHeaderOnPrem): Promise<AuthenticationHeaders>;
|
33 | export {};
|
34 |
|
\ | No newline at end of file |