aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node_modules/@actions/http-client/lib/auth.d.ts
blob: 6b97ee817675137c964b46ece8e771e52d93c431 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import * as http from 'http';
import * as ifm from './interfaces';
import { HttpClientResponse } from './index';
export declare class BasicCredentialHandler implements ifm.RequestHandler {
    username: string;
    password: string;
    constructor(username: string, password: string);
    prepareRequest(options: http.RequestOptions): void;
    canHandleAuthentication(): boolean;
    handleAuthentication(): Promise<HttpClientResponse>;
}
export declare class BearerCredentialHandler implements ifm.RequestHandler {
    token: string;
    constructor(token: string);
    prepareRequest(options: http.RequestOptions): void;
    canHandleAuthentication(): boolean;
    handleAuthentication(): Promise<HttpClientResponse>;
}
export declare class PersonalAccessTokenCredentialHandler implements ifm.RequestHandler {
    token: string;
    constructor(token: string);
    prepareRequest(options: http.RequestOptions): void;
    canHandleAuthentication(): boolean;
    handleAuthentication(): Promise<HttpClientResponse>;
}