mirror of
https://github.com/azure/login.git
synced 2026-03-15 09:20:56 -04:00
* Added OIDC support for login action (#147) * OIDC support for Powershell login (#156) * OIDC support ps (#155) ps login support * Update main.ts * formatting code * nit changes Co-authored-by: Balaga Gayatri <balaga-gayatri@github.com>
24 lines
1.2 KiB
TypeScript
24 lines
1.2 KiB
TypeScript
import ifm = require('./interfaces');
|
|
export declare class BasicCredentialHandler implements ifm.IRequestHandler {
|
|
username: string;
|
|
password: string;
|
|
constructor(username: string, password: string);
|
|
prepareRequest(options: any): void;
|
|
canHandleAuthentication(response: ifm.IHttpClientResponse): boolean;
|
|
handleAuthentication(httpClient: ifm.IHttpClient, requestInfo: ifm.IRequestInfo, objs: any): Promise<ifm.IHttpClientResponse>;
|
|
}
|
|
export declare class BearerCredentialHandler implements ifm.IRequestHandler {
|
|
token: string;
|
|
constructor(token: string);
|
|
prepareRequest(options: any): void;
|
|
canHandleAuthentication(response: ifm.IHttpClientResponse): boolean;
|
|
handleAuthentication(httpClient: ifm.IHttpClient, requestInfo: ifm.IRequestInfo, objs: any): Promise<ifm.IHttpClientResponse>;
|
|
}
|
|
export declare class PersonalAccessTokenCredentialHandler implements ifm.IRequestHandler {
|
|
token: string;
|
|
constructor(token: string);
|
|
prepareRequest(options: any): void;
|
|
canHandleAuthentication(response: ifm.IHttpClientResponse): boolean;
|
|
handleAuthentication(httpClient: ifm.IHttpClient, requestInfo: ifm.IRequestInfo, objs: any): Promise<ifm.IHttpClientResponse>;
|
|
}
|