@equinor/fusion-framework-module-msal 5.1.1 → 6.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +109 -0
- package/README.md +237 -40
- package/dist/esm/MsalClient.interface.js +2 -0
- package/dist/esm/MsalClient.interface.js.map +1 -0
- package/dist/esm/MsalClient.js +215 -0
- package/dist/esm/MsalClient.js.map +1 -0
- package/dist/esm/MsalConfigurator.js +248 -0
- package/dist/esm/MsalConfigurator.js.map +1 -0
- package/dist/esm/MsalProvider.interface.js +2 -0
- package/dist/esm/MsalProvider.interface.js.map +1 -0
- package/dist/esm/MsalProvider.js +525 -0
- package/dist/esm/MsalProvider.js.map +1 -0
- package/dist/esm/MsalProxyProvider.interface.js +2 -0
- package/dist/esm/MsalProxyProvider.interface.js.map +1 -0
- package/dist/esm/__tests__/versioning/resolve-version.test.js +29 -38
- package/dist/esm/__tests__/versioning/resolve-version.test.js.map +1 -1
- package/dist/esm/create-client-log-callback.js +87 -0
- package/dist/esm/create-client-log-callback.js.map +1 -0
- package/dist/esm/create-proxy-provider.js +84 -0
- package/dist/esm/create-proxy-provider.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/module.js +64 -16
- package/dist/esm/module.js.map +1 -1
- package/dist/esm/static.js +32 -2
- package/dist/esm/static.js.map +1 -1
- package/dist/esm/types.js +9 -0
- package/dist/esm/types.js.map +1 -1
- package/dist/esm/util/compare-origin.js +11 -0
- package/dist/esm/util/compare-origin.js.map +1 -0
- package/dist/esm/{v2/client/util/url.js → util/normalize-uri.js} +1 -10
- package/dist/esm/util/normalize-uri.js.map +1 -0
- package/dist/esm/{v2/client/util/browser.js → util/redirect.js} +1 -1
- package/dist/esm/util/redirect.js.map +1 -0
- package/dist/esm/v2/IAuthClient.interface.js +2 -0
- package/dist/esm/v2/IAuthClient.interface.js.map +1 -0
- package/dist/esm/v2/IPublicClientApplication.interface.js +2 -0
- package/dist/esm/v2/IPublicClientApplication.interface.js.map +1 -0
- package/dist/esm/v2/MsalProvider.interface.js +2 -0
- package/dist/esm/v2/MsalProvider.interface.js.map +1 -0
- package/dist/esm/v2/create-proxy-client.js +155 -0
- package/dist/esm/v2/create-proxy-client.js.map +1 -0
- package/dist/esm/v2/create-proxy-provider.js +140 -0
- package/dist/esm/v2/create-proxy-provider.js.map +1 -0
- package/dist/esm/v2/map-account-info.js +18 -0
- package/dist/esm/v2/map-account-info.js.map +1 -0
- package/dist/esm/v2/map-authentication-result.js +22 -0
- package/dist/esm/v2/map-authentication-result.js.map +1 -0
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/esm/versioning/resolve-version.js +28 -16
- package/dist/esm/versioning/resolve-version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/MsalClient.d.ts +141 -0
- package/dist/types/MsalClient.interface.d.ts +103 -0
- package/dist/types/MsalConfigurator.d.ts +147 -0
- package/dist/types/MsalProvider.d.ts +291 -0
- package/dist/types/MsalProvider.interface.d.ts +159 -0
- package/dist/types/MsalProxyProvider.interface.d.ts +52 -0
- package/dist/types/create-client-log-callback.d.ts +38 -0
- package/dist/types/create-proxy-provider.d.ts +19 -0
- package/dist/types/index.d.ts +5 -4
- package/dist/types/module.d.ts +70 -4
- package/dist/types/static.d.ts +32 -1
- package/dist/types/types.d.ts +14 -6
- package/dist/types/util/redirect.d.ts +1 -0
- package/dist/types/v2/IAuthClient.interface.d.ts +68 -0
- package/dist/types/v2/IPublicClientApplication.interface.d.ts +68 -0
- package/dist/types/v2/MsalProvider.interface.d.ts +85 -0
- package/dist/types/v2/create-proxy-client.d.ts +22 -0
- package/dist/types/v2/create-proxy-provider.d.ts +24 -0
- package/dist/types/v2/map-account-info.d.ts +9 -0
- package/dist/types/v2/map-authentication-result.d.ts +9 -0
- package/dist/types/v2/types.d.ts +12 -0
- package/dist/types/version.d.ts +1 -1
- package/dist/types/versioning/resolve-version.d.ts +1 -1
- package/package.json +11 -6
- package/src/MsalClient.interface.ts +121 -0
- package/src/MsalClient.ts +274 -0
- package/src/MsalConfigurator.ts +289 -0
- package/src/MsalProvider.interface.ts +175 -0
- package/src/MsalProvider.ts +597 -0
- package/src/MsalProxyProvider.interface.ts +71 -0
- package/src/__tests__/versioning/resolve-version.test.ts +29 -42
- package/src/create-client-log-callback.ts +101 -0
- package/src/create-proxy-provider.ts +89 -0
- package/src/index.ts +6 -7
- package/src/module.ts +88 -20
- package/src/static.ts +32 -3
- package/src/types.ts +15 -7
- package/src/util/compare-origin.ts +11 -0
- package/src/{v2/client/util/url.ts → util/normalize-uri.ts} +0 -10
- package/src/v2/IAuthClient.interface.ts +91 -0
- package/src/v2/IPublicClientApplication.interface.ts +71 -0
- package/src/v2/MsalProvider.interface.ts +92 -0
- package/src/v2/create-proxy-client.ts +186 -0
- package/src/v2/create-proxy-provider.ts +156 -0
- package/src/v2/map-account-info.ts +20 -0
- package/src/v2/map-authentication-result.ts +24 -0
- package/src/v2/types.ts +12 -0
- package/src/version.ts +1 -1
- package/src/versioning/resolve-version.ts +35 -28
- package/tsconfig.json +3 -0
- package/dist/esm/v2/client/behavior.js +0 -5
- package/dist/esm/v2/client/behavior.js.map +0 -1
- package/dist/esm/v2/client/client.js +0 -142
- package/dist/esm/v2/client/client.js.map +0 -1
- package/dist/esm/v2/client/create-auth-client.js +0 -36
- package/dist/esm/v2/client/create-auth-client.js.map +0 -1
- package/dist/esm/v2/client/index.js +0 -5
- package/dist/esm/v2/client/index.js.map +0 -1
- package/dist/esm/v2/client/log/console.js +0 -45
- package/dist/esm/v2/client/log/console.js.map +0 -1
- package/dist/esm/v2/client/request.js +0 -2
- package/dist/esm/v2/client/request.js.map +0 -1
- package/dist/esm/v2/client/util/browser.js.map +0 -1
- package/dist/esm/v2/client/util/url.js.map +0 -1
- package/dist/esm/v2/configurator.js +0 -42
- package/dist/esm/v2/configurator.js.map +0 -1
- package/dist/esm/v2/index.js +0 -3
- package/dist/esm/v2/index.js.map +0 -1
- package/dist/esm/v2/provider.js +0 -115
- package/dist/esm/v2/provider.js.map +0 -1
- package/dist/types/v2/client/behavior.d.ts +0 -13
- package/dist/types/v2/client/client.d.ts +0 -89
- package/dist/types/v2/client/create-auth-client.d.ts +0 -27
- package/dist/types/v2/client/index.d.ts +0 -5
- package/dist/types/v2/client/log/console.d.ts +0 -28
- package/dist/types/v2/client/request.d.ts +0 -65
- package/dist/types/v2/configurator.d.ts +0 -32
- package/dist/types/v2/index.d.ts +0 -2
- package/dist/types/v2/provider.d.ts +0 -59
- package/src/v2/client/behavior.ts +0 -14
- package/src/v2/client/client.ts +0 -180
- package/src/v2/client/create-auth-client.ts +0 -48
- package/src/v2/client/index.ts +0 -8
- package/src/v2/client/log/console.ts +0 -58
- package/src/v2/client/request.ts +0 -66
- package/src/v2/configurator.ts +0 -58
- package/src/v2/index.ts +0 -2
- package/src/v2/provider.ts +0 -178
- /package/dist/types/{v2/client/util/browser.d.ts → util/compare-origin.d.ts} +0 -0
- /package/dist/types/{v2/client/util/url.d.ts → util/normalize-uri.d.ts} +0 -0
- /package/src/{v2/client/util/browser.ts → util/redirect.ts} +0 -0
package/src/v2/client/request.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import type { PopupRequest, RedirectRequest } from '@azure/msal-browser';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Request object passed by user to retrieve a Code from the
|
|
5
|
-
* server (first leg of authorization code grant flow).
|
|
6
|
-
*
|
|
7
|
-
* **scopes**\
|
|
8
|
-
* Array of scopes the application is requesting access to.
|
|
9
|
-
*
|
|
10
|
-
* **authority**\
|
|
11
|
-
* Url of the authority which the application acquires tokens from.
|
|
12
|
-
*
|
|
13
|
-
* **correlationId**\
|
|
14
|
-
* Unique GUID set per request to trace a request end-to-end for telemetry purposes.
|
|
15
|
-
*
|
|
16
|
-
* **redirectUri**\
|
|
17
|
-
* The redirect URI where authentication responses can be received by your application. It must exactly match one of the redirect URIs registered in the Azure portal.
|
|
18
|
-
*
|
|
19
|
-
* **extraScopesToConsent**\
|
|
20
|
-
* Scopes for a different resource when the user needs consent upfront.
|
|
21
|
-
*
|
|
22
|
-
* **responseMode**\
|
|
23
|
-
* Specifies the method that should be used to send the authentication result to your app. Fragment is the only valid option for msal-browser.
|
|
24
|
-
*
|
|
25
|
-
* **codeChallenge**\
|
|
26
|
-
* Used to secure authorization code grant via Proof of Key for Code Exchange (PKCE). For more information, see the PKCE RCF:https://tools.ietf.org/html/rfc7636
|
|
27
|
-
*
|
|
28
|
-
* **codeChallengeMethod**\
|
|
29
|
-
* The method used to encode the code verifier for the code challenge parameter. Can be "plain" or "S256". If excluded, code challenge is assumed to be plaintext. For more information, see the PKCE RCF: https://tools.ietf.org/html/rfc7636
|
|
30
|
-
*
|
|
31
|
-
* **state**\
|
|
32
|
-
* A value included in the request that is also returned in the token response. A randomly generated unique value is typically used for preventing cross site request forgery attacks. The state is also used to encode information about the user's state in the app before the authentication request occurred.
|
|
33
|
-
*
|
|
34
|
-
* **prompt**\
|
|
35
|
-
* Indicates the type of user interaction that is required.
|
|
36
|
-
* - login: will force the user to enter their credentials on that request, negating single-sign on
|
|
37
|
-
* - none: will ensure that the user isn't presented with any interactive prompt. if request can't be completed via single-sign on, the endpoint will return an interaction_required error
|
|
38
|
-
* - consent: will the trigger the OAuth consent dialog after the user signs in, asking the user to grant permissions to the app
|
|
39
|
-
* - select_account: will interrupt single sign-=on providing account selection experience listing all the accounts in session or any remembered accounts or an option to choose to use a different account
|
|
40
|
-
*
|
|
41
|
-
* **loginHint**\
|
|
42
|
-
* Can be used to pre-fill the username/email address field of the sign-in page for the user, if you know the username/email address ahead of time. Often apps use this parameter during re-authentication, having already extracted the username from a previous sign-in using the preferred_username claim.
|
|
43
|
-
*
|
|
44
|
-
* **sid**\
|
|
45
|
-
* Session ID, unique identifier for the session. Available as an optional claim on ID tokens.
|
|
46
|
-
*
|
|
47
|
-
* **domainHint**\
|
|
48
|
-
* Provides a hint about the tenant or domain that the user should use to sign in. The value of the domain hint is a registered domain for the tenant.
|
|
49
|
-
*
|
|
50
|
-
* **extraQueryParameters**\
|
|
51
|
-
* String to string map of custom query parameters.
|
|
52
|
-
*
|
|
53
|
-
* **claims**\
|
|
54
|
-
* In cases where Azure AD tenant admin has enabled conditional access policies, and the policy has not been met, exceptions will contain claims that need to be consented to.
|
|
55
|
-
*
|
|
56
|
-
* **nonce**\
|
|
57
|
-
* A value included in the request that is returned in the id token. A randomly generated unique value is typically used to mitigate replay attacks.
|
|
58
|
-
*
|
|
59
|
-
* **redirectStartPage**\
|
|
60
|
-
* The page that should be returned to after loginRedirect or acquireTokenRedirect.
|
|
61
|
-
* This should only be used if this is different from the redirectUri and will default to the page that initiates the request.
|
|
62
|
-
* When the navigateToLoginRequestUrl config option is set to false this parameter will be ignored.
|
|
63
|
-
*
|
|
64
|
-
* @see [microsoft-authentication-library-for-js](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser/src/request)
|
|
65
|
-
*/
|
|
66
|
-
export type AuthRequest = PopupRequest | RedirectRequest;
|
package/src/v2/configurator.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import z from 'zod';
|
|
2
|
-
|
|
3
|
-
import { BaseConfigBuilder } from '@equinor/fusion-framework-module';
|
|
4
|
-
|
|
5
|
-
import { MsalModuleVersion } from '../static';
|
|
6
|
-
import semver from 'semver';
|
|
7
|
-
import type { IAuthProvider } from './provider';
|
|
8
|
-
|
|
9
|
-
const VersionSchema = z.string().transform((x: string) => String(semver.coerce(x)));
|
|
10
|
-
|
|
11
|
-
const AuthClientConfigSchema = z.object({
|
|
12
|
-
clientId: z.string(),
|
|
13
|
-
tenantId: z.string(),
|
|
14
|
-
redirectUri: z.string().optional(),
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
// NOTE: this might need refinement to validate the provider
|
|
18
|
-
const AuthClientSchema = z.custom<IAuthProvider>();
|
|
19
|
-
|
|
20
|
-
const AuthConfigSchema = z.object({
|
|
21
|
-
client: AuthClientConfigSchema.optional(),
|
|
22
|
-
provider: AuthClientSchema.optional(),
|
|
23
|
-
requiresAuth: z.boolean().optional(),
|
|
24
|
-
version: VersionSchema,
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
export type AuthClientConfig = z.infer<typeof AuthClientConfigSchema>;
|
|
28
|
-
export type AuthConfig = z.infer<typeof AuthConfigSchema>;
|
|
29
|
-
|
|
30
|
-
export class AuthConfigurator extends BaseConfigBuilder<AuthConfig> {
|
|
31
|
-
public version = MsalModuleVersion.Latest as const;
|
|
32
|
-
|
|
33
|
-
constructor() {
|
|
34
|
-
super();
|
|
35
|
-
this._set('version', async () => this.version);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
setClientConfig(config?: z.infer<typeof AuthClientConfigSchema>): void {
|
|
39
|
-
this._set('client', async () => config);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
setRequiresAuth(requiresAuth: boolean): void {
|
|
43
|
-
this._set('requiresAuth', async () => requiresAuth);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
setProvider(provider?: z.infer<typeof AuthClientSchema>): void {
|
|
47
|
-
this._set('provider', async () => provider);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
setVersion(version: string): void {
|
|
51
|
-
this._set('version', async () => version);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
async _processConfig(config: AuthConfig): Promise<AuthConfig> {
|
|
55
|
-
// TODO: handle parsing of clientConfig
|
|
56
|
-
return AuthConfigSchema.parseAsync(config);
|
|
57
|
-
}
|
|
58
|
-
}
|
package/src/v2/index.ts
DELETED
package/src/v2/provider.ts
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { type AuthClient, createAuthClient, type AuthRequest, ConsoleLogger } from './client';
|
|
2
|
-
|
|
3
|
-
import { MsalModuleVersion } from '../static';
|
|
4
|
-
|
|
5
|
-
import type { AuthClientConfig } from './configurator';
|
|
6
|
-
import type { AccountInfo, AuthenticationResult } from './types';
|
|
7
|
-
import type { IProxyProvider } from '../types';
|
|
8
|
-
import { resolveVersion } from '../versioning/resolve-version';
|
|
9
|
-
import { BaseModuleProvider } from '@equinor/fusion-framework-module/provider';
|
|
10
|
-
|
|
11
|
-
export interface IAuthProvider {
|
|
12
|
-
// readonly defaultClient: AuthClient;
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated
|
|
15
|
-
*/
|
|
16
|
-
// biome-ignore lint/suspicious/noExplicitAny: this is deprecated
|
|
17
|
-
readonly defaultConfig: any | undefined;
|
|
18
|
-
readonly defaultAccount: AccountInfo | undefined;
|
|
19
|
-
|
|
20
|
-
readonly client: AuthClient;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Acquire token from default auth client
|
|
24
|
-
* @param req Auth request options
|
|
25
|
-
*/
|
|
26
|
-
acquireToken(req: AuthRequest): Promise<AuthenticationResult | void>;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Acquire access token from default auth client
|
|
30
|
-
* @param req Auth request options
|
|
31
|
-
*/
|
|
32
|
-
acquireAccessToken(req: AuthRequest): Promise<string | undefined>;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Login to default auth client
|
|
36
|
-
*/
|
|
37
|
-
login(): Promise<void>;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Logout
|
|
41
|
-
*/
|
|
42
|
-
logout(options?: { redirectUri?: string }): Promise<void>;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Handle default client redirect callback
|
|
46
|
-
*/
|
|
47
|
-
handleRedirect(): Promise<void | null>;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export class AuthProvider
|
|
51
|
-
extends BaseModuleProvider<AuthClientConfig>
|
|
52
|
-
implements IAuthProvider, IProxyProvider
|
|
53
|
-
{
|
|
54
|
-
#client: AuthClient;
|
|
55
|
-
|
|
56
|
-
get defaultAccount(): AccountInfo | undefined {
|
|
57
|
-
return this.client.account;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/** @deprecated */
|
|
61
|
-
get defaultConfig(): AuthClientConfig | undefined {
|
|
62
|
-
return this._config;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
constructor(protected _config: AuthClientConfig) {
|
|
66
|
-
super({
|
|
67
|
-
version: MsalModuleVersion.Latest,
|
|
68
|
-
config: _config,
|
|
69
|
-
});
|
|
70
|
-
this.#client = this.createClient();
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
get client(): AuthClient {
|
|
74
|
-
return this.#client;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/** @deprecated */
|
|
78
|
-
createClient(): AuthClient {
|
|
79
|
-
const client = createAuthClient(
|
|
80
|
-
this._config.tenantId,
|
|
81
|
-
this._config.clientId,
|
|
82
|
-
this._config.redirectUri,
|
|
83
|
-
);
|
|
84
|
-
// TODO - fix with log streamer
|
|
85
|
-
client.setLogger(new ConsoleLogger(0));
|
|
86
|
-
|
|
87
|
-
return client;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
async handleRedirect() {
|
|
91
|
-
const { redirectUri } = this.defaultConfig || {};
|
|
92
|
-
if (window.location.pathname === redirectUri) {
|
|
93
|
-
const logger = this.client.getLogger();
|
|
94
|
-
const { requestOrigin } = this.client;
|
|
95
|
-
|
|
96
|
-
await this.client.handleRedirectPromise();
|
|
97
|
-
if (requestOrigin === redirectUri) {
|
|
98
|
-
logger.warning(`detected callback loop from url ${redirectUri}, redirecting to root`);
|
|
99
|
-
window.location.replace('/');
|
|
100
|
-
} else {
|
|
101
|
-
window.location.replace(requestOrigin || '/');
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
return null;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
acquireToken(req: AuthRequest): ReturnType<IAuthProvider['acquireToken']> {
|
|
108
|
-
return this.client.acquireToken(req);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
async acquireAccessToken(req: AuthRequest) {
|
|
112
|
-
const token = await this.acquireToken(req);
|
|
113
|
-
return token ? token.accessToken : undefined;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
async login(options?: { onlyIfRequired?: boolean }) {
|
|
117
|
-
// skip login if already logged in and has valid claims
|
|
118
|
-
if (options?.onlyIfRequired && this.client.hasValidClaims) {
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
await this.client.login();
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
async logout(options?: { redirectUri?: string }): Promise<void> {
|
|
125
|
-
// TODO - might have an option for popup or redirect
|
|
126
|
-
await this.client.logoutRedirect({
|
|
127
|
-
postLogoutRedirectUri: options?.redirectUri,
|
|
128
|
-
account: this.defaultAccount,
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
createProxyProvider<T = IAuthProvider>(version: string): T {
|
|
133
|
-
// TODO - check if version is supported and telemetry
|
|
134
|
-
const { enumVersion } = resolveVersion(version);
|
|
135
|
-
switch (enumVersion) {
|
|
136
|
-
case MsalModuleVersion.V2:
|
|
137
|
-
case MsalModuleVersion.Latest:
|
|
138
|
-
return this._createProxyProvider_v2() as T;
|
|
139
|
-
default:
|
|
140
|
-
throw new Error(`Version ${version} is not supported`);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
_createProxyProvider_v2(): IAuthProvider {
|
|
145
|
-
const proxy = new Proxy(this, {
|
|
146
|
-
get: (target: AuthProvider, prop: keyof AuthProvider) => {
|
|
147
|
-
switch (prop) {
|
|
148
|
-
case 'version':
|
|
149
|
-
return target.version;
|
|
150
|
-
case 'dispose':
|
|
151
|
-
return target.dispose.bind(target);
|
|
152
|
-
case 'client':
|
|
153
|
-
return target.client;
|
|
154
|
-
// @ts-expect-error this is deprecated since version 5.0.1
|
|
155
|
-
case 'defaultClient':
|
|
156
|
-
console.warn('defaultClient is deprecated, use client instead');
|
|
157
|
-
return target.client;
|
|
158
|
-
case 'defaultAccount':
|
|
159
|
-
return target.defaultAccount;
|
|
160
|
-
case 'defaultConfig':
|
|
161
|
-
return target.defaultConfig;
|
|
162
|
-
case 'acquireToken':
|
|
163
|
-
return target.acquireToken.bind(target);
|
|
164
|
-
case 'acquireAccessToken':
|
|
165
|
-
return target.acquireAccessToken.bind(target);
|
|
166
|
-
case 'login':
|
|
167
|
-
return target.login.bind(target);
|
|
168
|
-
case 'handleRedirect':
|
|
169
|
-
return target.handleRedirect.bind(target);
|
|
170
|
-
case 'createProxyProvider':
|
|
171
|
-
return target.createProxyProvider.bind(target);
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
});
|
|
175
|
-
|
|
176
|
-
return proxy;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|