1 | /**
|
2 | * -------------------------------------------------------------------------------------------
|
3 | * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
|
4 | * See License in the project root for license information.
|
5 | * -------------------------------------------------------------------------------------------
|
6 | */
|
7 | /**
|
8 | * @module CustomAuthenticationProvider
|
9 | */
|
10 | import { AuthenticationProvider } from "./IAuthenticationProvider";
|
11 | import { AuthProvider } from "./IAuthProvider";
|
12 | /**
|
13 | * @class
|
14 | * Class representing CustomAuthenticationProvider
|
15 | * @extends AuthenticationProvider
|
16 | */
|
17 | export declare class CustomAuthenticationProvider implements AuthenticationProvider {
|
18 | /**
|
19 | * @private
|
20 | * A member to hold authProvider callback
|
21 | */
|
22 | private provider;
|
23 | /**
|
24 | * @public
|
25 | * @constructor
|
26 | * Creates an instance of CustomAuthenticationProvider
|
27 | * @param {AuthProviderCallback} provider - An authProvider function
|
28 | * @returns An instance of CustomAuthenticationProvider
|
29 | */
|
30 | constructor(provider: AuthProvider);
|
31 | /**
|
32 | * @public
|
33 | * @async
|
34 | * To get the access token
|
35 | * @returns The promise that resolves to an access token
|
36 | */
|
37 | getAccessToken(): Promise<any>;
|
38 | }
|