@azure/msal-common
Advanced tools
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
| import { TokenClaims } from "./TokenClaims.js"; | ||
| export type DataBoundary = "EU" | "None"; | ||
| /** | ||
| * Account object with the following signature: | ||
| * - homeAccountId - Home account identifier for this account object | ||
| * - environment - Entity which issued the token represented by the domain of the issuer (e.g. login.microsoftonline.com) | ||
| * - tenantId - Full tenant or organizational id that this account belongs to | ||
| * - username - preferred_username claim of the id_token that represents this account | ||
| * - upn - The user's UPN used to populate the account username in cases where preferred_username is not present in the ID token claims. | ||
| * - localAccountId - Local, tenant-specific account identifer for this account object, usually used in legacy cases | ||
| * - name - Full name for the account, including given name and family name | ||
| * - idToken - raw ID token | ||
| * - idTokenClaims - Object contains claims from ID token | ||
| * - nativeAccountId - The user's native account ID | ||
| * - tenantProfiles - Map of tenant profile objects for each tenant that the account has authenticated with in the browser | ||
| * - dataBoundary - Data boundary extracted from clientInfo | ||
| */ | ||
| export type AccountInfo = { | ||
| homeAccountId: string; | ||
| environment: string; | ||
| tenantId: string; | ||
| username: string; | ||
| localAccountId: string; | ||
| loginHint?: string; | ||
| name?: string; | ||
| upn?: string; | ||
| idToken?: string; | ||
| idTokenClaims?: TokenClaims & { | ||
| [key: string]: string | number | string[] | object | undefined | unknown; | ||
| }; | ||
| nativeAccountId?: string; | ||
| authorityType?: string; | ||
| tenantProfiles?: Map<string, TenantProfile>; | ||
| dataBoundary?: DataBoundary; | ||
| }; | ||
| /** | ||
| * Account details that vary across tenants for the same user | ||
| */ | ||
| export type TenantProfile = Pick<AccountInfo, "tenantId" | "localAccountId" | "name" | "username" | "loginHint" | "upn"> & { | ||
| /** | ||
| * - isHomeTenant - True if this is the home tenant profile of the account, false if it's a guest tenant profile | ||
| */ | ||
| isHomeTenant?: boolean; | ||
| }; | ||
| export type ActiveAccountFilters = { | ||
| homeAccountId: string; | ||
| localAccountId: string; | ||
| tenantId?: string; | ||
| }; | ||
| /** | ||
| * Returns true if tenantId matches the utid portion of homeAccountId | ||
| * @param tenantId | ||
| * @param homeAccountId | ||
| * @returns | ||
| */ | ||
| export declare function tenantIdMatchesHomeTenant(tenantId?: string, homeAccountId?: string): boolean; | ||
| /** | ||
| * Build tenant profile | ||
| * @param homeAccountId - Home account identifier for this account object | ||
| * @param localAccountId - Local account identifer for this account object | ||
| * @param tenantId - Full tenant or organizational id that this account belongs to | ||
| * @param idTokenClaims - Claims from the ID token | ||
| * @returns | ||
| */ | ||
| export declare function buildTenantProfile(homeAccountId: string, localAccountId: string, tenantId: string, idTokenClaims?: TokenClaims): TenantProfile; | ||
| /** | ||
| * Replaces account info that varies by tenant profile sourced from the ID token claims passed in with the tenant-specific account info | ||
| * @param baseAccountInfo | ||
| * @param idTokenClaims | ||
| * @returns | ||
| */ | ||
| export declare function updateAccountTenantProfileData(baseAccountInfo: AccountInfo, tenantProfile?: TenantProfile, idTokenClaims?: TokenClaims, idTokenSecret?: string): AccountInfo; | ||
| //# sourceMappingURL=AccountInfo.d.ts.map |
| {"version":3,"file":"AccountInfo.d.ts","sourceRoot":"","sources":["../../src/account/AccountInfo.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,MAAM,CAAC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,WAAW,GAAG;QAC1B,CAAC,GAAG,EAAE,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,EAAE,GACR,MAAM,GACN,SAAS,GACT,OAAO,CAAC;KACjB,CAAC;IACF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAC5C,YAAY,CAAC,EAAE,YAAY,CAAC;CAC/B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,IAAI,CAC5B,WAAW,EACX,UAAU,GAAG,gBAAgB,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,KAAK,CAC5E,GAAG;IACA;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACrC,QAAQ,CAAC,EAAE,MAAM,EACjB,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAMT;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAC9B,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,MAAM,EAChB,aAAa,CAAC,EAAE,WAAW,GAC5B,aAAa,CAuCf;AAED;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAC1C,eAAe,EAAE,WAAW,EAC5B,aAAa,CAAC,EAAE,aAAa,EAC7B,aAAa,CAAC,EAAE,WAAW,EAC3B,aAAa,CAAC,EAAE,MAAM,GACvB,WAAW,CAgCb"} |
| import { TokenClaims } from "./TokenClaims.js"; | ||
| /** | ||
| * Extract token by decoding the rawToken | ||
| * | ||
| * @param encodedToken | ||
| */ | ||
| export declare function extractTokenClaims(encodedToken: string, base64Decode: (input: string) => string): TokenClaims; | ||
| /** | ||
| * Check if the signin_state claim contains "kmsi" | ||
| * @param idTokenClaims | ||
| * @returns | ||
| */ | ||
| export declare function isKmsi(idTokenClaims: TokenClaims): boolean; | ||
| /** | ||
| * decode a JWT | ||
| * | ||
| * @param authToken | ||
| */ | ||
| export declare function getJWSPayload(authToken: string): string; | ||
| /** | ||
| * Determine if the token's max_age has transpired | ||
| */ | ||
| export declare function checkMaxAge(authTime: number, maxAge: number): void; | ||
| //# sourceMappingURL=AuthToken.d.ts.map |
| {"version":3,"file":"AuthToken.d.ts","sourceRoot":"","sources":["../../src/account/AuthToken.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM/C;;;;GAIG;AACH,wBAAgB,kBAAkB,CAC9B,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GACxC,WAAW,CAWb;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,aAAa,EAAE,WAAW,GAAG,OAAO,CAe1D;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAkBvD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAUlE"} |
| export type CcsCredential = { | ||
| credential: string; | ||
| type: CcsCredentialType; | ||
| }; | ||
| export declare const CcsCredentialType: { | ||
| readonly HOME_ACCOUNT_ID: "home_account_id"; | ||
| readonly UPN: "UPN"; | ||
| }; | ||
| export type CcsCredentialType = (typeof CcsCredentialType)[keyof typeof CcsCredentialType]; | ||
| //# sourceMappingURL=CcsCredential.d.ts.map |
| {"version":3,"file":"CcsCredential.d.ts","sourceRoot":"","sources":["../../src/account/CcsCredential.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,aAAa,GAAG;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,iBAAiB,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GACzB,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC"} |
| export type ClientAssertionConfig = { | ||
| clientId: string; | ||
| tokenEndpoint?: string; | ||
| }; | ||
| export type ClientAssertionCallback = (config: ClientAssertionConfig) => Promise<string>; | ||
| /** | ||
| * Client Assertion credential for Confidential Clients | ||
| */ | ||
| export type ClientAssertion = { | ||
| assertion: string | ClientAssertionCallback; | ||
| assertionType: string; | ||
| }; | ||
| /** | ||
| * Client Credentials set for Confidential Clients | ||
| */ | ||
| export type ClientCredentials = { | ||
| clientSecret?: string; | ||
| clientAssertion?: ClientAssertion; | ||
| }; | ||
| //# sourceMappingURL=ClientCredentials.d.ts.map |
| {"version":3,"file":"ClientCredentials.d.ts","sourceRoot":"","sources":["../../src/account/ClientCredentials.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,qBAAqB,GAAG;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAClC,MAAM,EAAE,qBAAqB,KAC5B,OAAO,CAAC,MAAM,CAAC,CAAC;AAErB;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC1B,SAAS,EAAE,MAAM,GAAG,uBAAuB,CAAC;IAC5C,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC,CAAC"} |
| /** | ||
| * Client info object which consists of: | ||
| * uid: user id | ||
| * utid: tenant id | ||
| * xms_tdbr: optional, only for non-US tenants | ||
| */ | ||
| export type ClientInfo = { | ||
| uid: string; | ||
| utid: string; | ||
| xms_tdbr?: string; | ||
| }; | ||
| /** | ||
| * Function to build a client info object from server clientInfo string | ||
| * @param rawClientInfo | ||
| * @param crypto | ||
| */ | ||
| export declare function buildClientInfo(rawClientInfo: string, base64Decode: (input: string) => string): ClientInfo; | ||
| /** | ||
| * Function to build a client info object from cached homeAccountId string | ||
| * @param homeAccountId | ||
| */ | ||
| export declare function buildClientInfoFromHomeAccountId(homeAccountId: string): ClientInfo; | ||
| //# sourceMappingURL=ClientInfo.d.ts.map |
| {"version":3,"file":"ClientInfo.d.ts","sourceRoot":"","sources":["../../src/account/ClientInfo.ts"],"names":[],"mappings":"AAWA;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,eAAe,CAC3B,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GACxC,UAAU,CAaZ;AAED;;;GAGG;AACH,wBAAgB,gCAAgC,CAC5C,aAAa,EAAE,MAAM,GACtB,UAAU,CAcZ"} |
| /** | ||
| * Type which describes Id Token claims known by MSAL. | ||
| */ | ||
| export type TokenClaims = { | ||
| /** | ||
| * Audience | ||
| */ | ||
| aud?: string; | ||
| /** | ||
| * Issuer | ||
| */ | ||
| iss?: string; | ||
| /** | ||
| * Issued at | ||
| */ | ||
| iat?: number; | ||
| /** | ||
| * Not valid before | ||
| */ | ||
| nbf?: number; | ||
| /** | ||
| * Immutable object identifier, this ID uniquely identifies the user across applications | ||
| */ | ||
| oid?: string; | ||
| /** | ||
| * Immutable subject identifier, this is a pairwise identifier - it is unique to a particular application ID | ||
| */ | ||
| sub?: string; | ||
| /** | ||
| * Users' tenant or '9188040d-6c67-4c5b-b112-36a304b66dad' for personal accounts. | ||
| */ | ||
| tid?: string; | ||
| /** | ||
| * Trusted Framework Policy (B2C) The name of the policy that was used to acquire the ID token. | ||
| */ | ||
| tfp?: string; | ||
| /** | ||
| * Authentication Context Class Reference (B2C) Used only with older policies. | ||
| */ | ||
| acr?: string; | ||
| ver?: string; | ||
| upn?: string; | ||
| preferred_username?: string; | ||
| login_hint?: string; | ||
| /** | ||
| * Contains KMSI (Keep Me Signed In) status among other things | ||
| */ | ||
| signin_state?: Array<string>; | ||
| emails?: string[]; | ||
| name?: string; | ||
| nonce?: string; | ||
| /** | ||
| * Expiration | ||
| */ | ||
| exp?: number; | ||
| home_oid?: string; | ||
| sid?: string; | ||
| cloud_instance_host_name?: string; | ||
| cnf?: { | ||
| kid: string; | ||
| }; | ||
| x5c_ca?: string[]; | ||
| ts?: number; | ||
| at?: string; | ||
| u?: string; | ||
| p?: string; | ||
| m?: string; | ||
| roles?: string[]; | ||
| amr?: string[]; | ||
| idp?: string; | ||
| auth_time?: number; | ||
| /** | ||
| * Region of the resource tenant | ||
| */ | ||
| tenant_region_scope?: string; | ||
| tenant_region_sub_scope?: string; | ||
| }; | ||
| /** | ||
| * Gets tenantId from available ID token claims to set as credential realm with the following precedence: | ||
| * 1. tid - if the token is acquired from an Azure AD tenant tid will be present | ||
| * 2. tfp - if the token is acquired from a modern B2C tenant tfp should be present | ||
| * 3. acr - if the token is acquired from a legacy B2C tenant acr should be present | ||
| * Downcased to match the realm case-insensitive comparison requirements | ||
| * @param idTokenClaims | ||
| * @returns | ||
| */ | ||
| export declare function getTenantIdFromIdTokenClaims(idTokenClaims?: TokenClaims): string | null; | ||
| //# sourceMappingURL=TokenClaims.d.ts.map |
| {"version":3,"file":"TokenClaims.d.ts","sourceRoot":"","sources":["../../src/account/TokenClaims.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;I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AE,MAAM,CAAC;IAC7B,uBAAuB,CAAC,EAAE,MAAM,CAAC;CACpC,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,4BAA4B,CACxC,aAAa,CAAC,EAAE,WAAW,GAC5B,MAAM,GAAG,IAAI,CAOf"} |
| import { AuthorityType } from "./AuthorityType.js"; | ||
| import { OpenIdConfigResponse } from "./OpenIdConfigResponse.js"; | ||
| import { IUri } from "../url/IUri.js"; | ||
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { ProtocolMode } from "./ProtocolMode.js"; | ||
| import { ICacheManager } from "../cache/interface/ICacheManager.js"; | ||
| import { AuthorityOptions, StaticAuthorityOptions } from "./AuthorityOptions.js"; | ||
| import { CloudDiscoveryMetadata } from "./CloudDiscoveryMetadata.js"; | ||
| import { RegionDiscoveryMetadata } from "./RegionDiscoveryMetadata.js"; | ||
| import type { AzureCloudOptions } from "../config/ClientConfiguration.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| /** | ||
| * The authority class validates the authority URIs used by the user, and retrieves the OpenID Configuration Data from the | ||
| * endpoint. It will store the pertinent config data in this object for use during token calls. | ||
| * @internal | ||
| */ | ||
| export declare class Authority { | ||
| private _canonicalAuthority; | ||
| private _canonicalAuthorityUrlComponents; | ||
| protected networkInterface: INetworkModule; | ||
| protected cacheManager: ICacheManager; | ||
| private authorityOptions; | ||
| private metadata; | ||
| private regionDiscovery; | ||
| regionDiscoveryMetadata: RegionDiscoveryMetadata; | ||
| private logger; | ||
| protected performanceClient: IPerformanceClient; | ||
| protected correlationId: string; | ||
| private managedIdentity; | ||
| private static reservedTenantDomains; | ||
| constructor(authority: string, networkInterface: INetworkModule, cacheManager: ICacheManager, authorityOptions: AuthorityOptions, logger: Logger, correlationId: string, performanceClient: IPerformanceClient, managedIdentity?: boolean); | ||
| /** | ||
| * Get {@link AuthorityType} | ||
| * @param authorityUri {@link IUri} | ||
| * @private | ||
| */ | ||
| private getAuthorityType; | ||
| get authorityType(): AuthorityType; | ||
| /** | ||
| * ProtocolMode enum representing the way endpoints are constructed. | ||
| */ | ||
| get protocolMode(): ProtocolMode; | ||
| /** | ||
| * Returns authorityOptions which can be used to reinstantiate a new authority instance | ||
| */ | ||
| get options(): AuthorityOptions; | ||
| /** | ||
| * A URL that is the authority set by the developer | ||
| */ | ||
| get canonicalAuthority(): string; | ||
| /** | ||
| * Sets canonical authority. | ||
| */ | ||
| set canonicalAuthority(url: string); | ||
| /** | ||
| * Get authority components. | ||
| */ | ||
| get canonicalAuthorityUrlComponents(): IUri; | ||
| /** | ||
| * Get hostname and port i.e. login.microsoftonline.com | ||
| */ | ||
| get hostnameAndPort(): string; | ||
| /** | ||
| * Get tenant for authority. | ||
| */ | ||
| get tenant(): string; | ||
| /** | ||
| * OAuth /authorize endpoint for requests | ||
| */ | ||
| get authorizationEndpoint(): string; | ||
| /** | ||
| * OAuth /token endpoint for requests | ||
| */ | ||
| get tokenEndpoint(): string; | ||
| get deviceCodeEndpoint(): string; | ||
| /** | ||
| * OAuth logout endpoint for requests | ||
| */ | ||
| get endSessionEndpoint(): string; | ||
| /** | ||
| * OAuth issuer for requests | ||
| */ | ||
| get selfSignedJwtAudience(): string; | ||
| /** | ||
| * Jwks_uri for token signing keys | ||
| */ | ||
| get jwksUri(): string; | ||
| /** | ||
| * Returns a flag indicating that tenant name can be replaced in authority {@link IUri} | ||
| * @param authorityUri {@link IUri} | ||
| * @private | ||
| */ | ||
| private canReplaceTenant; | ||
| /** | ||
| * Replaces tenant in url path with current tenant. Defaults to common. | ||
| * @param urlString | ||
| */ | ||
| private replaceTenant; | ||
| /** | ||
| * Replaces path such as tenant or policy with the current tenant or policy. | ||
| * @param urlString | ||
| */ | ||
| private replacePath; | ||
| /** | ||
| * The default open id configuration endpoint for any canonical authority. | ||
| */ | ||
| protected get defaultOpenIdConfigurationEndpoint(): string; | ||
| /** | ||
| * Boolean that returns whether or not tenant discovery has been completed. | ||
| */ | ||
| discoveryComplete(): boolean; | ||
| /** | ||
| * Perform endpoint discovery to discover aliases, preferred_cache, preferred_network | ||
| * and the /authorize, /token and logout endpoints. | ||
| */ | ||
| resolveEndpointsAsync(): Promise<void>; | ||
| /** | ||
| * Returns metadata entity from cache if it exists, otherwiser returns a new metadata entity built | ||
| * from the configured canonical authority | ||
| * @returns | ||
| */ | ||
| private getCurrentMetadataEntity; | ||
| /** | ||
| * Updates cached metadata based on metadata source and sets the instance's metadata | ||
| * property to the same value | ||
| * @param metadataEntity | ||
| * @param cloudDiscoverySource | ||
| * @param endpointMetadataResult | ||
| */ | ||
| private updateCachedMetadata; | ||
| /** | ||
| * Update AuthorityMetadataEntity with new endpoints and return where the information came from | ||
| * @param metadataEntity | ||
| */ | ||
| private updateEndpointMetadata; | ||
| /** | ||
| * Updates endpoint metadata from local sources and returns where the information was retrieved from and the metadata config | ||
| * response if the source is hardcoded metadata | ||
| * @param metadataEntity | ||
| * @returns | ||
| */ | ||
| private updateEndpointMetadataFromLocalSources; | ||
| /** | ||
| * Compares the number of url components after the domain to determine if the cached | ||
| * authority metadata can be used for the requested authority. Protects against same domain different | ||
| * authority such as login.microsoftonline.com/tenant and login.microsoftonline.com/tfp/tenant/policy | ||
| * @param metadataEntity | ||
| */ | ||
| private isAuthoritySameType; | ||
| /** | ||
| * Parse authorityMetadata config option | ||
| */ | ||
| private getEndpointMetadataFromConfig; | ||
| /** | ||
| * Gets OAuth endpoints from the given OpenID configuration endpoint. | ||
| * | ||
| * @param hasHardcodedMetadata boolean | ||
| */ | ||
| private getEndpointMetadataFromNetwork; | ||
| /** | ||
| * Get OAuth endpoints for common authorities. | ||
| */ | ||
| private getEndpointMetadataFromHardcodedValues; | ||
| /** | ||
| * Update the retrieved metadata with regional information. | ||
| * User selected Azure region will be used if configured. | ||
| */ | ||
| private updateMetadataWithRegionalInformation; | ||
| /** | ||
| * Updates the AuthorityMetadataEntity with new aliases, preferred_network and preferred_cache | ||
| * and returns where the information was retrieved from | ||
| * @param metadataEntity | ||
| * @returns AuthorityMetadataSource | ||
| */ | ||
| private updateCloudDiscoveryMetadata; | ||
| private updateCloudDiscoveryMetadataFromLocalSources; | ||
| /** | ||
| * Parse cloudDiscoveryMetadata config or check knownAuthorities | ||
| */ | ||
| private getCloudDiscoveryMetadataFromConfig; | ||
| /** | ||
| * Called to get metadata from network if CloudDiscoveryMetadata was not populated by config | ||
| * | ||
| * @param hasHardcodedMetadata boolean | ||
| */ | ||
| private getCloudDiscoveryMetadataFromNetwork; | ||
| /** | ||
| * Helper function to determine if this host is included in the knownAuthorities config option | ||
| */ | ||
| private isInKnownAuthorities; | ||
| /** | ||
| * helper function to populate the authority based on azureCloudOptions | ||
| * @param authorityString | ||
| * @param azureCloudOptions | ||
| */ | ||
| static generateAuthority(authorityString: string, azureCloudOptions?: AzureCloudOptions): string; | ||
| /** | ||
| * Creates cloud discovery metadata object from a given host | ||
| * @param host | ||
| */ | ||
| static createCloudDiscoveryMetadataFromHost(host: string): CloudDiscoveryMetadata; | ||
| /** | ||
| * helper function to generate environment from authority object | ||
| */ | ||
| getPreferredCache(): string; | ||
| /** | ||
| * Returns whether or not the provided host is an alias of this authority instance | ||
| * @param host | ||
| */ | ||
| isAlias(host: string): boolean; | ||
| /** | ||
| * Returns whether or not the provided host is an alias of a known Microsoft authority for purposes of endpoint discovery | ||
| * @param host | ||
| */ | ||
| isAliasOfKnownMicrosoftAuthority(host: string): boolean; | ||
| /** | ||
| * Checks whether the provided host is that of a public cloud authority | ||
| * | ||
| * @param authority string | ||
| * @returns bool | ||
| */ | ||
| static isPublicCloudAuthority(host: string): boolean; | ||
| /** | ||
| * Rebuild the authority string with the region | ||
| * | ||
| * @param host string | ||
| * @param region string | ||
| */ | ||
| static buildRegionalAuthorityString(host: string, region: string, queryString?: string): string; | ||
| /** | ||
| * Replace the endpoints in the metadata object with their regional equivalents. | ||
| * | ||
| * @param metadata OpenIdConfigResponse | ||
| * @param azureRegion string | ||
| */ | ||
| static replaceWithRegionalInformation(metadata: OpenIdConfigResponse, azureRegion: string): OpenIdConfigResponse; | ||
| /** | ||
| * Transform CIAM_AUTHORIY as per the below rules: | ||
| * If no path segments found and it is a CIAM authority (hostname ends with .ciamlogin.com), then transform it | ||
| * | ||
| * NOTE: The transformation path should go away once STS supports CIAM with the format: `tenantIdorDomain.ciamlogin.com` | ||
| * `ciamlogin.com` can also change in the future and we should accommodate the same | ||
| * | ||
| * @param authority | ||
| */ | ||
| static transformCIAMAuthority(authority: string): string; | ||
| } | ||
| /** | ||
| * Extract tenantId from authority | ||
| */ | ||
| export declare function getTenantFromAuthorityString(authority: string): string | undefined; | ||
| export declare function formatAuthorityUri(authorityUri: string): string; | ||
| export declare function buildStaticAuthorityOptions(authOptions: Partial<AuthorityOptions>): StaticAuthorityOptions; | ||
| //# sourceMappingURL=Authority.d.ts.map |
| {"version":3,"file":"Authority.d.ts","sourceRoot":"","sources":["../../src/authority/Authority.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAEH,oBAAoB,EACvB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAKtC,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAY9D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACH,gBAAgB,EAEhB,sBAAsB,EACzB,MAAM,uBAAuB,CAAC;AAS/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,kBAAkB,EAAE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sBAAsB;IAQzB;;OAEG;IACH,iBAAiB,IAAI,MAAM;IAY3B;;;OAGG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI9B;;;OAGG;IACH,gCAAgC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIvD;;;;;OAKG;IACH,MAAM,CAAC,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIpD;;;;;OAKG;IACH,MAAM,CAAC,4BAA4B,CAC/B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,MAAM,GACrB,MAAM;IAyBT;;;;;OAKG;IACH,MAAM,CAAC,8BAA8B,CACjC,QAAQ,EAAE,oBAAoB,EAC9B,WAAW,EAAE,MAAM,GACpB,oBAAoB;IAyBvB;;;;;;;;OAQG;IACH,MAAM,CAAC,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;CAmB3D;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CACxC,SAAS,EAAE,MAAM,GAClB,MAAM,GAAG,SAAS,CAsBpB;AAED,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAI/D;AAED,wBAAgB,2BAA2B,CACvC,WAAW,EAAE,OAAO,CAAC,gBAAgB,CAAC,GACvC,sBAAsB,CAoBxB"} |
| import { Authority } from "./Authority.js"; | ||
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { ICacheManager } from "../cache/interface/ICacheManager.js"; | ||
| import { AuthorityOptions } from "./AuthorityOptions.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| /** | ||
| * Create an authority object of the correct type based on the url | ||
| * Performs basic authority validation - checks to see if the authority is of a valid type (i.e. aad, b2c, adfs) | ||
| * | ||
| * Also performs endpoint discovery. | ||
| * | ||
| * @param authorityUri | ||
| * @param networkClient | ||
| * @param cacheManager | ||
| * @param authorityOptions | ||
| * @param logger | ||
| * @param correlationId | ||
| * @param performanceClient | ||
| * @internal | ||
| */ | ||
| export declare function createDiscoveredInstance(authorityUri: string, networkClient: INetworkModule, cacheManager: ICacheManager, authorityOptions: AuthorityOptions, logger: Logger, correlationId: string, performanceClient: IPerformanceClient): Promise<Authority>; | ||
| //# sourceMappingURL=AuthorityFactory.d.ts.map |
| {"version":3,"file":"AuthorityFactory.d.ts","sourceRoot":"","sources":["../../src/authority/AuthorityFactory.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAsB,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAK9D,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAIpF;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,wBAAwB,CAC1C,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,cAAc,EAC7B,YAAY,EAAE,aAAa,EAC3B,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,EACrB,iBAAiB,EAAE,kBAAkB,GACtC,OAAO,CAAC,SAAS,CAAC,CAgCpB"} |
| import { Logger } from "../logger/Logger.js"; | ||
| import { AuthorityMetadataSource } from "../utils/Constants.js"; | ||
| import { StaticAuthorityOptions } from "./AuthorityOptions.js"; | ||
| import { CloudDiscoveryMetadata } from "./CloudDiscoveryMetadata.js"; | ||
| import { CloudInstanceDiscoveryResponse } from "./CloudInstanceDiscoveryResponse.js"; | ||
| import { OpenIdConfigResponse } from "./OpenIdConfigResponse.js"; | ||
| type RawMetadata = { | ||
| endpointMetadata: { | ||
| [key: string]: OpenIdConfigResponse; | ||
| }; | ||
| instanceDiscoveryMetadata: CloudInstanceDiscoveryResponse; | ||
| }; | ||
| export declare const rawMetdataJSON: RawMetadata; | ||
| export declare const EndpointMetadata: { | ||
| [key: string]: OpenIdConfigResponse; | ||
| }; | ||
| export declare const InstanceDiscoveryMetadata: CloudInstanceDiscoveryResponse; | ||
| export declare const InstanceDiscoveryMetadataAliases: Set<String>; | ||
| /** | ||
| * Attempts to get an aliases array from the static authority metadata sources based on the canonical authority host | ||
| * @param staticAuthorityOptions | ||
| * @param logger | ||
| * @returns | ||
| */ | ||
| export declare function getAliasesFromStaticSources(staticAuthorityOptions: StaticAuthorityOptions, logger: Logger, correlationId: string): string[]; | ||
| /** | ||
| * Returns aliases for from the raw cloud discovery metadata passed in | ||
| * @param authorityHost | ||
| * @param rawCloudDiscoveryMetadata | ||
| * @returns | ||
| */ | ||
| export declare function getAliasesFromMetadata(logger: Logger, correlationId: string, authorityHost?: string, cloudDiscoveryMetadata?: CloudDiscoveryMetadata[], source?: AuthorityMetadataSource): string[] | null; | ||
| /** | ||
| * Get cloud discovery metadata for common authorities | ||
| */ | ||
| export declare function getCloudDiscoveryMetadataFromHardcodedValues(authorityHost: string): CloudDiscoveryMetadata | null; | ||
| /** | ||
| * Searches instance discovery network response for the entry that contains the host in the aliases list | ||
| * @param response | ||
| * @param authority | ||
| */ | ||
| export declare function getCloudDiscoveryMetadataFromNetworkResponse(response: CloudDiscoveryMetadata[], authorityHost: string): CloudDiscoveryMetadata | null; | ||
| export {}; | ||
| //# sourceMappingURL=AuthorityMetadata.d.ts.map |
| {"version":3,"file":"AuthorityMetadata.d.ts","sourceRoot":"","sources":["../../src/authority/AuthorityMetadata.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,KAAK,WAAW,GAAG;IACf,gBAAgB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE,CAAC;IAC1D,yBAAyB,EAAE,8BAA8B,CAAC;CAC7D,CAAC;AAkCF,eAAO,MAAM,cAAc,EAAE,WA2D5B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;CAAkC,CAAC;AAChE,eAAO,MAAM,yBAAyB,gCACM,CAAC;AAE7C,eAAO,MAAM,gCAAgC,EAAE,GAAG,CAAC,MAAM,CAAa,CAAC;AASvE;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACvC,sBAAsB,EAAE,sBAAsB,EAC9C,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,GACtB,MAAM,EAAE,CA0BV;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAClC,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,EACrB,aAAa,CAAC,EAAE,MAAM,EACtB,sBAAsB,CAAC,EAAE,sBAAsB,EAAE,EACjD,MAAM,CAAC,EAAE,uBAAuB,GACjC,MAAM,EAAE,GAAG,IAAI,CA0BjB;AAED;;GAEG;AACH,wBAAgB,4CAA4C,CACxD,aAAa,EAAE,MAAM,GACtB,sBAAsB,GAAG,IAAI,CAM/B;AAED;;;;GAIG;AACH,wBAAgB,4CAA4C,CACxD,QAAQ,EAAE,sBAAsB,EAAE,EAClC,aAAa,EAAE,MAAM,GACtB,sBAAsB,GAAG,IAAI,CAS/B"} |
| import { ProtocolMode } from "./ProtocolMode.js"; | ||
| import { OIDCOptions } from "./OIDCOptions.js"; | ||
| import { AzureRegionConfiguration } from "./AzureRegionConfiguration.js"; | ||
| import { CloudInstanceDiscoveryResponse } from "./CloudInstanceDiscoveryResponse.js"; | ||
| export type AuthorityOptions = { | ||
| protocolMode: ProtocolMode; | ||
| OIDCOptions?: OIDCOptions | null; | ||
| knownAuthorities: Array<string>; | ||
| cloudDiscoveryMetadata: string; | ||
| authorityMetadata: string; | ||
| azureRegionConfiguration?: AzureRegionConfiguration; | ||
| authority?: string; | ||
| }; | ||
| export type StaticAuthorityOptions = Partial<Pick<AuthorityOptions, "knownAuthorities">> & { | ||
| canonicalAuthority?: string; | ||
| cloudDiscoveryMetadata?: CloudInstanceDiscoveryResponse; | ||
| }; | ||
| export declare const AzureCloudInstance: { | ||
| readonly None: "none"; | ||
| readonly AzurePublic: "https://login.microsoftonline.com"; | ||
| readonly AzurePpe: "https://login.windows-ppe.net"; | ||
| readonly AzureChina: "https://login.chinacloudapi.cn"; | ||
| readonly AzureGermany: "https://login.microsoftonline.de"; | ||
| readonly AzureUsGovernment: "https://login.microsoftonline.us"; | ||
| }; | ||
| export type AzureCloudInstance = (typeof AzureCloudInstance)[keyof typeof AzureCloudInstance]; | ||
| //# sourceMappingURL=AuthorityOptions.d.ts.map |
| {"version":3,"file":"AuthorityOptions.d.ts","sourceRoot":"","sources":["../../src/authority/AuthorityOptions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,YAAY,EAAE,YAAY,CAAC;IAC3B,WAAW,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACjC,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,OAAO,CACxC,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAC7C,GAAG;IACA,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,sBAAsB,CAAC,EAAE,8BAA8B,CAAC;CAC3D,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;CAkBrB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAC1B,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC"} |
| /** | ||
| * Authority types supported by MSAL. | ||
| */ | ||
| export declare const AuthorityType: { | ||
| readonly Default: 0; | ||
| readonly Adfs: 1; | ||
| readonly Dsts: 2; | ||
| readonly Ciam: 3; | ||
| }; | ||
| export type AuthorityType = (typeof AuthorityType)[keyof typeof AuthorityType]; | ||
| //# sourceMappingURL=AuthorityType.d.ts.map |
| {"version":3,"file":"AuthorityType.d.ts","sourceRoot":"","sources":["../../src/authority/AuthorityType.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC"} |
| export type AzureRegion = string; | ||
| //# sourceMappingURL=AzureRegion.d.ts.map |
| {"version":3,"file":"AzureRegion.d.ts","sourceRoot":"","sources":["../../src/authority/AzureRegion.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC"} |
| import { AzureRegion } from "./AzureRegion.js"; | ||
| export type AzureRegionConfiguration = { | ||
| azureRegion?: AzureRegion; | ||
| environmentRegion: string | undefined; | ||
| }; | ||
| //# sourceMappingURL=AzureRegionConfiguration.d.ts.map |
| {"version":3,"file":"AzureRegionConfiguration.d.ts","sourceRoot":"","sources":["../../src/authority/AzureRegionConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAO/C,MAAM,MAAM,wBAAwB,GAAG;IACnC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC,CAAC"} |
| export type CloudDiscoveryMetadata = { | ||
| preferred_network: string; | ||
| preferred_cache: string; | ||
| aliases: Array<string>; | ||
| }; | ||
| //# sourceMappingURL=CloudDiscoveryMetadata.d.ts.map |
| {"version":3,"file":"CloudDiscoveryMetadata.d.ts","sourceRoot":"","sources":["../../src/authority/CloudDiscoveryMetadata.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,sBAAsB,GAAG;IACjC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B,CAAC"} |
| /** | ||
| * The OpenID Configuration Endpoint Response type. Used by the authority class to get relevant OAuth endpoints. | ||
| */ | ||
| export type CloudInstanceDiscoveryErrorResponse = { | ||
| error: String; | ||
| error_description: String; | ||
| error_codes?: Array<Number>; | ||
| timestamp?: String; | ||
| trace_id?: String; | ||
| correlation_id?: String; | ||
| error_uri?: String; | ||
| }; | ||
| export declare function isCloudInstanceDiscoveryErrorResponse(response: object): boolean; | ||
| //# sourceMappingURL=CloudInstanceDiscoveryErrorResponse.d.ts.map |
| {"version":3,"file":"CloudInstanceDiscoveryErrorResponse.d.ts","sourceRoot":"","sources":["../../src/authority/CloudInstanceDiscoveryErrorResponse.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,qCAAqC,CACjD,QAAQ,EAAE,MAAM,GACjB,OAAO,CAKT"} |
| import { CloudDiscoveryMetadata } from "./CloudDiscoveryMetadata.js"; | ||
| /** | ||
| * The OpenID Configuration Endpoint Response type. Used by the authority class to get relevant OAuth endpoints. | ||
| */ | ||
| export type CloudInstanceDiscoveryResponse = { | ||
| tenant_discovery_endpoint: string; | ||
| metadata: Array<CloudDiscoveryMetadata>; | ||
| }; | ||
| export declare function isCloudInstanceDiscoveryResponse(response: object): boolean; | ||
| //# sourceMappingURL=CloudInstanceDiscoveryResponse.d.ts.map |
| {"version":3,"file":"CloudInstanceDiscoveryResponse.d.ts","sourceRoot":"","sources":["../../src/authority/CloudInstanceDiscoveryResponse.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG;IACzC,yBAAyB,EAAE,MAAM,CAAC;IAClC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;CAC3C,CAAC;AAEF,wBAAgB,gCAAgC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAK1E"} |
| export type ImdsOptions = { | ||
| headers?: { | ||
| Metadata: string; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=ImdsOptions.d.ts.map |
| {"version":3,"file":"ImdsOptions.d.ts","sourceRoot":"","sources":["../../src/authority/ImdsOptions.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,WAAW,GAAG;IACtB,OAAO,CAAC,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC;KACpB,CAAC;CACL,CAAC"} |
| import { ResponseMode } from "../utils/Constants.js"; | ||
| /** | ||
| * Options for the OIDC protocol mode. | ||
| */ | ||
| export type OIDCOptions = { | ||
| responseMode?: ResponseMode; | ||
| defaultScopes?: Array<string>; | ||
| }; | ||
| //# sourceMappingURL=OIDCOptions.d.ts.map |
| {"version":3,"file":"OIDCOptions.d.ts","sourceRoot":"","sources":["../../src/authority/OIDCOptions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACjC,CAAC"} |
| /** | ||
| * Tenant Discovery Response which contains the relevant OAuth endpoints and data needed for authentication and authorization. | ||
| */ | ||
| export type OpenIdConfigResponse = { | ||
| authorization_endpoint: string; | ||
| token_endpoint: string; | ||
| end_session_endpoint?: string; | ||
| issuer: string; | ||
| jwks_uri: string; | ||
| }; | ||
| export declare function isOpenIdConfigResponse(response: object): boolean; | ||
| //# sourceMappingURL=OpenIdConfigResponse.d.ts.map |
| {"version":3,"file":"OpenIdConfigResponse.d.ts","sourceRoot":"","sources":["../../src/authority/OpenIdConfigResponse.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAOhE"} |
| /** | ||
| * Protocol modes supported by MSAL. | ||
| */ | ||
| export declare const ProtocolMode: { | ||
| /** | ||
| * Auth Code + PKCE with Entra ID (formerly AAD) specific optimizations and features | ||
| */ | ||
| readonly AAD: "AAD"; | ||
| /** | ||
| * Auth Code + PKCE without Entra ID specific optimizations and features. For use only with non-Microsoft owned authorities. | ||
| * Support is limited for this mode. | ||
| */ | ||
| readonly OIDC: "OIDC"; | ||
| /** | ||
| * Encrypted Authorize Response (EAR) with Entra ID specific optimizations and features | ||
| */ | ||
| readonly EAR: "EAR"; | ||
| }; | ||
| export type ProtocolMode = (typeof ProtocolMode)[keyof typeof ProtocolMode]; | ||
| //# sourceMappingURL=ProtocolMode.d.ts.map |
| {"version":3,"file":"ProtocolMode.d.ts","sourceRoot":"","sources":["../../src/authority/ProtocolMode.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,YAAY;IACrB;;OAEG;;IAEH;;;OAGG;;IAEH;;OAEG;;CAEG,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"} |
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { RegionDiscoveryMetadata } from "./RegionDiscoveryMetadata.js"; | ||
| import { ImdsOptions } from "./ImdsOptions.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| export declare class RegionDiscovery { | ||
| protected networkInterface: INetworkModule; | ||
| private logger; | ||
| protected performanceClient: IPerformanceClient; | ||
| protected correlationId: string; | ||
| protected static IMDS_OPTIONS: ImdsOptions; | ||
| constructor(networkInterface: INetworkModule, logger: Logger, performanceClient: IPerformanceClient, correlationId: string); | ||
| /** | ||
| * Detect the region from the application's environment. | ||
| * | ||
| * @returns Promise<string | null> | ||
| */ | ||
| detectRegion(environmentRegion: string | undefined, regionDiscoveryMetadata: RegionDiscoveryMetadata): Promise<string | null>; | ||
| /** | ||
| * Make the call to the IMDS endpoint | ||
| * | ||
| * @param imdsEndpointUrl | ||
| * @returns Promise<NetworkResponse<string>> | ||
| */ | ||
| private getRegionFromIMDS; | ||
| /** | ||
| * Get the most recent version of the IMDS endpoint available | ||
| * | ||
| * @returns Promise<string | null> | ||
| */ | ||
| private getCurrentVersion; | ||
| } | ||
| //# sourceMappingURL=RegionDiscovery.d.ts.map |
| {"version":3,"file":"RegionDiscovery.d.ts","sourceRoot":"","sources":["../../src/authority/RegionDiscovery.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAI9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAGpF,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,qBAAa,eAAe;IAExB,SAAS,CAAC,gBAAgB,EAAE,cAAc,CAAC;IAE3C,OAAO,CAAC,MAAM,CAAS;IAEvB,SAAS,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;IAEhD,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC;IAEhC,SAAS,CAAC,MAAM,CAAC,YAAY,EAAE,WAAW,CAIxC;gBAGE,gBAAgB,EAAE,cAAc,EAChC,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,kBAAkB,EACrC,aAAa,EAAE,MAAM;IAQzB;;;;OAIG;IACU,YAAY,CACrB,iBAAiB,EAAE,MAAM,GAAG,SAAS,EACrC,uBAAuB,EAAE,uBAAuB,GACjD,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IA8EzB;;;;;OAKG;YACW,iBAAiB;IAW/B;;;;OAIG;YACW,iBAAiB;CAyBlC"} |
| import { RegionDiscoveryOutcomes, RegionDiscoverySources } from "../utils/Constants.js"; | ||
| export type RegionDiscoveryMetadata = { | ||
| region_used?: string; | ||
| region_source?: RegionDiscoverySources; | ||
| region_outcome?: RegionDiscoveryOutcomes; | ||
| }; | ||
| //# sourceMappingURL=RegionDiscoveryMetadata.d.ts.map |
| {"version":3,"file":"RegionDiscoveryMetadata.d.ts","sourceRoot":"","sources":["../../src/authority/RegionDiscoveryMetadata.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,uBAAuB,EACvB,sBAAsB,EACzB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,uBAAuB,GAAG;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC,cAAc,CAAC,EAAE,uBAAuB,CAAC;CAC5C,CAAC"} |
| /// <reference types="node" resolution-mode="require"/> | ||
| /// <reference types="node" resolution-mode="require"/> | ||
| import { AccountInfo } from "../../account/AccountInfo.js"; | ||
| import { LoggerOptions } from "../../config/ClientConfiguration.js"; | ||
| import { NativeRequest } from "../../request/NativeRequest.js"; | ||
| import { NativeSignOutRequest } from "../../request/NativeSignOutRequest.js"; | ||
| import { AuthenticationResult } from "../../response/AuthenticationResult.js"; | ||
| export interface INativeBrokerPlugin { | ||
| isBrokerAvailable: boolean; | ||
| setLogger(loggerOptions: LoggerOptions): void; | ||
| getAccountById(accountId: string, correlationId: string): Promise<AccountInfo>; | ||
| getAllAccounts(clientId: string, correlationId: string): Promise<AccountInfo[]>; | ||
| acquireTokenSilent(request: NativeRequest): Promise<AuthenticationResult>; | ||
| acquireTokenInteractive(request: NativeRequest, windowHandle?: Buffer): Promise<AuthenticationResult>; | ||
| signOut(request: NativeSignOutRequest): Promise<void>; | ||
| } | ||
| //# sourceMappingURL=INativeBrokerPlugin.d.ts.map |
| {"version":3,"file":"INativeBrokerPlugin.d.ts","sourceRoot":"","sources":["../../../src/broker/nativeBroker/INativeBrokerPlugin.ts"],"names":[],"mappings":";;AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAE9E,MAAM,WAAW,mBAAmB;IAChC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IAC9C,cAAc,CACV,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,WAAW,CAAC,CAAC;IACxB,cAAc,CACV,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAC1B,kBAAkB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAC1E,uBAAuB,CACnB,OAAO,EAAE,aAAa,EACtB,YAAY,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACjC,OAAO,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzD"} |
| import { AccountInfo } from "../account/AccountInfo.js"; | ||
| import { StaticAuthorityOptions } from "../authority/AuthorityOptions.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| import { StoreInCache } from "../request/StoreInCache.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { AccessTokenEntity } from "./entities/AccessTokenEntity.js"; | ||
| import { AccountEntity } from "./entities/AccountEntity.js"; | ||
| import { AppMetadataEntity } from "./entities/AppMetadataEntity.js"; | ||
| import { AuthorityMetadataEntity } from "./entities/AuthorityMetadataEntity.js"; | ||
| import { CacheRecord } from "./entities/CacheRecord.js"; | ||
| import { CredentialEntity } from "./entities/CredentialEntity.js"; | ||
| import { IdTokenEntity } from "./entities/IdTokenEntity.js"; | ||
| import { RefreshTokenEntity } from "./entities/RefreshTokenEntity.js"; | ||
| import { ServerTelemetryEntity } from "./entities/ServerTelemetryEntity.js"; | ||
| import { ThrottlingEntity } from "./entities/ThrottlingEntity.js"; | ||
| import { ICacheManager } from "./interface/ICacheManager.js"; | ||
| import { AccountFilter, AppMetadataCache, AppMetadataFilter, CredentialFilter, TokenKeys, ValidCredentialType } from "./utils/CacheTypes.js"; | ||
| /** | ||
| * Interface class which implement cache storage functions used by MSAL to perform validity checks, and store tokens. | ||
| * @internal | ||
| */ | ||
| export declare abstract class CacheManager implements ICacheManager { | ||
| protected clientId: string; | ||
| protected cryptoImpl: ICrypto; | ||
| private commonLogger; | ||
| private staticAuthorityOptions?; | ||
| protected performanceClient: IPerformanceClient; | ||
| constructor(clientId: string, cryptoImpl: ICrypto, logger: Logger, performanceClient: IPerformanceClient, staticAuthorityOptions?: StaticAuthorityOptions); | ||
| /** | ||
| * fetch the account entity from the platform cache | ||
| * @param accountKey | ||
| */ | ||
| abstract getAccount(accountKey: string, correlationId: string): AccountEntity | null; | ||
| /** | ||
| * set account entity in the platform cache | ||
| * @param account | ||
| * @param correlationId | ||
| */ | ||
| abstract setAccount(account: AccountEntity, correlationId: string, kmsi: boolean, apiId: number): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param idTokenKey | ||
| */ | ||
| abstract getIdTokenCredential(idTokenKey: string, correlationId: string): IdTokenEntity | null; | ||
| /** | ||
| * set idToken entity to the platform cache | ||
| * @param idToken | ||
| * @param correlationId | ||
| */ | ||
| abstract setIdTokenCredential(idToken: IdTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param accessTokenKey | ||
| */ | ||
| abstract getAccessTokenCredential(accessTokenKey: string, correlationId: string): AccessTokenEntity | null; | ||
| /** | ||
| * set accessToken entity to the platform cache | ||
| * @param accessToken | ||
| * @param correlationId | ||
| */ | ||
| abstract setAccessTokenCredential(accessToken: AccessTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param refreshTokenKey | ||
| */ | ||
| abstract getRefreshTokenCredential(refreshTokenKey: string, correlationId: string): RefreshTokenEntity | null; | ||
| /** | ||
| * set refreshToken entity to the platform cache | ||
| * @param refreshToken | ||
| * @param correlationId | ||
| */ | ||
| abstract setRefreshTokenCredential(refreshToken: RefreshTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch appMetadata entity from the platform cache | ||
| * @param appMetadataKey | ||
| * @param correlationId | ||
| */ | ||
| abstract getAppMetadata(appMetadataKey: string, correlationId: string): AppMetadataEntity | null; | ||
| /** | ||
| * set appMetadata entity to the platform cache | ||
| * @param appMetadata | ||
| */ | ||
| abstract setAppMetadata(appMetadata: AppMetadataEntity, correlationId: string): void; | ||
| /** | ||
| * fetch server telemetry entity from the platform cache | ||
| * @param serverTelemetryKey | ||
| * @param correlationId | ||
| */ | ||
| abstract getServerTelemetry(serverTelemetryKey: string, correlationId: string): ServerTelemetryEntity | null; | ||
| /** | ||
| * set server telemetry entity to the platform cache | ||
| * @param serverTelemetryKey | ||
| * @param serverTelemetry | ||
| * @param correlationId | ||
| */ | ||
| abstract setServerTelemetry(serverTelemetryKey: string, serverTelemetry: ServerTelemetryEntity, correlationId: string): void; | ||
| /** | ||
| * fetch cloud discovery metadata entity from the platform cache | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| abstract getAuthorityMetadata(key: string, correlationId: string): AuthorityMetadataEntity | null; | ||
| /** | ||
| * | ||
| */ | ||
| abstract getAuthorityMetadataKeys(): Array<string>; | ||
| /** | ||
| * set cloud discovery metadata entity to the platform cache | ||
| * @param key | ||
| * @param value | ||
| * @param correlationId | ||
| */ | ||
| abstract setAuthorityMetadata(key: string, value: AuthorityMetadataEntity, correlationId: string): void; | ||
| /** | ||
| * fetch throttling entity from the platform cache | ||
| * @param throttlingCacheKey | ||
| * @param correlationId | ||
| */ | ||
| abstract getThrottlingCache(throttlingCacheKey: string, correlationId: string): ThrottlingEntity | null; | ||
| /** | ||
| * set throttling entity to the platform cache | ||
| * @param throttlingCacheKey | ||
| * @param throttlingCache | ||
| */ | ||
| abstract setThrottlingCache(throttlingCacheKey: string, throttlingCache: ThrottlingEntity, correlationId: string): void; | ||
| /** | ||
| * Function to remove an item from cache given its key. | ||
| * @param key | ||
| */ | ||
| abstract removeItem(key: string, correlationId: string): void; | ||
| /** | ||
| * Function which retrieves all current keys from the cache. | ||
| */ | ||
| abstract getKeys(): string[]; | ||
| /** | ||
| * Function which retrieves all account keys from the cache | ||
| */ | ||
| abstract getAccountKeys(): string[]; | ||
| /** | ||
| * Function which retrieves all token keys from the cache | ||
| */ | ||
| abstract getTokenKeys(): TokenKeys; | ||
| /** | ||
| * Returns credential cache key from the entity | ||
| * @param credential | ||
| */ | ||
| abstract generateCredentialKey(credential: CredentialEntity): string; | ||
| /** | ||
| * Returns the account cache key from the account info | ||
| * @param account | ||
| */ | ||
| abstract generateAccountKey(account: AccountInfo): string; | ||
| /** | ||
| * Returns all the accounts in the cache that match the optional filter. If no filter is provided, all accounts are returned. | ||
| * @param accountFilter - (Optional) filter to narrow down the accounts returned | ||
| * @returns Array of AccountInfo objects in cache | ||
| */ | ||
| getAllAccounts(accountFilter: AccountFilter | undefined, correlationId: string): AccountInfo[]; | ||
| /** | ||
| * Gets first tenanted AccountInfo object found based on provided filters | ||
| */ | ||
| getAccountInfoFilteredBy(accountFilter: AccountFilter, correlationId: string): AccountInfo | null; | ||
| /** | ||
| * Returns a single matching | ||
| * @param accountFilter | ||
| * @returns | ||
| */ | ||
| getBaseAccountInfo(accountFilter: AccountFilter, correlationId: string): AccountInfo | null; | ||
| /** | ||
| * Matches filtered account entities with cached ID tokens that match the tenant profile-specific account filters | ||
| * and builds the account info objects from the matching ID token's claims | ||
| * @param cachedAccounts | ||
| * @param accountFilter | ||
| * @returns Array of AccountInfo objects that match account and tenant profile filters | ||
| */ | ||
| private buildTenantProfiles; | ||
| private getTenantedAccountInfoByFilter; | ||
| private getTenantProfilesFromAccountEntity; | ||
| private tenantProfileMatchesFilter; | ||
| private idTokenClaimsMatchTenantProfileFilter; | ||
| /** | ||
| * saves a cache record | ||
| * @param cacheRecord {CacheRecord} | ||
| * @param storeInCache {?StoreInCache} | ||
| * @param correlationId {?string} correlation id | ||
| */ | ||
| saveCacheRecord(cacheRecord: CacheRecord, correlationId: string, kmsi: boolean, apiId: number, storeInCache?: StoreInCache): Promise<void>; | ||
| /** | ||
| * saves access token credential | ||
| * @param credential | ||
| */ | ||
| private saveAccessToken; | ||
| /** | ||
| * Retrieve account entities matching all provided tenant-agnostic filters; if no filter is set, get all account entities in the cache | ||
| * Not checking for casing as keys are all generated in lower case, remember to convert to lower case if object properties are compared | ||
| * @param accountFilter - An object containing Account properties to filter by | ||
| */ | ||
| getAccountsFilteredBy(accountFilter: AccountFilter, correlationId: string): AccountEntity[]; | ||
| /** | ||
| * Returns whether or not the given credential entity matches the filter | ||
| * @param entity | ||
| * @param filter | ||
| * @param correlationId | ||
| * @returns | ||
| */ | ||
| credentialMatchesFilter(entity: ValidCredentialType, filter: CredentialFilter, correlationId: string): boolean; | ||
| /** | ||
| * retrieve appMetadata matching all provided filters; if no filter is set, get all appMetadata | ||
| * @param filter | ||
| * @param correlationId | ||
| */ | ||
| getAppMetadataFilteredBy(filter: AppMetadataFilter, correlationId: string): AppMetadataCache; | ||
| /** | ||
| * retrieve authorityMetadata that contains a matching alias | ||
| * @param host | ||
| * @param correlationId | ||
| */ | ||
| getAuthorityMetadataByAlias(host: string, correlationId: string): AuthorityMetadataEntity | null; | ||
| /** | ||
| * Removes all accounts and related tokens from cache. | ||
| */ | ||
| removeAllAccounts(correlationId: string): void; | ||
| /** | ||
| * Removes the account and related tokens for a given account key | ||
| * @param account | ||
| */ | ||
| removeAccount(account: AccountInfo, correlationId: string): void; | ||
| /** | ||
| * Removes credentials associated with the provided account | ||
| * @param account | ||
| */ | ||
| removeAccountContext(account: AccountInfo, correlationId: string): void; | ||
| /** | ||
| * returns a boolean if the given credential is removed | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| removeAccessToken(key: string, correlationId: string): void; | ||
| /** | ||
| * Removes all app metadata objects from cache. | ||
| */ | ||
| removeAppMetadata(correlationId: string): boolean; | ||
| /** | ||
| * Retrieve IdTokenEntity from cache | ||
| * @param account {AccountInfo} | ||
| * @param tokenKeys {?TokenKeys} | ||
| * @param targetRealm {?string} | ||
| * @param performanceClient {?IPerformanceClient} | ||
| * @param correlationId {?string} | ||
| */ | ||
| getIdToken(account: AccountInfo, correlationId: string, tokenKeys?: TokenKeys, targetRealm?: string): IdTokenEntity | null; | ||
| /** | ||
| * Gets all idTokens matching the given filter | ||
| * @param filter | ||
| * @returns | ||
| */ | ||
| getIdTokensByFilter(filter: CredentialFilter, correlationId: string, tokenKeys?: TokenKeys): Map<string, IdTokenEntity>; | ||
| /** | ||
| * Validate the cache key against filter before retrieving and parsing cache value | ||
| * @param key | ||
| * @param filter | ||
| * @returns | ||
| */ | ||
| idTokenKeyMatchesFilter(inputKey: string, filter: CredentialFilter): boolean; | ||
| /** | ||
| * Removes idToken from the cache | ||
| * @param key | ||
| */ | ||
| removeIdToken(key: string, correlationId: string): void; | ||
| /** | ||
| * Removes refresh token from the cache | ||
| * @param key | ||
| */ | ||
| removeRefreshToken(key: string, correlationId: string): void; | ||
| /** | ||
| * Retrieve AccessTokenEntity from cache | ||
| * @param account {AccountInfo} | ||
| * @param request {BaseAuthRequest} | ||
| * @param tokenKeys {?TokenKeys} | ||
| * @param performanceClient {?IPerformanceClient} | ||
| */ | ||
| getAccessToken(account: AccountInfo, request: BaseAuthRequest, tokenKeys?: TokenKeys, targetRealm?: string): AccessTokenEntity | null; | ||
| /** | ||
| * Validate the cache key against filter before retrieving and parsing cache value | ||
| * @param key | ||
| * @param filter | ||
| * @param keyMustContainAllScopes | ||
| * @returns | ||
| */ | ||
| accessTokenKeyMatchesFilter(inputKey: string, filter: CredentialFilter, keyMustContainAllScopes: boolean): boolean; | ||
| /** | ||
| * Gets all access tokens matching the filter | ||
| * @param filter | ||
| * @returns | ||
| */ | ||
| getAccessTokensByFilter(filter: CredentialFilter, correlationId: string): AccessTokenEntity[]; | ||
| /** | ||
| * Helper to retrieve the appropriate refresh token from cache | ||
| * @param account {AccountInfo} | ||
| * @param familyRT {boolean} | ||
| * @param tokenKeys {?TokenKeys} | ||
| * @param performanceClient {?IPerformanceClient} | ||
| * @param correlationId {?string} | ||
| */ | ||
| getRefreshToken(account: AccountInfo, familyRT: boolean, correlationId: string, tokenKeys?: TokenKeys): RefreshTokenEntity | null; | ||
| /** | ||
| * Validate the cache key against filter before retrieving and parsing cache value | ||
| * @param key | ||
| * @param filter | ||
| */ | ||
| refreshTokenKeyMatchesFilter(inputKey: string, filter: CredentialFilter): boolean; | ||
| /** | ||
| * Retrieve AppMetadataEntity from cache | ||
| */ | ||
| readAppMetadataFromCache(environment: string, correlationId: string): AppMetadataEntity | null; | ||
| /** | ||
| * Return the family_id value associated with FOCI | ||
| * @param environment | ||
| * @param clientId | ||
| */ | ||
| isAppMetadataFOCI(environment: string, correlationId: string): boolean; | ||
| /** | ||
| * helper to match account ids | ||
| * @param value | ||
| * @param homeAccountId | ||
| */ | ||
| private matchHomeAccountId; | ||
| /** | ||
| * helper to match account ids | ||
| * @param entity | ||
| * @param localAccountId | ||
| * @returns | ||
| */ | ||
| private matchLocalAccountIdFromTokenClaims; | ||
| private matchLocalAccountIdFromTenantProfile; | ||
| /** | ||
| * helper to match names | ||
| * @param entity | ||
| * @param name | ||
| * @returns true if the downcased name properties are present and match in the filter and the entity | ||
| */ | ||
| private matchName; | ||
| /** | ||
| * helper to match usernames | ||
| * @param entity | ||
| * @param username | ||
| * @returns | ||
| */ | ||
| private matchUsername; | ||
| /** | ||
| * helper to match loginhints | ||
| * @param entity | ||
| * @param loginHint | ||
| * @returns | ||
| */ | ||
| private matchLoginHintWithTenantProfile; | ||
| /** | ||
| * helper to match assertion | ||
| * @param value | ||
| * @param oboAssertion | ||
| */ | ||
| private matchUserAssertionHash; | ||
| /** | ||
| * helper to match environment | ||
| * @param value | ||
| * @param environment | ||
| */ | ||
| private matchEnvironment; | ||
| /** | ||
| * helper to match credential type | ||
| * @param entity | ||
| * @param credentialType | ||
| */ | ||
| private matchCredentialType; | ||
| /** | ||
| * helper to match client ids | ||
| * @param entity | ||
| * @param clientId | ||
| */ | ||
| private matchClientId; | ||
| /** | ||
| * helper to match family ids | ||
| * @param entity | ||
| * @param familyId | ||
| */ | ||
| private matchFamilyId; | ||
| /** | ||
| * helper to match realm | ||
| * @param entity | ||
| * @param realm | ||
| */ | ||
| private matchRealm; | ||
| /** | ||
| * helper to match nativeAccountId | ||
| * @param entity | ||
| * @param nativeAccountId | ||
| * @returns boolean indicating the match result | ||
| */ | ||
| private matchNativeAccountId; | ||
| /** | ||
| * helper to match loginHint which can be either: | ||
| * 1. login_hint ID token claim | ||
| * 2. username in cached account object | ||
| * 3. upn in ID token claims | ||
| * @param entity | ||
| * @param loginHint | ||
| * @returns | ||
| */ | ||
| private matchLoginHintFromTokenClaims; | ||
| /** | ||
| * Helper to match sid | ||
| * @param entity | ||
| * @param sid | ||
| * @returns true if the sid claim is present and matches the filter | ||
| */ | ||
| private matchSid; | ||
| private matchAuthorityType; | ||
| /** | ||
| * Returns true if the target scopes are a subset of the current entity's scopes, false otherwise. | ||
| * @param entity | ||
| * @param target | ||
| */ | ||
| private matchTarget; | ||
| /** | ||
| * Returns true if the credential's tokenType or Authentication Scheme matches the one in the request, false otherwise | ||
| * @param entity | ||
| * @param tokenType | ||
| */ | ||
| private matchTokenType; | ||
| /** | ||
| * Returns true if the credential's keyId matches the one in the request, false otherwise | ||
| * @param entity | ||
| * @param keyId | ||
| */ | ||
| private matchKeyId; | ||
| /** | ||
| * returns if a given cache entity is of the type appmetadata | ||
| * @param key | ||
| */ | ||
| private isAppMetadata; | ||
| /** | ||
| * returns if a given cache entity is of the type authoritymetadata | ||
| * @param key | ||
| */ | ||
| protected isAuthorityMetadata(key: string): boolean; | ||
| /** | ||
| * returns cache key used for cloud instance metadata | ||
| */ | ||
| generateAuthorityMetadataCacheKey(authority: string): string; | ||
| /** | ||
| * Helper to convert serialized data to object | ||
| * @param obj | ||
| * @param json | ||
| */ | ||
| static toObject<T>(obj: T, json: object): T; | ||
| } | ||
| /** @internal */ | ||
| export declare class DefaultStorageClass extends CacheManager { | ||
| setAccount(): Promise<void>; | ||
| getAccount(): AccountEntity; | ||
| setIdTokenCredential(): Promise<void>; | ||
| getIdTokenCredential(): IdTokenEntity; | ||
| setAccessTokenCredential(): Promise<void>; | ||
| getAccessTokenCredential(): AccessTokenEntity; | ||
| setRefreshTokenCredential(): Promise<void>; | ||
| getRefreshTokenCredential(): RefreshTokenEntity; | ||
| setAppMetadata(): void; | ||
| getAppMetadata(): AppMetadataEntity; | ||
| setServerTelemetry(): void; | ||
| getServerTelemetry(): ServerTelemetryEntity; | ||
| setAuthorityMetadata(): void; | ||
| getAuthorityMetadata(): AuthorityMetadataEntity | null; | ||
| getAuthorityMetadataKeys(): Array<string>; | ||
| setThrottlingCache(): void; | ||
| getThrottlingCache(): ThrottlingEntity; | ||
| removeItem(): boolean; | ||
| getKeys(): string[]; | ||
| getAccountKeys(): string[]; | ||
| getTokenKeys(): TokenKeys; | ||
| generateCredentialKey(): string; | ||
| generateAccountKey(): string; | ||
| } | ||
| //# sourceMappingURL=CacheManager.d.ts.map |
| {"version":3,"file":"CacheManager.d.ts","sourceRoot":"","sources":["../../src/cache/CacheManager.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,WAAW,EAGd,MAAM,2BAA2B,CAAC;AAInC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAO/C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEp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GAAG,OAAO;IAInD;;OAEG;IACH,iCAAiC,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAI5D;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;CAM9C;AAED,gBAAgB;AAChB,qBAAa,mBAAoB,SAAQ,YAAY;IAC3C,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAGjC,UAAU,IAAI,aAAa;IAGrB,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC;IAG3C,oBAAoB,IAAI,aAAa;IAG/B,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC;IAG/C,wBAAwB,IAAI,iBAAiB;IAGvC,yBAAyB,IAAI,OAAO,CAAC,IAAI,CAAC;IAGhD,yBAAyB,IAAI,kBAAkB;IAG/C,cAAc,IAAI,IAAI;IAGtB,cAAc,IAAI,iBAAiB;IAGnC,kBAAkB,IAAI,IAAI;IAG1B,kBAAkB,IAAI,qBAAqB;IAG3C,oBAAoB,IAAI,IAAI;IAG5B,oBAAoB,IAAI,uBAAuB,GAAG,IAAI;IAGtD,wBAAwB,IAAI,KAAK,CAAC,MAAM,CAAC;IAGzC,kBAAkB,IAAI,IAAI;IAG1B,kBAAkB,IAAI,gBAAgB;IAGtC,UAAU,IAAI,OAAO;IAGrB,OAAO,IAAI,MAAM,EAAE;IAGnB,cAAc,IAAI,MAAM,EAAE;IAG1B,YAAY,IAAI,SAAS;IAGzB,qBAAqB,IAAI,MAAM;IAG/B,kBAAkB,IAAI,MAAM;CAG/B"} |
| import { CredentialEntity } from "./CredentialEntity.js"; | ||
| import { AuthenticationScheme } from "../../utils/Constants.js"; | ||
| /** | ||
| * Access token cache type | ||
| */ | ||
| export type AccessTokenEntity = CredentialEntity & { | ||
| /** Full tenant or organizational identifier that the account belongs to */ | ||
| realm: string; | ||
| /** Permissions that are included in the token, or for refresh tokens, the resource identifier. */ | ||
| target: string; | ||
| /** Absolute device time when entry was created in the cache. */ | ||
| cachedAt: string; | ||
| /** Token expiry time, calculated based on current UTC time in seconds. Represented as a string. */ | ||
| expiresOn: string; | ||
| /** Additional extended expiry time until when token is valid in case of server-side outage. Represented as string in UTC seconds. */ | ||
| extendedExpiresOn?: string; | ||
| /** Used for proactive refresh */ | ||
| refreshOn?: string; | ||
| /** Matches the authentication scheme for which the token was issued (i.e. Bearer or pop) */ | ||
| tokenType?: AuthenticationScheme; | ||
| /** Matches the resource passed into the request for MCP flows */ | ||
| resource?: string; | ||
| }; | ||
| //# sourceMappingURL=AccessTokenEntity.d.ts.map |
| {"version":3,"file":"AccessTokenEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/AccessTokenEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,GAAG;IAC/C,2EAA2E;IAC3E,KAAK,EAAE,MAAM,CAAC;IACd,kGAAkG;IAClG,MAAM,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,QAAQ,EAAE,MAAM,CAAC;IACjB,mGAAmG;IACnG,SAAS,EAAE,MAAM,CAAC;IAClB,qIAAqI;IACrI,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4FAA4F;IAC5F,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"} |
| import { TenantProfile, DataBoundary } from "../../account/AccountInfo.js"; | ||
| /** | ||
| * Type that defines required and optional parameters for an Account field (based on universal cache schema implemented by all MSALs). | ||
| * | ||
| * Key : Value Schema | ||
| * | ||
| * Key: <home_account_id>-<environment>-<realm*> | ||
| * | ||
| * Value Schema: | ||
| * { | ||
| * homeAccountId: home account identifier for the auth scheme, | ||
| * environment: entity that issued the token, represented as a full host | ||
| * realm: Full tenant or organizational identifier that the account belongs to | ||
| * localAccountId: Original tenant-specific accountID, usually used for legacy cases | ||
| * username: primary username that represents the user, usually corresponds to preferred_username in the v2 endpt | ||
| * authorityType: Accounts authority type as a string | ||
| * name: Full name for the account, including given name and family name, | ||
| * lastModificationTime: last time this entity was modified in the cache | ||
| * lastModificationApp: | ||
| * nativeAccountId: Account identifier on the native device | ||
| * tenantProfiles: Array of tenant profile objects for each tenant that the account has authenticated with in the browser | ||
| * } | ||
| * @internal | ||
| */ | ||
| export type AccountEntity = { | ||
| homeAccountId: string; | ||
| environment: string; | ||
| realm: string; | ||
| localAccountId: string; | ||
| username: string; | ||
| authorityType: string; | ||
| loginHint?: string; | ||
| clientInfo?: string; | ||
| name?: string; | ||
| lastModificationTime?: string; | ||
| lastModificationApp?: string; | ||
| cloudGraphHostName?: string; | ||
| msGraphHost?: string; | ||
| nativeAccountId?: string; | ||
| tenantProfiles?: Array<TenantProfile>; | ||
| /** Timestamp when the entry was last updated */ | ||
| lastUpdatedAt: string; | ||
| dataBoundary?: DataBoundary; | ||
| /** API identifier for telemetry to indicate which API cached this account */ | ||
| cachedByApiId?: number; | ||
| }; | ||
| //# sourceMappingURL=AccountEntity.d.ts.map |
| {"version":3,"file":"AccountEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/AccountEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,aAAa,GAAG;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IACtC,gDAAgD;IAChD,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,6EAA6E;IAC7E,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC"} |
| /** | ||
| * App Metadata Cache Type | ||
| */ | ||
| export type AppMetadataEntity = { | ||
| /** clientId of the application */ | ||
| clientId: string; | ||
| /** entity that issued the token, represented as a full host */ | ||
| environment: string; | ||
| /** Family identifier, '1' represents Microsoft Family */ | ||
| familyId?: string; | ||
| }; | ||
| //# sourceMappingURL=AppMetadataEntity.d.ts.map |
| {"version":3,"file":"AppMetadataEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/AppMetadataEntity.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,kCAAkC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,+DAA+D;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"} |
| /** @internal */ | ||
| export type AuthorityMetadataEntity = { | ||
| aliases: Array<string>; | ||
| preferred_cache: string; | ||
| preferred_network: string; | ||
| canonical_authority: string; | ||
| authorization_endpoint: string; | ||
| token_endpoint: string; | ||
| end_session_endpoint?: string; | ||
| issuer: string; | ||
| aliasesFromNetwork: boolean; | ||
| endpointsFromNetwork: boolean; | ||
| expiresAt: number; | ||
| jwks_uri: string; | ||
| }; | ||
| //# sourceMappingURL=AuthorityMetadataEntity.d.ts.map |
| {"version":3,"file":"AuthorityMetadataEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/AuthorityMetadataEntity.ts"],"names":[],"mappings":"AAKA,gBAAgB;AAChB,MAAM,MAAM,uBAAuB,GAAG;IAClC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,OAAO,CAAC;IAC5B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"} |
| import { IdTokenEntity } from "./IdTokenEntity.js"; | ||
| import { AccessTokenEntity } from "./AccessTokenEntity.js"; | ||
| import { RefreshTokenEntity } from "./RefreshTokenEntity.js"; | ||
| import { AccountEntity } from "./AccountEntity.js"; | ||
| import { AppMetadataEntity } from "./AppMetadataEntity.js"; | ||
| /** @internal */ | ||
| export type CacheRecord = { | ||
| account?: AccountEntity | null; | ||
| idToken?: IdTokenEntity | null; | ||
| accessToken?: AccessTokenEntity | null; | ||
| refreshToken?: RefreshTokenEntity | null; | ||
| appMetadata?: AppMetadataEntity | null; | ||
| }; | ||
| //# sourceMappingURL=CacheRecord.d.ts.map |
| {"version":3,"file":"CacheRecord.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/CacheRecord.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,gBAAgB;AAChB,MAAM,MAAM,WAAW,GAAG;IACtB,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAC/B,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAC/B,WAAW,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACvC,YAAY,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACzC,WAAW,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;CAC1C,CAAC"} |
| import { CredentialType, AuthenticationScheme } from "../../utils/Constants.js"; | ||
| /** | ||
| * Credential Cache Type | ||
| */ | ||
| export type CredentialEntity = { | ||
| /** Identifier for the user in their home tenant*/ | ||
| homeAccountId: string; | ||
| /** Entity that issued the token, represented as a full host */ | ||
| environment: string; | ||
| /** Type of credential */ | ||
| credentialType: CredentialType; | ||
| /** Client ID of the application */ | ||
| clientId: string; | ||
| /** Actual credential as a string */ | ||
| secret: string; | ||
| /** Family ID identifier, usually only used for refresh tokens */ | ||
| familyId?: string; | ||
| /** Full tenant or organizational identifier that the account belongs to */ | ||
| realm?: string; | ||
| /** Permissions that are included in the token, or for refresh tokens, the resource identifier. */ | ||
| target?: string; | ||
| /** Matches the SHA 256 hash of the obo_assertion for the OBO flow */ | ||
| userAssertionHash?: string; | ||
| /** Matches the authentication scheme for which the token was issued (i.e. Bearer or pop) */ | ||
| tokenType?: AuthenticationScheme; | ||
| /** KeyId for PoP and SSH tokens stored in the kid claim */ | ||
| keyId?: string; | ||
| /** Timestamp when the entry was last updated */ | ||
| lastUpdatedAt: string; | ||
| }; | ||
| //# sourceMappingURL=CredentialEntity.d.ts.map |
| {"version":3,"file":"CredentialEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/CredentialEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC3B,kDAAkD;IAClD,aAAa,EAAE,MAAM,CAAC;IACtB,+DAA+D;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB,yBAAyB;IACzB,cAAc,EAAE,cAAc,CAAC;IAC/B,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,oCAAoC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kGAAkG;IAClG,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,4FAA4F;IAC5F,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC"} |
| import { CredentialEntity } from "./CredentialEntity.js"; | ||
| /** | ||
| * Id Token Cache Type | ||
| */ | ||
| export type IdTokenEntity = CredentialEntity & { | ||
| /** Full tenant or organizational identifier that the account belongs to */ | ||
| realm: string; | ||
| }; | ||
| //# sourceMappingURL=IdTokenEntity.d.ts.map |
| {"version":3,"file":"IdTokenEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/IdTokenEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,gBAAgB,GAAG;IAC3C,4EAA4E;IAC5E,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC"} |
| import { CredentialEntity } from "./CredentialEntity.js"; | ||
| /** | ||
| * Refresh Token Cache Type | ||
| */ | ||
| export type RefreshTokenEntity = CredentialEntity & { | ||
| expiresOn?: string; | ||
| }; | ||
| //# sourceMappingURL=RefreshTokenEntity.d.ts.map |
| {"version":3,"file":"RefreshTokenEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/RefreshTokenEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"} |
| export type ServerTelemetryEntity = { | ||
| failedRequests: Array<string | number>; | ||
| errors: string[]; | ||
| cacheHits: number; | ||
| nativeBrokerErrorCode?: string; | ||
| }; | ||
| //# sourceMappingURL=ServerTelemetryEntity.d.ts.map |
| {"version":3,"file":"ServerTelemetryEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/ServerTelemetryEntity.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,qBAAqB,GAAG;IAChC,cAAc,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACvC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAClC,CAAC"} |
| export type ThrottlingEntity = { | ||
| throttleTime: number; | ||
| error?: string; | ||
| errorCodes?: Array<string>; | ||
| errorMessage?: string; | ||
| subError?: string; | ||
| }; | ||
| //# sourceMappingURL=ThrottlingEntity.d.ts.map |
| {"version":3,"file":"ThrottlingEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/ThrottlingEntity.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,gBAAgB,GAAG;IAE3B,YAAY,EAAE,MAAM,CAAC;IAErB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"} |
| import { AccountFilter } from "../utils/CacheTypes.js"; | ||
| import { CacheRecord } from "../entities/CacheRecord.js"; | ||
| import { AccountEntity } from "../entities/AccountEntity.js"; | ||
| import { AccountInfo } from "../../account/AccountInfo.js"; | ||
| import { AppMetadataEntity } from "../entities/AppMetadataEntity.js"; | ||
| import { ServerTelemetryEntity } from "../entities/ServerTelemetryEntity.js"; | ||
| import { ThrottlingEntity } from "../entities/ThrottlingEntity.js"; | ||
| import { IdTokenEntity } from "../entities/IdTokenEntity.js"; | ||
| import { AccessTokenEntity } from "../entities/AccessTokenEntity.js"; | ||
| import { RefreshTokenEntity } from "../entities/RefreshTokenEntity.js"; | ||
| import { AuthorityMetadataEntity } from "../entities/AuthorityMetadataEntity.js"; | ||
| import { StoreInCache } from "../../request/StoreInCache.js"; | ||
| export interface ICacheManager { | ||
| /** | ||
| * fetch the account entity from the platform cache | ||
| * @param accountKey | ||
| * @param correlationId | ||
| */ | ||
| getAccount(accountKey: string, correlationId: string): AccountEntity | null; | ||
| /** | ||
| * set account entity in the platform cache | ||
| * @param account | ||
| * @param correlationId | ||
| */ | ||
| setAccount(account: AccountEntity, correlationId: string, kmsi: boolean, apiId: number): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param idTokenKey | ||
| * @param correlationId | ||
| */ | ||
| getIdTokenCredential(idTokenKey: string, correlationId: string): IdTokenEntity | null; | ||
| /** | ||
| * set idToken entity to the platform cache | ||
| * @param idToken | ||
| * @param correlationId | ||
| */ | ||
| setIdTokenCredential(idToken: IdTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param accessTokenKey | ||
| * @param correlationId | ||
| */ | ||
| getAccessTokenCredential(accessTokenKey: string, correlationId: string): AccessTokenEntity | null; | ||
| /** | ||
| * set idToken entity to the platform cache | ||
| * @param accessToken | ||
| * @param correlationId | ||
| */ | ||
| setAccessTokenCredential(accessToken: AccessTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param refreshTokenKey | ||
| * @param correlationId | ||
| */ | ||
| getRefreshTokenCredential(refreshTokenKey: string, correlationId: string): RefreshTokenEntity | null; | ||
| /** | ||
| * set idToken entity to the platform cache | ||
| * @param refreshToken | ||
| * @param correlationId | ||
| */ | ||
| setRefreshTokenCredential(refreshToken: RefreshTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch appMetadata entity from the platform cache | ||
| * @param appMetadataKey | ||
| * @param correlationId | ||
| */ | ||
| getAppMetadata(appMetadataKey: string, correlationId: string): AppMetadataEntity | null; | ||
| /** | ||
| * set appMetadata entity to the platform cache | ||
| * @param appMetadata | ||
| * @param correlationId | ||
| */ | ||
| setAppMetadata(appMetadata: AppMetadataEntity, correlationId: string): void; | ||
| /** | ||
| * fetch server telemetry entity from the platform cache | ||
| * @param serverTelemetryKey | ||
| * @param correlationId | ||
| */ | ||
| getServerTelemetry(serverTelemetryKey: string, correlationId: string): ServerTelemetryEntity | null; | ||
| /** | ||
| * set server telemetry entity to the platform cache | ||
| * @param serverTelemetryKey | ||
| * @param serverTelemetry | ||
| * @param correlationId | ||
| */ | ||
| setServerTelemetry(serverTelemetryKey: string, serverTelemetry: ServerTelemetryEntity, correlationId: string): void; | ||
| /** | ||
| * fetch cloud discovery metadata entity from the platform cache | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| getAuthorityMetadata(key: string, correlationId: string): AuthorityMetadataEntity | null; | ||
| /** | ||
| * Get cache keys for authority metadata | ||
| * @param correlationId | ||
| */ | ||
| getAuthorityMetadataKeys(correlationId: string): Array<string>; | ||
| /** | ||
| * set cloud discovery metadata entity to the platform cache | ||
| * @param key | ||
| * @param value | ||
| * @param correlationId | ||
| */ | ||
| setAuthorityMetadata(key: string, value: AuthorityMetadataEntity, correlationId: string): void; | ||
| /** | ||
| * Provide an alias to find a matching AuthorityMetadataEntity in cache | ||
| * @param host | ||
| * @param correlationId | ||
| */ | ||
| getAuthorityMetadataByAlias(host: string, correlationId: string): AuthorityMetadataEntity | null; | ||
| /** | ||
| * given an authority generates the cache key for authorityMetadata | ||
| * @param authority | ||
| * @param correlationId | ||
| */ | ||
| generateAuthorityMetadataCacheKey(authority: string, correlationId: string): string; | ||
| /** | ||
| * fetch throttling entity from the platform cache | ||
| * @param throttlingCacheKey | ||
| * @param correlationId | ||
| */ | ||
| getThrottlingCache(throttlingCacheKey: string, correlationId: string): ThrottlingEntity | null; | ||
| /** | ||
| * set throttling entity to the platform cache | ||
| * @param throttlingCacheKey | ||
| * @param throttlingCache | ||
| * @param correlationId | ||
| */ | ||
| setThrottlingCache(throttlingCacheKey: string, throttlingCache: ThrottlingEntity, correlationId: string): void; | ||
| /** | ||
| * Returns all accounts in cache | ||
| * @param filter | ||
| * @param correlationId | ||
| */ | ||
| getAllAccounts(filter: AccountFilter, correlationId: string): AccountInfo[]; | ||
| /** | ||
| * saves a cache record | ||
| * @param cacheRecord | ||
| * @param correlationId | ||
| * @param storeInCache | ||
| */ | ||
| saveCacheRecord(cacheRecord: CacheRecord, correlationId: string, kmsi: boolean, apiId: number, storeInCache?: StoreInCache): Promise<void>; | ||
| /** | ||
| * retrieve accounts matching all provided filters; if no filter is set, get all accounts | ||
| * @param filter | ||
| * @param correlationId | ||
| */ | ||
| getAccountsFilteredBy(filter: AccountFilter, correlationId: string): AccountEntity[]; | ||
| /** | ||
| * Get AccountInfo object based on provided filters | ||
| * @param filter | ||
| * @param correlationId | ||
| */ | ||
| getAccountInfoFilteredBy(filter: AccountFilter, correlationId: string): AccountInfo | null; | ||
| /** | ||
| * Removes all accounts and related tokens from cache. | ||
| * @param correlationId | ||
| */ | ||
| removeAllAccounts(correlationId: string): void; | ||
| /** | ||
| * returns a boolean if the given account is removed | ||
| * @param account | ||
| * @param correlationId | ||
| */ | ||
| removeAccount(account: AccountInfo, correlationId: string): void; | ||
| /** | ||
| * returns a boolean if the given account is removed | ||
| * @param account | ||
| * @param correlationId | ||
| */ | ||
| removeAccountContext(account: AccountInfo, correlationId: string): void; | ||
| /** | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| removeIdToken(key: string, correlationId: string): void; | ||
| /** | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| removeAccessToken(key: string, correlationId: string): void; | ||
| /** | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| removeRefreshToken(key: string, correlationId: string): void; | ||
| } | ||
| //# sourceMappingURL=ICacheManager.d.ts.map |
| {"version":3,"file":"ICacheManager.d.ts","sourceRoot":"","sources":["../../../src/cache/interface/ICacheManager.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,aAAa,EAAE,MAA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AM,EAAE,aAAa,EACrB,aAAa,EAAE,MAAM,GACtB,aAAa,EAAE,CAAC;IAEnB;;;;OAIG;IACH,wBAAwB,CACpB,MAAM,EAAE,aAAa,EACrB,aAAa,EAAE,MAAM,GACtB,WAAW,GAAG,IAAI,CAAC;IAEtB;;;OAGG;IACH,iBAAiB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/C;;;;OAIG;IACH,aAAa,CAAC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjE;;;;OAIG;IACH,oBAAoB,CAAC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAExE;;;OAGG;IACH,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAExD;;;OAGG;IACH,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5D;;;OAGG;IACH,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAChE"} |
| import { TokenCacheContext } from "../persistence/TokenCacheContext.js"; | ||
| export interface ICachePlugin { | ||
| beforeCacheAccess: (tokenCacheContext: TokenCacheContext) => Promise<void>; | ||
| afterCacheAccess: (tokenCacheContext: TokenCacheContext) => Promise<void>; | ||
| } | ||
| //# sourceMappingURL=ICachePlugin.d.ts.map |
| {"version":3,"file":"ICachePlugin.d.ts","sourceRoot":"","sources":["../../../src/cache/interface/ICachePlugin.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,MAAM,WAAW,YAAY;IACzB,iBAAiB,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3E,gBAAgB,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7E"} |
| export interface ISerializableTokenCache { | ||
| deserialize: (cache: string) => void; | ||
| serialize: () => string; | ||
| } | ||
| //# sourceMappingURL=ISerializableTokenCache.d.ts.map |
| {"version":3,"file":"ISerializableTokenCache.d.ts","sourceRoot":"","sources":["../../../src/cache/interface/ISerializableTokenCache.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,uBAAuB;IACpC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,SAAS,EAAE,MAAM,MAAM,CAAC;CAC3B"} |
| import { ISerializableTokenCache } from "../interface/ISerializableTokenCache.js"; | ||
| /** | ||
| * This class instance helps track the memory changes facilitating | ||
| * decisions to read from and write to the persistent cache | ||
| */ export declare class TokenCacheContext { | ||
| /** | ||
| * boolean indicating cache change | ||
| */ | ||
| hasChanged: boolean; | ||
| /** | ||
| * serializable token cache interface | ||
| */ | ||
| cache: ISerializableTokenCache; | ||
| constructor(tokenCache: ISerializableTokenCache, hasChanged: boolean); | ||
| /** | ||
| * boolean which indicates the changes in cache | ||
| */ | ||
| get cacheHasChanged(): boolean; | ||
| /** | ||
| * function to retrieve the token cache | ||
| */ | ||
| get tokenCache(): ISerializableTokenCache; | ||
| } | ||
| //# sourceMappingURL=TokenCacheContext.d.ts.map |
| {"version":3,"file":"TokenCacheContext.d.ts","sourceRoot":"","sources":["../../../src/cache/persistence/TokenCacheContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAElF;;;GAGG,CAAC,qBAAa,iBAAiB;IAC9B;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,uBAAuB,CAAC;gBAEnB,UAAU,EAAE,uBAAuB,EAAE,UAAU,EAAE,OAAO;IAKpE;;OAEG;IACH,IAAI,eAAe,IAAI,OAAO,CAE7B;IAED;;OAEG;IACH,IAAI,UAAU,IAAI,uBAAuB,CAExC;CACJ"} |
| import { Authority } from "../../authority/Authority.js"; | ||
| import { ICrypto } from "../../crypto/ICrypto.js"; | ||
| import { AccountInfo, TenantProfile } from "../../account/AccountInfo.js"; | ||
| import { AuthorityType } from "../../authority/AuthorityType.js"; | ||
| import { Logger } from "../../logger/Logger.js"; | ||
| import { TokenClaims } from "../../account/TokenClaims.js"; | ||
| import { AccountEntity } from "../entities/AccountEntity.js"; | ||
| /** | ||
| * Generate Account Id key component as per the schema: <home_account_id>-<environment> | ||
| */ | ||
| export declare function generateAccountId(accountEntity: AccountEntity): string; | ||
| /** | ||
| * Returns the AccountInfo interface for this account. | ||
| */ | ||
| export declare function getAccountInfo(accountEntity: AccountEntity): AccountInfo; | ||
| /** | ||
| * Returns true if the account entity is in single tenant format (outdated), false otherwise | ||
| */ | ||
| export declare function isSingleTenant(accountEntity: AccountEntity): boolean; | ||
| /** | ||
| * Build Account cache from IdToken, clientInfo and authority/policy. Associated with AAD. | ||
| * @param accountDetails | ||
| */ | ||
| export declare function createAccountEntity(accountDetails: { | ||
| homeAccountId: string; | ||
| idTokenClaims?: TokenClaims; | ||
| clientInfo?: string; | ||
| cloudGraphHostName?: string; | ||
| msGraphHost?: string; | ||
| environment?: string; | ||
| nativeAccountId?: string; | ||
| tenantProfiles?: Array<TenantProfile>; | ||
| }, authority: Authority, base64Decode?: (input: string) => string): AccountEntity; | ||
| /** | ||
| * Creates an AccountEntity object from AccountInfo | ||
| * @param accountInfo | ||
| * @param cloudGraphHostName | ||
| * @param msGraphHost | ||
| * @returns | ||
| */ | ||
| export declare function createAccountEntityFromAccountInfo(accountInfo: AccountInfo, cloudGraphHostName?: string, msGraphHost?: string): AccountEntity; | ||
| /** | ||
| * Generate HomeAccountId from server response | ||
| * @param serverClientInfo | ||
| * @param authType | ||
| */ | ||
| export declare function generateHomeAccountId(serverClientInfo: string, authType: AuthorityType, logger: Logger, cryptoObj: ICrypto, correlationId: string, idTokenClaims?: TokenClaims): string; | ||
| /** | ||
| * Validates an entity: checks for all expected params | ||
| * @param entity | ||
| */ | ||
| export declare function isAccountEntity(entity: object): entity is AccountEntity; | ||
| //# sourceMappingURL=AccountEntityUtils.d.ts.map |
| {"version":3,"file":"AccountEntityUtils.d.ts","sourceRoot":"","sources":["../../../src/cache/utils/AccountEntityUtils.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,OAAO,EACH,WAAW,EACX,aAAa,EAGhB,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EACH,WAAW,EAEd,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAMtE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,aAAa,EAAE,aAAa,GAAG,WAAW,CAkCxE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,aAAa,EAAE,aAAa,GAAG,OAAO,CAEpE;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAC/B,cAAc,EAAE;IACZ,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,WAAW,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CACzC,EACD,SAAS,EAAE,SAAS,EACpB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GACzC,aAAa,CAuFf;AAED;;;;;;GAMG;AACH,wBAAgB,kCAAkC,CAC9C,WAAW,EAAE,WAAW,EACxB,kBAAkB,CAAC,EAAE,MAAM,EAC3B,WAAW,CAAC,EAAE,MAAM,GACrB,aAAa,CAoCf;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACjC,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,aAAa,EACvB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,OAAO,EAClB,aAAa,EAAE,MAAM,EACrB,aAAa,CAAC,EAAE,WAAW,GAC5B,MAAM,CAoBR;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,aAAa,CAavE"} |
| import { CloudDiscoveryMetadata } from "../../authority/CloudDiscoveryMetadata.js"; | ||
| import { OpenIdConfigResponse } from "../../authority/OpenIdConfigResponse.js"; | ||
| import * as Constants from "../../utils/Constants.js"; | ||
| import { AccessTokenEntity } from "../entities/AccessTokenEntity.js"; | ||
| import { AppMetadataEntity } from "../entities/AppMetadataEntity.js"; | ||
| import { AuthorityMetadataEntity } from "../entities/AuthorityMetadataEntity.js"; | ||
| import { CredentialEntity } from "../entities/CredentialEntity.js"; | ||
| import { IdTokenEntity } from "../entities/IdTokenEntity.js"; | ||
| import { RefreshTokenEntity } from "../entities/RefreshTokenEntity.js"; | ||
| /** | ||
| * Create IdTokenEntity | ||
| * @param homeAccountId | ||
| * @param authenticationResult | ||
| * @param clientId | ||
| * @param authority | ||
| */ | ||
| export declare function createIdTokenEntity(homeAccountId: string, environment: string, idToken: string, clientId: string, tenantId: string): IdTokenEntity; | ||
| /** | ||
| * Create AccessTokenEntity | ||
| * @param homeAccountId | ||
| * @param environment | ||
| * @param accessToken | ||
| * @param clientId | ||
| * @param tenantId | ||
| * @param scopes | ||
| * @param expiresOn | ||
| * @param extExpiresOn | ||
| */ | ||
| export declare function createAccessTokenEntity(homeAccountId: string, environment: string, accessToken: string, clientId: string, tenantId: string, scopes: string, expiresOn: number, extExpiresOn: number, base64Decode: (input: string) => string, refreshOn?: number, tokenType?: Constants.AuthenticationScheme, userAssertionHash?: string, keyId?: string): AccessTokenEntity; | ||
| /** | ||
| * Create RefreshTokenEntity | ||
| * @param homeAccountId | ||
| * @param authenticationResult | ||
| * @param clientId | ||
| * @param authority | ||
| */ | ||
| export declare function createRefreshTokenEntity(homeAccountId: string, environment: string, refreshToken: string, clientId: string, familyId?: string, userAssertionHash?: string, expiresOn?: number): RefreshTokenEntity; | ||
| export declare function isCredentialEntity(entity: object): entity is CredentialEntity; | ||
| /** | ||
| * Validates an entity: checks for all expected params | ||
| * @param entity | ||
| */ | ||
| export declare function isAccessTokenEntity(entity: object): entity is AccessTokenEntity; | ||
| /** | ||
| * Validates an entity: checks for all expected params | ||
| * @param entity | ||
| */ | ||
| export declare function isIdTokenEntity(entity: object): entity is IdTokenEntity; | ||
| /** | ||
| * Validates an entity: checks for all expected params | ||
| * @param entity | ||
| */ | ||
| export declare function isRefreshTokenEntity(entity: object): entity is RefreshTokenEntity; | ||
| /** | ||
| * validates if a given cache entry is "Telemetry", parses <key,value> | ||
| * @param key | ||
| * @param entity | ||
| */ | ||
| export declare function isServerTelemetryEntity(key: string, entity?: object): boolean; | ||
| /** | ||
| * validates if a given cache entry is "Throttling", parses <key,value> | ||
| * @param key | ||
| * @param entity | ||
| */ | ||
| export declare function isThrottlingEntity(key: string, entity?: object): boolean; | ||
| /** | ||
| * Generate AppMetadata Cache Key as per the schema: appmetadata-<environment>-<client_id> | ||
| */ | ||
| export declare function generateAppMetadataKey({ environment, clientId, }: AppMetadataEntity): string; | ||
| export declare function isAppMetadataEntity(key: string, entity: object): boolean; | ||
| /** | ||
| * Validates an entity: checks for all expected params | ||
| * @param entity | ||
| */ | ||
| export declare function isAuthorityMetadataEntity(key: string, entity: object): boolean; | ||
| /** | ||
| * Reset the exiresAt value | ||
| */ | ||
| export declare function generateAuthorityMetadataExpiresAt(): number; | ||
| export declare function updateAuthorityEndpointMetadata(authorityMetadata: AuthorityMetadataEntity, updatedValues: OpenIdConfigResponse, fromNetwork: boolean): void; | ||
| export declare function updateCloudDiscoveryMetadata(authorityMetadata: AuthorityMetadataEntity, updatedValues: CloudDiscoveryMetadata, fromNetwork: boolean): void; | ||
| /** | ||
| * Returns whether or not the data needs to be refreshed | ||
| */ | ||
| export declare function isAuthorityMetadataExpired(metadata: AuthorityMetadataEntity): boolean; | ||
| //# sourceMappingURL=CacheHelpers.d.ts.map |
| {"version":3,"file":"CacheHelpers.d.ts","sourceRoot":"","sources":["../../../src/cache/utils/CacheHelpers.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAK/E,OAAO,KAAK,SAAS,MAAM,0BAA0B,CAAC;AAEtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAC/B,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,GACjB,aAAa,CAYf;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CACnC,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE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gB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAUxE;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACrC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,GACf,OAAO,CAmBT;AAED;;GAEG;AACH,wBAAgB,kCAAkC,IAAI,MAAM,CAK3D;AAED,wBAAgB,+BAA+B,CAC3C,iBAAiB,EAAE,uBAAuB,EAC1C,aAAa,EAAE,oBAAoB,EACnC,WAAW,EAAE,OAAO,GACrB,IAAI,CAQN;AAED,wBAAgB,4BAA4B,CACxC,iBAAiB,EAAE,uBAAuB,EAC1C,aAAa,EAAE,sBAAsB,EACrC,WAAW,EAAE,OAAO,GACrB,IAAI,CAKN;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CACtC,QAAQ,EAAE,uBAAuB,GAClC,OAAO,CAET"} |
| import { AccountEntity } from "../entities/AccountEntity.js"; | ||
| import { IdTokenEntity } from "../entities/IdTokenEntity.js"; | ||
| import { AccessTokenEntity } from "../entities/AccessTokenEntity.js"; | ||
| import { RefreshTokenEntity } from "../entities/RefreshTokenEntity.js"; | ||
| import { AppMetadataEntity } from "../entities/AppMetadataEntity.js"; | ||
| import { ServerTelemetryEntity } from "../entities/ServerTelemetryEntity.js"; | ||
| import { ThrottlingEntity } from "../entities/ThrottlingEntity.js"; | ||
| import { AuthorityMetadataEntity } from "../entities/AuthorityMetadataEntity.js"; | ||
| import { AuthenticationScheme } from "../../utils/Constants.js"; | ||
| import { ScopeSet } from "../../request/ScopeSet.js"; | ||
| import { AccountInfo } from "../../account/AccountInfo.js"; | ||
| /** @internal */ | ||
| export type AccountCache = Record<string, AccountEntity>; | ||
| /** @internal */ | ||
| export type IdTokenCache = Record<string, IdTokenEntity>; | ||
| /** @internal */ | ||
| export type AccessTokenCache = Record<string, AccessTokenEntity>; | ||
| /** @internal */ | ||
| export type RefreshTokenCache = Record<string, RefreshTokenEntity>; | ||
| /** @internal */ | ||
| export type AppMetadataCache = Record<string, AppMetadataEntity>; | ||
| /** | ||
| * Object type of all accepted cache types | ||
| * @internal | ||
| */ | ||
| export type ValidCacheType = AccountEntity | IdTokenEntity | AccessTokenEntity | RefreshTokenEntity | AppMetadataEntity | AuthorityMetadataEntity | ServerTelemetryEntity | ThrottlingEntity | string; | ||
| /** | ||
| * Object type of all credential types | ||
| * @internal | ||
| */ | ||
| export type ValidCredentialType = IdTokenEntity | AccessTokenEntity | RefreshTokenEntity; | ||
| /** | ||
| * Account: <home_account_id>-<environment>-<realm*> | ||
| */ | ||
| export type AccountFilter = Omit<Partial<AccountInfo>, "idToken" | "idTokenClaims"> & { | ||
| realm?: string; | ||
| loginHint?: string; | ||
| sid?: string; | ||
| isHomeTenant?: boolean; | ||
| }; | ||
| export type TenantProfileFilter = Pick<AccountFilter, "localAccountId" | "loginHint" | "name" | "sid" | "isHomeTenant" | "username" | "upn">; | ||
| /** | ||
| * Credential: <home_account_id*>-<environment>-<credential_type>-<client_id>-<realm*>-<target*>-<scheme*> | ||
| */ | ||
| export type CredentialFilter = { | ||
| homeAccountId?: string; | ||
| environment?: string; | ||
| credentialType?: string; | ||
| clientId?: string; | ||
| familyId?: string; | ||
| realm?: string; | ||
| target?: ScopeSet; | ||
| userAssertionHash?: string; | ||
| tokenType?: AuthenticationScheme; | ||
| keyId?: string; | ||
| }; | ||
| /** | ||
| * AppMetadata: appmetadata-<environment>-<client_id> | ||
| */ | ||
| export type AppMetadataFilter = { | ||
| environment?: string; | ||
| clientId?: string; | ||
| }; | ||
| export type TokenKeys = { | ||
| idToken: string[]; | ||
| accessToken: string[]; | ||
| refreshToken: string[]; | ||
| }; | ||
| //# sourceMappingURL=CacheTypes.d.ts.map |
| {"version":3,"file":"CacheTypes.d.ts","sourceRoot":"","sources":["../../../src/cache/utils/CacheTypes.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE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,GAAG,IAAI,CAC5B,OAAO,CAAC,WAAW,CAAC,EACpB,SAAS,GAAG,eAAe,CAC9B,GAAG;IACA,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAClC,aAAa,EACX,gBAAgB,GAChB,WAAW,GACX,MAAM,GACN,KAAK,GACL,cAAc,GACd,UAAU,GACV,KAAK,CACV,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,EAAE,MAAM,EAAE,CAAC;CAC1B,CAAC"} |
| import { CommonAuthorizationCodeRequest } from "../request/CommonAuthorizationCodeRequest.js"; | ||
| import { Authority } from "../authority/Authority.js"; | ||
| import { ClientConfiguration, CommonClientConfiguration } from "../config/ClientConfiguration.js"; | ||
| import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
| import { CommonEndSessionRequest } from "../request/CommonEndSessionRequest.js"; | ||
| import { AuthorizationCodePayload } from "../response/AuthorizationCodePayload.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| /** | ||
| * Oauth2.0 Authorization Code client | ||
| * @internal | ||
| */ | ||
| export declare class AuthorizationCodeClient { | ||
| protected includeRedirectUri: boolean; | ||
| private oidcDefaultScopes; | ||
| logger: Logger; | ||
| protected config: CommonClientConfiguration; | ||
| protected cryptoUtils: ICrypto; | ||
| protected cacheManager: CacheManager; | ||
| protected networkClient: INetworkModule; | ||
| protected serverTelemetryManager: ServerTelemetryManager | null; | ||
| authority: Authority; | ||
| protected performanceClient: IPerformanceClient; | ||
| constructor(configuration: ClientConfiguration, performanceClient: IPerformanceClient); | ||
| /** | ||
| * API to acquire a token in exchange of 'authorization_code` acquired by the user in the first leg of the | ||
| * authorization_code_grant | ||
| * @param request | ||
| */ | ||
| acquireToken(request: CommonAuthorizationCodeRequest, apiId: number, authCodePayload?: AuthorizationCodePayload): Promise<AuthenticationResult>; | ||
| /** | ||
| * Used to log out the current user, and redirect the user to the postLogoutRedirectUri. | ||
| * Default behaviour is to redirect the user to `window.location.href`. | ||
| * @param authorityUri | ||
| */ | ||
| getLogoutUri(logoutRequest: CommonEndSessionRequest): string; | ||
| /** | ||
| * Executes POST request to token endpoint | ||
| * @param authority | ||
| * @param request | ||
| */ | ||
| private executeTokenRequest; | ||
| /** | ||
| * Generates a map for all the params to be sent to the service | ||
| * @param request | ||
| */ | ||
| private createTokenRequestBody; | ||
| /** | ||
| * This API validates the `EndSessionRequest` and creates a URL | ||
| * @param request | ||
| */ | ||
| private createLogoutUrlQueryString; | ||
| /** | ||
| * Updates the authority to the cloud instance provided in the authorization response | ||
| * @param cloudInstanceHostName - cloud instance host name from authorization code payload | ||
| * @param correlationId - request correlation id | ||
| */ | ||
| private updateTokenEndpointAuthority; | ||
| } | ||
| //# sourceMappingURL=AuthorizationCodeClient.d.ts.map |
| {"version":3,"file":"AuthorizationCodeClient.d.ts","sourceRoot":"","sources":["../../src/client/AuthorizationCodeClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,8BAA8B,EAAE,MAAM,8CAA8C,CAAC;AAC9F,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAKtD,OAAO,EAEH,mBAAmB,EACnB,yBAAyB,EAE5B,MAAM,kCAAkC,CAAC;AAI1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAM3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAEhF,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AAWnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAYpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG9D;;;GAGG;AACH,qBAAa,uBAAuB;IAEhC,SAAS,CAAC,kBAAkB,EAAE,OAAO,CAAQ;IAC7C,OAAO,CAAC,iBAAiB,CAAC;IAGnB,MAAM,EAAE,MAAM,CAAC;IAGtB,SAAS,CAAC,MAAM,EAAE,yBAAyB,CAAC;IAG5C,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC;IAG/B,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAGrC,SAAS,CAAC,aAAa,EAAE,cAAc,CAAC;IAGxC,SAAS,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAGzD,SAAS,EAAE,SAAS,CAAC;IAG5B,SAAS,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;gBAG5C,aAAa,EAAE,mBAAmB,EAClC,iBAAiB,EAAE,kBAAkB;IA6BzC;;;;OAIG;IACG,YAAY,CACd,OAAO,EAAE,8BAA8B,EACvC,KAAK,EAAE,MAAM,EACb,eAAe,CAAC,EAAE,wBAAwB,GAC3C,OAAO,CAAC,oBAAoB,CAAC;IAmEhC;;;;OAIG;IACH,YAAY,CAAC,aAAa,EAAE,uBAAuB,GAAG,MAAM;IAgB5D;;;;OAIG;YACW,mBAAmB;IAyEjC;;;OAGG;YACW,sBAAsB;IAoOpC;;;OAGG;IACH,OAAO,CAAC,0BAA0B;IAmDlC;;;;OAIG;YACW,4BAA4B;CAgB7C"} |
| import { ClientConfiguration, CommonClientConfiguration } from "../config/ClientConfiguration.js"; | ||
| import { CommonRefreshTokenRequest } from "../request/CommonRefreshTokenRequest.js"; | ||
| import { Authority } from "../authority/Authority.js"; | ||
| import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
| import { CommonSilentFlowRequest } from "../request/CommonSilentFlowRequest.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| /** | ||
| * OAuth2.0 refresh token client | ||
| * @internal | ||
| */ | ||
| export declare class RefreshTokenClient { | ||
| logger: Logger; | ||
| protected config: CommonClientConfiguration; | ||
| protected cryptoUtils: ICrypto; | ||
| protected cacheManager: CacheManager; | ||
| protected networkClient: INetworkModule; | ||
| protected serverTelemetryManager: ServerTelemetryManager | null; | ||
| authority: Authority; | ||
| protected performanceClient: IPerformanceClient; | ||
| constructor(configuration: ClientConfiguration, performanceClient: IPerformanceClient); | ||
| acquireToken(request: CommonRefreshTokenRequest, apiId: number): Promise<AuthenticationResult>; | ||
| /** | ||
| * Gets cached refresh token and attaches to request, then calls acquireToken API | ||
| * @param request | ||
| */ | ||
| acquireTokenByRefreshToken(request: CommonSilentFlowRequest, apiId: number): Promise<AuthenticationResult>; | ||
| /** | ||
| * makes a network call to acquire tokens by exchanging RefreshToken available in userCache; throws if refresh token is not cached | ||
| * @param request | ||
| */ | ||
| private acquireTokenWithCachedRefreshToken; | ||
| /** | ||
| * Constructs the network message and makes a NW call to the underlying secure token service | ||
| * @param request | ||
| * @param authority | ||
| */ | ||
| private executeTokenRequest; | ||
| /** | ||
| * Helper function to create the token request body | ||
| * @param request | ||
| */ | ||
| private createTokenRequestBody; | ||
| } | ||
| //# sourceMappingURL=RefreshTokenClient.d.ts.map |
| {"version":3,"file":"RefreshTokenClient.d.ts","sourceRoot":"","sources":["../../src/client/RefreshTokenClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,mBAAmB,EACnB,yBAAyB,EAE5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAOtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAG3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAoBhF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAUpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAK7C;;;GAGG;AACH,qBAAa,kBAAkB;IAEpB,MAAM,EAAE,MAAM,CAAC;IAGtB,SAAS,CAAC,MAAM,EAAE,yBAAyB,CAAC;IAG5C,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC;IAG/B,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAGrC,SAAS,CAAC,aAAa,EAAE,cAAc,CAAC;IAGxC,SAAS,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAGzD,SAAS,EAAE,SAAS,CAAC;IAG5B,SAAS,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;gBAG5C,aAAa,EAAE,mBAAmB,EAClC,iBAAiB,EAAE,kBAAkB;IA0B5B,YAAY,CACrB,OAAO,EAAE,yBAAyB,EAClC,KAAK,EAAE,MAAM,GACd,OAAO,CAAC,oBAAoB,CAAC;IA+ChC;;;OAGG;IACU,0BAA0B,CACnC,OAAO,EAAE,uBAAuB,EAChC,KAAK,EAAE,MAAM,GACd,OAAO,CAAC,oBAAoB,CAAC;IAiEhC;;;OAGG;YACW,kCAAkC;IAiFhD;;;;OAIG;YACW,mBAAmB;IAqDjC;;;OAGG;YACW,sBAAsB;CAgLvC"} |
| import { ClientConfiguration, CommonClientConfiguration } from "../config/ClientConfiguration.js"; | ||
| import { CommonSilentFlowRequest } from "../request/CommonSilentFlowRequest.js"; | ||
| import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
| import { CacheOutcome } from "../utils/Constants.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { Authority } from "../authority/Authority.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| /** @internal */ | ||
| export declare class SilentFlowClient { | ||
| logger: Logger; | ||
| protected config: CommonClientConfiguration; | ||
| protected cryptoUtils: ICrypto; | ||
| protected cacheManager: CacheManager; | ||
| protected networkClient: INetworkModule; | ||
| protected serverTelemetryManager: ServerTelemetryManager | null; | ||
| authority: Authority; | ||
| protected performanceClient: IPerformanceClient; | ||
| constructor(configuration: ClientConfiguration, performanceClient: IPerformanceClient); | ||
| /** | ||
| * Retrieves token from cache or throws an error if it must be refreshed. | ||
| * @param request | ||
| */ | ||
| acquireCachedToken(request: CommonSilentFlowRequest): Promise<[AuthenticationResult, CacheOutcome]>; | ||
| private setCacheOutcome; | ||
| /** | ||
| * Helper function to build response object from the CacheRecord | ||
| * @param cacheRecord | ||
| */ | ||
| private generateResultFromCacheRecord; | ||
| } | ||
| //# sourceMappingURL=SilentFlowClient.d.ts.map |
| {"version":3,"file":"SilentFlowClient.d.ts","sourceRoot":"","sources":["../../src/client/SilentFlowClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,mBAAmB,EACnB,yBAAyB,EAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAQ3E,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAMpF,OAAO,EACH,SAAS,EAEZ,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AAGvF,gBAAgB;AAChB,qBAAa,gBAAgB;IAElB,MAAM,EAAE,MAAM,CAAC;IAGtB,SAAS,CAAC,MAAM,EAAE,yBAAyB,CAAC;IAG5C,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC;IAG/B,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAGrC,SAAS,CAAC,aAAa,EAAE,cAAc,CAAC;IAGxC,SAAS,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAGzD,SAAS,EAAE,SAAS,CAAC;IAG5B,SAAS,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;gBAG5C,aAAa,EAAE,mBAAmB,EAClC,iBAAiB,EAAE,kBAAkB;IA2BzC;;;OAGG;IACG,kBAAkB,CACpB,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,CAAC,oBAAoB,EAAE,YAAY,CAAC,CAAC;IAoHhD,OAAO,CAAC,eAAe;IAmBvB;;;OAGG;YACW,6BAA6B;CAkC9C"} |
| /** | ||
| * Extensibility interface, which allows the app developer to return a token, based on the passed-in parameters, instead of fetching tokens from | ||
| * the Identity Provider (AAD). | ||
| * Developers need to construct and return an AppTokenProviderResult object back to MSAL. MSAL will cache the token response | ||
| * in the same way it would do if the result were comming from AAD. | ||
| * This extensibility point is only defined for the client_credential flow, i.e. acquireTokenByClientCredential and | ||
| * meant for Azure SDK to enhance Managed Identity support. | ||
| */ | ||
| export interface IAppTokenProvider { | ||
| (appTokenProviderParameters: AppTokenProviderParameters): Promise<AppTokenProviderResult>; | ||
| } | ||
| /** | ||
| * Input object for the IAppTokenProvider extensiblity. MSAL will create this object, which can be used | ||
| * to help create an AppTokenProviderResult. | ||
| * | ||
| * - correlationId - the correlation Id associated with the request | ||
| * - tenantId - the tenant Id for which the token must be provided | ||
| * - scopes - the scopes for which the token must be provided | ||
| * - claims - any extra claims that the token must satisfy | ||
| */ | ||
| export type AppTokenProviderParameters = { | ||
| readonly correlationId?: string; | ||
| readonly tenantId: string; | ||
| readonly scopes: Array<string>; | ||
| readonly claims?: string; | ||
| }; | ||
| /** | ||
| * Output object for IAppTokenProvider extensiblity. | ||
| * | ||
| * - accessToken - the actual access token, typically in JWT format, that satisfies the request data AppTokenProviderParameters | ||
| * - expiresInSeconds - how long the tokens has before expiry, in seconds. Similar to the "expires_in" field in an AAD token response. | ||
| * - refreshInSeconds - how long the token has before it should be proactively refreshed. Similar to the "refresh_in" field in an AAD token response. | ||
| */ | ||
| export type AppTokenProviderResult = { | ||
| accessToken: string; | ||
| expiresInSeconds: number; | ||
| refreshInSeconds?: number; | ||
| }; | ||
| //# sourceMappingURL=AppTokenProvider.d.ts.map |
| {"version":3,"file":"AppTokenProvider.d.ts","sourceRoot":"","sources":["../../src/config/AppTokenProvider.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAC9B,CACI,0BAA0B,EAAE,0BAA0B,GACvD,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACtC;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACrC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC"} |
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { ILoggerCallback, LogLevel } from "../logger/Logger.js"; | ||
| import type { Authority } from "../authority/Authority.js"; | ||
| import { AzureCloudInstance } from "../authority/AuthorityOptions.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| import { ICachePlugin } from "../cache/interface/ICachePlugin.js"; | ||
| import { ISerializableTokenCache } from "../cache/interface/ISerializableTokenCache.js"; | ||
| import { ClientCredentials } from "../account/ClientCredentials.js"; | ||
| /** | ||
| * Use the configuration object to configure MSAL Modules and initialize the base interfaces for MSAL. | ||
| * | ||
| * This object allows you to configure important elements of MSAL functionality: | ||
| * - authOptions - Authentication for application | ||
| * - cryptoInterface - Implementation of crypto functions | ||
| * - libraryInfo - Library metadata | ||
| * - telemetry - Telemetry options and data | ||
| * - loggerOptions - Logging for application | ||
| * - networkInterface - Network implementation | ||
| * - storageInterface - Storage implementation | ||
| * - systemOptions - Additional library options | ||
| * - clientCredentials - Credentials options for confidential clients | ||
| * @internal | ||
| */ | ||
| export type ClientConfiguration = { | ||
| authOptions: AuthOptions; | ||
| systemOptions?: SystemOptions; | ||
| loggerOptions?: LoggerOptions; | ||
| storageInterface?: CacheManager; | ||
| networkInterface?: INetworkModule; | ||
| cryptoInterface?: ICrypto; | ||
| clientCredentials?: ClientCredentials; | ||
| libraryInfo?: LibraryInfo; | ||
| telemetry?: TelemetryOptions; | ||
| serverTelemetryManager?: ServerTelemetryManager | null; | ||
| persistencePlugin?: ICachePlugin | null; | ||
| serializableCache?: ISerializableTokenCache | null; | ||
| }; | ||
| export type CommonClientConfiguration = { | ||
| authOptions: Required<AuthOptions>; | ||
| systemOptions: Required<SystemOptions>; | ||
| loggerOptions: Required<LoggerOptions>; | ||
| storageInterface: CacheManager; | ||
| networkInterface: INetworkModule; | ||
| cryptoInterface: Required<ICrypto>; | ||
| libraryInfo: LibraryInfo; | ||
| telemetry: Required<TelemetryOptions>; | ||
| serverTelemetryManager: ServerTelemetryManager | null; | ||
| clientCredentials: ClientCredentials; | ||
| persistencePlugin: ICachePlugin | null; | ||
| serializableCache: ISerializableTokenCache | null; | ||
| }; | ||
| /** | ||
| * Use this to configure the auth options in the ClientConfiguration object | ||
| * | ||
| * - clientId - Client ID of your app registered with our Application registration portal : https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredAppsPreview in Microsoft Identity Platform | ||
| * - authority - You can configure a specific authority, defaults to " " or "https://login.microsoftonline.com/common" | ||
| * - knownAuthorities - An array of URIs that are known to be valid. Used in B2C scenarios. | ||
| * - cloudDiscoveryMetadata - A string containing the cloud discovery response. Used in AAD scenarios. | ||
| * - clientCapabilities - Array of capabilities which will be added to the claims.access_token.xms_cc request property on every network request. | ||
| * - instanceAware - A flag of whether the STS will send back additional parameters to specify where the tokens should be retrieved from. | ||
| * - redirectUri - 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. | ||
| * - isMcp - A flag of whether the application is an MCP application, which requires a resource parameter to be sent in token requests. | ||
| * @internal | ||
| */ | ||
| export type AuthOptions = { | ||
| clientId: string; | ||
| authority: Authority; | ||
| redirectUri: string; | ||
| clientCapabilities?: Array<string>; | ||
| azureCloudOptions?: AzureCloudOptions; | ||
| instanceAware?: boolean; | ||
| isMcp?: boolean; | ||
| }; | ||
| /** | ||
| * Use this to configure token renewal info in the Configuration object | ||
| * | ||
| * - tokenRenewalOffsetSeconds - Sets the window of offset needed to renew the token before expiry | ||
| * - protocolMode - Enum that represents the protocol that msal follows. Used for configuring proper endpoints. | ||
| */ | ||
| export type SystemOptions = { | ||
| tokenRenewalOffsetSeconds?: number; | ||
| preventCorsPreflight?: boolean; | ||
| }; | ||
| /** | ||
| * Use this to configure the logging that MSAL does, by configuring logger options in the Configuration object | ||
| * | ||
| * - loggerCallback - Callback for logger | ||
| * - piiLoggingEnabled - Sets whether pii logging is enabled | ||
| * - logLevel - Sets the level at which logging happens | ||
| * - correlationId - Sets the correlationId printed by the logger | ||
| */ | ||
| export type LoggerOptions = { | ||
| loggerCallback?: ILoggerCallback; | ||
| piiLoggingEnabled?: boolean; | ||
| logLevel?: LogLevel; | ||
| correlationId?: string; | ||
| }; | ||
| /** | ||
| * Library-specific options | ||
| */ | ||
| export type LibraryInfo = { | ||
| sku: string; | ||
| version: string; | ||
| cpu: string; | ||
| os: string; | ||
| }; | ||
| /** | ||
| * AzureCloudInstance specific options | ||
| * | ||
| * - azureCloudInstance - string enum providing short notation for soverign and public cloud authorities | ||
| * - tenant - provision to provide the tenant info | ||
| */ | ||
| export type AzureCloudOptions = { | ||
| azureCloudInstance: AzureCloudInstance; | ||
| tenant?: string; | ||
| }; | ||
| export type TelemetryOptions = { | ||
| application: ApplicationTelemetry; | ||
| }; | ||
| /** | ||
| * Telemetry information sent on request | ||
| * - appName: Unique string name of an application | ||
| * - appVersion: Version of the application using MSAL | ||
| */ | ||
| export type ApplicationTelemetry = { | ||
| appName: string; | ||
| appVersion: string; | ||
| }; | ||
| export declare const DEFAULT_SYSTEM_OPTIONS: Required<SystemOptions>; | ||
| /** | ||
| * Function that sets the default options when not explicitly configured from app developer | ||
| * | ||
| * @param Configuration | ||
| * | ||
| * @returns Configuration | ||
| */ | ||
| export declare function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions: userSystemOptions, loggerOptions: userLoggerOption, storageInterface: storageImplementation, networkInterface: networkImplementation, cryptoInterface: cryptoImplementation, clientCredentials: clientCredentials, libraryInfo: libraryInfo, telemetry: telemetry, serverTelemetryManager: serverTelemetryManager, persistencePlugin: persistencePlugin, serializableCache: serializableCache, }: ClientConfiguration): CommonClientConfiguration; | ||
| /** | ||
| * Returns true if config has protocolMode set to ProtocolMode.OIDC, false otherwise | ||
| * @param ClientConfiguration | ||
| */ | ||
| export declare function isOidcProtocolMode(config: ClientConfiguration): boolean; | ||
| //# sourceMappingURL=ClientConfiguration.d.ts.map |
| {"version":3,"file":"ClientConfiguration.d.ts","sourceRoot":"","sources":["../../src/config/ClientConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,O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F;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,WAAW,EAAE,oBAAoB,CAAC;CACrC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,aAAa,CAG1D,CAAC;AA4CF;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,EACrC,WAAW,EAAE,eAAe,EAC5B,aAAa,EAAE,iBAAiB,EAChC,aAAa,EAAE,gBAAgB,EAC/B,gBAAgB,EAAE,qBAAqB,EACvC,gBAAgB,EAAE,qBAAqB,EACvC,eAAe,EAAE,oBAAoB,EACrC,iBAAiB,EAAE,iBAAiB,EACpC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,SAAS,EACpB,sBAAsB,EAAE,sBAAsB,EAC9C,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,iBAAiB,GACvC,EAAE,mBAAmB,GAAG,yBAAyB,CA4BjD;AAgBD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAIvE"} |
| export declare const CLIENT_ID = "client_id"; | ||
| export declare const REDIRECT_URI = "redirect_uri"; | ||
| export declare const RESPONSE_TYPE = "response_type"; | ||
| export declare const RESPONSE_MODE = "response_mode"; | ||
| export declare const GRANT_TYPE = "grant_type"; | ||
| export declare const CLAIMS = "claims"; | ||
| export declare const SCOPE = "scope"; | ||
| export declare const ERROR = "error"; | ||
| export declare const ERROR_DESCRIPTION = "error_description"; | ||
| export declare const ACCESS_TOKEN = "access_token"; | ||
| export declare const ID_TOKEN = "id_token"; | ||
| export declare const REFRESH_TOKEN = "refresh_token"; | ||
| export declare const EXPIRES_IN = "expires_in"; | ||
| export declare const REFRESH_TOKEN_EXPIRES_IN = "refresh_token_expires_in"; | ||
| export declare const STATE = "state"; | ||
| export declare const NONCE = "nonce"; | ||
| export declare const PROMPT = "prompt"; | ||
| export declare const SESSION_STATE = "session_state"; | ||
| export declare const CLIENT_INFO = "client_info"; | ||
| export declare const CODE = "code"; | ||
| export declare const CODE_CHALLENGE = "code_challenge"; | ||
| export declare const CODE_CHALLENGE_METHOD = "code_challenge_method"; | ||
| export declare const CODE_VERIFIER = "code_verifier"; | ||
| export declare const CLIENT_REQUEST_ID = "client-request-id"; | ||
| export declare const X_CLIENT_SKU = "x-client-SKU"; | ||
| export declare const X_CLIENT_VER = "x-client-VER"; | ||
| export declare const X_CLIENT_OS = "x-client-OS"; | ||
| export declare const X_CLIENT_CPU = "x-client-CPU"; | ||
| export declare const X_CLIENT_CURR_TELEM = "x-client-current-telemetry"; | ||
| export declare const X_CLIENT_LAST_TELEM = "x-client-last-telemetry"; | ||
| export declare const X_MS_LIB_CAPABILITY = "x-ms-lib-capability"; | ||
| export declare const X_APP_NAME = "x-app-name"; | ||
| export declare const X_APP_VER = "x-app-ver"; | ||
| export declare const POST_LOGOUT_URI = "post_logout_redirect_uri"; | ||
| export declare const ID_TOKEN_HINT = "id_token_hint"; | ||
| export declare const DEVICE_CODE = "device_code"; | ||
| export declare const CLIENT_SECRET = "client_secret"; | ||
| export declare const CLIENT_ASSERTION = "client_assertion"; | ||
| export declare const CLIENT_ASSERTION_TYPE = "client_assertion_type"; | ||
| export declare const TOKEN_TYPE = "token_type"; | ||
| export declare const REQ_CNF = "req_cnf"; | ||
| export declare const OBO_ASSERTION = "assertion"; | ||
| export declare const REQUESTED_TOKEN_USE = "requested_token_use"; | ||
| export declare const ON_BEHALF_OF = "on_behalf_of"; | ||
| export declare const FOCI = "foci"; | ||
| export declare const CCS_HEADER = "X-AnchorMailbox"; | ||
| export declare const RETURN_SPA_CODE = "return_spa_code"; | ||
| export declare const NATIVE_BROKER = "nativebroker"; | ||
| export declare const LOGOUT_HINT = "logout_hint"; | ||
| export declare const SID = "sid"; | ||
| export declare const LOGIN_HINT = "login_hint"; | ||
| export declare const DOMAIN_HINT = "domain_hint"; | ||
| export declare const X_CLIENT_EXTRA_SKU = "x-client-xtra-sku"; | ||
| export declare const BROKER_CLIENT_ID = "brk_client_id"; | ||
| export declare const BROKER_REDIRECT_URI = "brk_redirect_uri"; | ||
| export declare const INSTANCE_AWARE = "instance_aware"; | ||
| export declare const EAR_JWK = "ear_jwk"; | ||
| export declare const EAR_JWE_CRYPTO = "ear_jwe_crypto"; | ||
| export declare const RESOURCE = "resource"; | ||
| export declare const CLI_DATA = "clidata"; | ||
| //# sourceMappingURL=AADServerParamKeys.d.ts.map |
| {"version":3,"file":"AADServerParamKeys.d.ts","sourceRoot":"","sources":["../../src/constants/AADServerParamKeys.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS,cAAc,CAAC;AACrC,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,eAAO,MAAM,KAAK,UAAU,CAAC;AAC7B,eAAO,MAAM,KAAK,UAAU,CAAC;AAC7B,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AACrD,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,QAAQ,aAAa,CAAC;AACnC,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AACnE,eAAO,MAAM,KAAK,UAAU,CAAC;AAC7B,eAAO,MAAM,KAAK,UAAU,CAAC;AAC7B,eAAO,MAAM,MAAM,WAAW,CAA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MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,GAAG,QAAQ,CAAC;AACzB,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AACtD,eAAO,MAAM,gBAAgB,kBAAkB,CAAC;AAChD,eAAO,MAAM,mBAAmB,qBAAqB,CAAC;AACtD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,QAAQ,aAAa,CAAC;AACnC,eAAO,MAAM,QAAQ,YAAY,CAAC"} |
| import type { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| import type { ShrOptions, SignedHttpRequest } from "./SignedHttpRequest.js"; | ||
| /** | ||
| * The PkceCodes type describes the structure | ||
| * of objects that contain PKCE code | ||
| * challenge and verifier pairs | ||
| */ | ||
| export type PkceCodes = { | ||
| verifier: string; | ||
| challenge: string; | ||
| }; | ||
| export type SignedHttpRequestParameters = Pick<BaseAuthRequest, "resourceRequestMethod" | "resourceRequestUri" | "shrClaims" | "shrNonce" | "shrOptions"> & { | ||
| correlationId: string; | ||
| }; | ||
| /** | ||
| * Interface for crypto functions used by library | ||
| */ | ||
| export interface ICrypto { | ||
| /** | ||
| * Creates a guid randomly. | ||
| */ | ||
| createNewGuid(): string; | ||
| /** | ||
| * base64 Encode string | ||
| * @param input | ||
| */ | ||
| base64Encode(input: string): string; | ||
| /** | ||
| * base64 decode string | ||
| * @param input | ||
| */ | ||
| base64Decode(input: string): string; | ||
| /** | ||
| * base64 URL safe encoded string | ||
| */ | ||
| base64UrlEncode(input: string): string; | ||
| /** | ||
| * Stringifies and base64Url encodes input public key | ||
| * @param inputKid | ||
| * @returns Base64Url encoded public key | ||
| */ | ||
| encodeKid(inputKid: string): string; | ||
| /** | ||
| * Generates an JWK RSA S256 Thumbprint | ||
| * @param request | ||
| */ | ||
| getPublicKeyThumbprint(request: SignedHttpRequestParameters): Promise<string>; | ||
| /** | ||
| * Removes cryptographic keypair from key store matching the keyId passed in | ||
| * @param kid | ||
| * @param correlationId | ||
| */ | ||
| removeTokenBindingKey(kid: string, correlationId: string): Promise<void>; | ||
| /** | ||
| * Removes all cryptographic keys from IndexedDB storage | ||
| * @param correlationId | ||
| */ | ||
| clearKeystore(correlationId: string): Promise<boolean>; | ||
| /** | ||
| * Returns a signed proof-of-possession token with a given acces token that contains a cnf claim with the required kid. | ||
| * @param accessToken | ||
| */ | ||
| signJwt(payload: SignedHttpRequest, kid: string, shrOptions?: ShrOptions, correlationId?: string): Promise<string>; | ||
| /** | ||
| * Returns the SHA-256 hash of an input string | ||
| * @param plainText | ||
| */ | ||
| hashString(plainText: string): Promise<string>; | ||
| } | ||
| export declare const DEFAULT_CRYPTO_IMPLEMENTATION: ICrypto; | ||
| //# sourceMappingURL=ICrypto.d.ts.map |
| {"version":3,"file":"ICrypto.d.ts","sourceRoot":"","sources":["../../src/crypto/ICrypto.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE5E;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAC1C,eAAe,EACb,uBAAuB,GACvB,oBAAoB,GACpB,WAAW,GACX,UAAU,GACV,YAAY,CACjB,GAAG;IACA,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,OAAO;IACpB;;OAEG;IACH,aAAa,IAAI,MAAM,CAAC;IACxB;;;OAGG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC;;;OAGG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC;;OAEG;IACH,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvC;;;;OAIG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC;;;OAGG;IACH,sBAAsB,CAClB,OAAO,EAAE,2BAA2B,GACrC,OAAO,CAAC,MAAM,CAAC,CAAC;IACnB;;;;OAIG;IACH,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzE;;;OAGG;IACH,aAAa,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACvD;;;OAGG;IACH,OAAO,CACH,OAAO,EAAE,iBAAiB,EAC1B,GAAG,EAAE,MAAM,EACX,UAAU,CAAC,EAAE,UAAU,EACvB,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,MAAM,CAAC,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAClD;AAED,eAAO,MAAM,6BAA6B,EAAE,OA+B3C,CAAC"} |
| export interface IGuidGenerator { | ||
| generateGuid(): string; | ||
| isGuid(guid: string): boolean; | ||
| } | ||
| //# sourceMappingURL=IGuidGenerator.d.ts.map |
| {"version":3,"file":"IGuidGenerator.d.ts","sourceRoot":"","sources":["../../src/crypto/IGuidGenerator.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,cAAc;IAC3B,YAAY,IAAI,MAAM,CAAC;IACvB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACjC"} |
| import { JsonWebTokenTypes } from "../utils/Constants.js"; | ||
| export type JoseHeaderOptions = { | ||
| typ?: JsonWebTokenTypes; | ||
| alg?: string; | ||
| kid?: string; | ||
| }; | ||
| /** @internal */ | ||
| export declare class JoseHeader { | ||
| typ?: JsonWebTokenTypes; | ||
| alg?: string; | ||
| kid?: string; | ||
| constructor(options: JoseHeaderOptions); | ||
| /** | ||
| * Builds SignedHttpRequest formatted JOSE Header from the | ||
| * JOSE Header options provided or previously set on the object and returns | ||
| * the stringified header object. | ||
| * Throws if keyId or algorithm aren't provided since they are required for Access Token Binding. | ||
| * @param shrHeaderOptions | ||
| * @returns | ||
| */ | ||
| static getShrHeaderString(shrHeaderOptions: JoseHeaderOptions): string; | ||
| } | ||
| //# sourceMappingURL=JoseHeader.d.ts.map |
| {"version":3,"file":"JoseHeader.d.ts","sourceRoot":"","sources":["../../src/crypto/JoseHeader.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,MAAM,iBAAiB,GAAG;IAC5B,GAAG,CAAC,EAAE,iBAAiB,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,qBAAa,UAAU;IACZ,GAAG,CAAC,EAAE,iBAAiB,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;gBAER,OAAO,EAAE,iBAAiB;IAMtC;;;;;;;OAOG;IACH,MAAM,CAAC,kBAAkB,CAAC,gBAAgB,EAAE,iBAAiB,GAAG,MAAM;CAoBzE"} |
| import { ICrypto, SignedHttpRequestParameters } from "./ICrypto.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| /** | ||
| * See eSTS docs for more info. | ||
| * - A kid element, with the value containing an RFC 7638-compliant JWK thumbprint that is base64 encoded. | ||
| * - xms_ksl element, representing the storage location of the key's secret component on the client device. One of two values: | ||
| * - sw: software storage | ||
| * - uhw: hardware storage | ||
| */ | ||
| type ReqCnf = { | ||
| kid: string; | ||
| xms_ksl: KeyLocation; | ||
| }; | ||
| export type ReqCnfData = { | ||
| kid: string; | ||
| reqCnfString: string; | ||
| }; | ||
| declare const KeyLocation: { | ||
| readonly SW: "sw"; | ||
| readonly UHW: "uhw"; | ||
| }; | ||
| export type KeyLocation = (typeof KeyLocation)[keyof typeof KeyLocation]; | ||
| /** @internal */ | ||
| export declare class PopTokenGenerator { | ||
| private cryptoUtils; | ||
| private performanceClient; | ||
| constructor(cryptoUtils: ICrypto, performanceClient: IPerformanceClient); | ||
| /** | ||
| * Generates the req_cnf validated at the RP in the POP protocol for SHR parameters | ||
| * and returns an object containing the keyid, the full req_cnf string and the req_cnf string hash | ||
| * @param request | ||
| * @returns | ||
| */ | ||
| generateCnf(request: SignedHttpRequestParameters, logger: Logger): Promise<ReqCnfData>; | ||
| /** | ||
| * Generates key_id for a SHR token request | ||
| * @param request | ||
| * @returns | ||
| */ | ||
| generateKid(request: SignedHttpRequestParameters): Promise<ReqCnf>; | ||
| /** | ||
| * Signs the POP access_token with the local generated key-pair | ||
| * @param accessToken | ||
| * @param request | ||
| * @returns | ||
| */ | ||
| signPopToken(accessToken: string, keyId: string, request: SignedHttpRequestParameters): Promise<string>; | ||
| /** | ||
| * Utility function to generate the signed JWT for an access_token | ||
| * @param payload | ||
| * @param kid | ||
| * @param request | ||
| * @param claims | ||
| * @returns | ||
| */ | ||
| signPayload(payload: string, keyId: string, request: SignedHttpRequestParameters, claims?: object): Promise<string>; | ||
| } | ||
| export {}; | ||
| //# sourceMappingURL=PopTokenGenerator.d.ts.map |
| {"version":3,"file":"PopTokenGenerator.d.ts","sourceRoot":"","sources":["../../src/crypto/PopTokenGenerator.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAGpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAGpF,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C;;;;;;GAMG;AACH,KAAK,MAAM,GAAG;IACV,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,WAAW,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,WAAW;;;CAGP,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEzE,gBAAgB;AAChB,qBAAa,iBAAiB;IAC1B,OAAO,CAAC,WAAW,CAAU;IAC7B,OAAO,CAAC,iBAAiB,CAAqB;gBAElC,WAAW,EAAE,OAAO,EAAE,iBAAiB,EAAE,kBAAkB;IAKvE;;;;;OAKG;IACG,WAAW,CACb,OAAO,EAAE,2BAA2B,EACpC,MAAM,EAAE,MAAM,GACf,OAAO,CAAC,UAAU,CAAC;IAkBtB;;;;OAIG;IACG,WAAW,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,MAAM,CAAC;IAWxE;;;;;OAKG;IACG,YAAY,CACd,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,2BAA2B,GACrC,OAAO,CAAC,MAAM,CAAC;IAIlB;;;;;;;OAOG;IACG,WAAW,CACb,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,2BAA2B,EACpC,MAAM,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,MAAM,CAAC;CAiCrB"} |
| import { JoseHeaderOptions } from "./JoseHeader.js"; | ||
| export type SignedHttpRequest = { | ||
| at?: string; | ||
| cnf?: object; | ||
| m?: string; | ||
| u?: string; | ||
| p?: string; | ||
| q?: [Array<string>, string]; | ||
| ts?: number; | ||
| nonce?: string; | ||
| client_claims?: string; | ||
| }; | ||
| export type ShrOptions = { | ||
| header: JoseHeaderOptions; | ||
| }; | ||
| //# sourceMappingURL=SignedHttpRequest.d.ts.map |
| {"version":3,"file":"SignedHttpRequest.d.ts","sourceRoot":"","sources":["../../src/crypto/SignedHttpRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GAAG;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACrB,MAAM,EAAE,iBAAiB,CAAC;CAC7B,CAAC"} |
| import * as AuthErrorCodes from "./AuthErrorCodes.js"; | ||
| import type { PlatformBrokerError } from "./PlatformBrokerError.js"; | ||
| export { AuthErrorCodes }; | ||
| export declare function getDefaultErrorMessage(code: string): string; | ||
| /** | ||
| * General error class thrown by the MSAL.js library. | ||
| */ | ||
| export declare class AuthError extends Error { | ||
| /** | ||
| * Short string denoting error | ||
| */ | ||
| errorCode: string; | ||
| /** | ||
| * Detailed description of error | ||
| */ | ||
| errorMessage: string; | ||
| /** | ||
| * Describes the subclass of an error | ||
| */ | ||
| subError: string; | ||
| /** | ||
| * CorrelationId associated with the error | ||
| */ | ||
| correlationId: string; | ||
| /** | ||
| * Default PlatformBrokerError from MsalNodeRuntime when broker is enabled | ||
| */ | ||
| platformBrokerError?: PlatformBrokerError; | ||
| constructor(errorCode?: string, errorMessage?: string, suberror?: string); | ||
| setCorrelationId(correlationId: string): void; | ||
| } | ||
| export declare function createAuthError(code: string, additionalMessage?: string): AuthError; | ||
| //# sourceMappingURL=AuthError.d.ts.map |
| {"version":3,"file":"AuthError.d.ts","sourceRoot":"","sources":["../../src/error/AuthError.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,KAAK;IAChC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;gBAE9B,SAAS,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM;IAcxE,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI;CAGhD;AAED,wBAAgB,eAAe,CAC3B,IAAI,EAAE,MAAM,EACZ,iBAAiB,CAAC,EAAE,MAAM,GAC3B,SAAS,CAKX"} |
| /** | ||
| * AuthErrorMessage class containing string constants used by error codes and messages. | ||
| */ | ||
| export declare const unexpectedError = "unexpected_error"; | ||
| export declare const postRequestFailed = "post_request_failed"; | ||
| //# sourceMappingURL=AuthErrorCodes.d.ts.map |
| {"version":3,"file":"AuthErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/AuthErrorCodes.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,iBAAiB,wBAAwB,CAAC"} |
| import * as CacheErrorCodes from "./CacheErrorCodes.js"; | ||
| export { CacheErrorCodes }; | ||
| /** | ||
| * Error thrown when there is an error with the cache | ||
| */ | ||
| export declare class CacheError extends Error { | ||
| /** | ||
| * Short string denoting error | ||
| */ | ||
| errorCode: string; | ||
| /** | ||
| * Detailed description of error | ||
| */ | ||
| errorMessage: string; | ||
| constructor(errorCode: string, errorMessage?: string); | ||
| } | ||
| /** | ||
| * Helper function to wrap browser errors in a CacheError object | ||
| * @param e | ||
| * @returns | ||
| */ | ||
| export declare function createCacheError(e: unknown): CacheError; | ||
| //# sourceMappingURL=CacheError.d.ts.map |
| {"version":3,"file":"CacheError.d.ts","sourceRoot":"","sources":["../../src/error/CacheError.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAC;AAExD,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B;;GAEG;AACH,qBAAa,UAAW,SAAQ,KAAK;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;gBAET,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;CASvD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,OAAO,GAAG,UAAU,CAcvD"} |
| export declare const cacheQuotaExceeded = "cache_quota_exceeded"; | ||
| export declare const cacheErrorUnknown = "cache_error_unknown"; | ||
| //# sourceMappingURL=CacheErrorCodes.d.ts.map |
| {"version":3,"file":"CacheErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/CacheErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,iBAAiB,wBAAwB,CAAC"} |
| import { AuthError } from "./AuthError.js"; | ||
| import * as ClientAuthErrorCodes from "./ClientAuthErrorCodes.js"; | ||
| export { ClientAuthErrorCodes }; | ||
| /** | ||
| * ClientAuthErrorMessage class containing string constants used by error codes and messages. | ||
| */ | ||
| /** | ||
| * Error thrown when there is an error in the client code running on the browser. | ||
| */ | ||
| export declare class ClientAuthError extends AuthError { | ||
| constructor(errorCode: string, additionalMessage?: string); | ||
| } | ||
| export declare function createClientAuthError(errorCode: string, additionalMessage?: string): ClientAuthError; | ||
| //# sourceMappingURL=ClientAuthError.d.ts.map |
| {"version":3,"file":"ClientAuthError.d.ts","sourceRoot":"","sources":["../../src/error/ClientAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC;;GAEG;AAEH;;GAEG;AACH,qBAAa,eAAgB,SAAQ,SAAS;gBAC9B,SAAS,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,MAAM;CAM5D;AAED,wBAAgB,qBAAqB,CACjC,SAAS,EAAE,MAAM,EACjB,iBAAiB,CAAC,EAAE,MAAM,GAC3B,eAAe,CAEjB"} |
| export declare const clientInfoDecodingError = "client_info_decoding_error"; | ||
| export declare const clientInfoEmptyError = "client_info_empty_error"; | ||
| export declare const tokenParsingError = "token_parsing_error"; | ||
| export declare const nullOrEmptyToken = "null_or_empty_token"; | ||
| export declare const endpointResolutionError = "endpoints_resolution_error"; | ||
| export declare const networkError = "network_error"; | ||
| export declare const openIdConfigError = "openid_config_error"; | ||
| export declare const hashNotDeserialized = "hash_not_deserialized"; | ||
| export declare const invalidState = "invalid_state"; | ||
| export declare const stateMismatch = "state_mismatch"; | ||
| export declare const stateNotFound = "state_not_found"; | ||
| export declare const nonceMismatch = "nonce_mismatch"; | ||
| export declare const authTimeNotFound = "auth_time_not_found"; | ||
| export declare const maxAgeTranspired = "max_age_transpired"; | ||
| export declare const multipleMatchingTokens = "multiple_matching_tokens"; | ||
| export declare const multipleMatchingAppMetadata = "multiple_matching_appMetadata"; | ||
| export declare const requestCannotBeMade = "request_cannot_be_made"; | ||
| export declare const cannotRemoveEmptyScope = "cannot_remove_empty_scope"; | ||
| export declare const cannotAppendScopeSet = "cannot_append_scopeset"; | ||
| export declare const emptyInputScopeSet = "empty_input_scopeset"; | ||
| export declare const noAccountInSilentRequest = "no_account_in_silent_request"; | ||
| export declare const invalidCacheRecord = "invalid_cache_record"; | ||
| export declare const invalidCacheEnvironment = "invalid_cache_environment"; | ||
| export declare const noAccountFound = "no_account_found"; | ||
| export declare const noCryptoObject = "no_crypto_object"; | ||
| export declare const unexpectedCredentialType = "unexpected_credential_type"; | ||
| export declare const tokenRefreshRequired = "token_refresh_required"; | ||
| export declare const tokenClaimsCnfRequiredForSignedJwt = "token_claims_cnf_required_for_signedjwt"; | ||
| export declare const authorizationCodeMissingFromServerResponse = "authorization_code_missing_from_server_response"; | ||
| export declare const bindingKeyNotRemoved = "binding_key_not_removed"; | ||
| export declare const endSessionEndpointNotSupported = "end_session_endpoint_not_supported"; | ||
| export declare const keyIdMissing = "key_id_missing"; | ||
| export declare const noNetworkConnectivity = "no_network_connectivity"; | ||
| export declare const userCanceled = "user_canceled"; | ||
| export declare const methodNotImplemented = "method_not_implemented"; | ||
| export declare const nestedAppAuthBridgeDisabled = "nested_app_auth_bridge_disabled"; | ||
| export declare const platformBrokerError = "platform_broker_error"; | ||
| export declare const resourceParameterRequired = "resource_parameter_required"; | ||
| export declare const misplacedResourceParam = "misplaced_resource_parameter"; | ||
| //# sourceMappingURL=ClientAuthErrorCodes.d.ts.map |
| {"version":3,"file":"ClientAuthErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/ClientAuthErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB,+BAA+B,CAAC;AACpE,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AACtD,eAAO,MAAM,uBAAuB,+BAA+B,CAAC;AACpE,eAAO,MAAM,YAAY,kB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AAC7E,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAC3D,eAAO,MAAM,yBAAyB,gCAAgC,CAAC;AACvE,eAAO,MAAM,sBAAsB,iCAAiC,CAAC"} |
| import { AuthError } from "./AuthError.js"; | ||
| import * as ClientConfigurationErrorCodes from "./ClientConfigurationErrorCodes.js"; | ||
| export { ClientConfigurationErrorCodes }; | ||
| /** | ||
| * Error thrown when there is an error in configuration of the MSAL.js library. | ||
| */ | ||
| export declare class ClientConfigurationError extends AuthError { | ||
| constructor(errorCode: string); | ||
| } | ||
| export declare function createClientConfigurationError(errorCode: string): ClientConfigurationError; | ||
| //# sourceMappingURL=ClientConfigurationError.d.ts.map |
| {"version":3,"file":"ClientConfigurationError.d.ts","sourceRoot":"","sources":["../../src/error/ClientConfigurationError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,6BAA6B,MAAM,oCAAoC,CAAC;AACpF,OAAO,EAAE,6BAA6B,EAAE,CAAC;AAEzC;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,SAAS;gBACvC,SAAS,EAAE,MAAM;CAKhC;AAED,wBAAgB,8BAA8B,CAC1C,SAAS,EAAE,MAAM,GAClB,wBAAwB,CAE1B"} |
| export declare const redirectUriEmpty = "redirect_uri_empty"; | ||
| export declare const claimsRequestParsingError = "claims_request_parsing_error"; | ||
| export declare const authorityUriInsecure = "authority_uri_insecure"; | ||
| export declare const urlParseError = "url_parse_error"; | ||
| export declare const urlEmptyError = "empty_url_error"; | ||
| export declare const emptyInputScopesError = "empty_input_scopes_error"; | ||
| export declare const invalidClaims = "invalid_claims"; | ||
| export declare const tokenRequestEmpty = "token_request_empty"; | ||
| export declare const logoutRequestEmpty = "logout_request_empty"; | ||
| export declare const invalidCodeChallengeMethod = "invalid_code_challenge_method"; | ||
| export declare const pkceParamsMissing = "pkce_params_missing"; | ||
| export declare const invalidCloudDiscoveryMetadata = "invalid_cloud_discovery_metadata"; | ||
| export declare const invalidAuthorityMetadata = "invalid_authority_metadata"; | ||
| export declare const untrustedAuthority = "untrusted_authority"; | ||
| export declare const missingSshJwk = "missing_ssh_jwk"; | ||
| export declare const missingSshKid = "missing_ssh_kid"; | ||
| export declare const missingNonceAuthenticationHeader = "missing_nonce_authentication_header"; | ||
| export declare const invalidAuthenticationHeader = "invalid_authentication_header"; | ||
| export declare const cannotSetOIDCOptions = "cannot_set_OIDCOptions"; | ||
| export declare const cannotAllowPlatformBroker = "cannot_allow_platform_broker"; | ||
| export declare const authorityMismatch = "authority_mismatch"; | ||
| export declare const invalidRequestMethodForEAR = "invalid_request_method_for_EAR"; | ||
| //# sourceMappingURL=ClientConfigurationErrorCodes.d.ts.map |
| {"version":3,"file":"ClientConfigurationErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/ClientConfigurationErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,eAAO,MAAM,yBAAyB,iCAAiC,CAAC;AACxE,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,qBAAqB,6BAA6B,CAAC;AAChE,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,0BAA0B,kCAAkC,CAAC;AAC1E,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,6BAA6B,qCAAqC,CAAC;AAChF,eAAO,MAAM,wBAAwB,+BAA+B,CAAC;AACrE,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AACxD,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,gCAAgC,wCACJ,CAAC;AAC1C,eAAO,MAAM,2BAA2B,kCAAkC,CAAC;AAC3E,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,yBAAyB,iCAAiC,CAAC;AACxE,eAAO,MAAM,iBAAiB,uBAAuB,CAAC;AACtD,eAAO,MAAM,0BAA0B,mCAAmC,CAAC"} |
| import { AuthError } from "./AuthError.js"; | ||
| import * as InteractionRequiredAuthErrorCodes from "./InteractionRequiredAuthErrorCodes.js"; | ||
| export { InteractionRequiredAuthErrorCodes }; | ||
| /** | ||
| * InteractionRequiredServerErrorMessage contains string constants used by error codes and messages returned by the server indicating interaction is required | ||
| */ | ||
| export declare const InteractionRequiredServerErrorMessage: string[]; | ||
| export declare const InteractionRequiredAuthSubErrorMessage: string[]; | ||
| /** | ||
| * Error thrown when user interaction is required. | ||
| */ | ||
| export declare class InteractionRequiredAuthError extends AuthError { | ||
| /** | ||
| * The time the error occured at | ||
| */ | ||
| timestamp: string; | ||
| /** | ||
| * TraceId associated with the error | ||
| */ | ||
| traceId: string; | ||
| /** | ||
| * https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-common/docs/claims-challenge.md | ||
| * | ||
| * A string with extra claims needed for the token request to succeed | ||
| * web site: redirect the user to the authorization page and set the extra claims | ||
| * web api: include the claims in the WWW-Authenticate header that are sent back to the client so that it knows to request a token with the extra claims | ||
| * desktop application or browser context: include the claims when acquiring the token interactively | ||
| * app to app context (client_credentials): include the claims in the AcquireTokenByClientCredential request | ||
| */ | ||
| claims: string; | ||
| /** | ||
| * Server error number; | ||
| */ | ||
| readonly errorNo?: string; | ||
| constructor(errorCode?: string, errorMessage?: string, subError?: string, timestamp?: string, traceId?: string, correlationId?: string, claims?: string, errorNo?: string); | ||
| } | ||
| /** | ||
| * Helper function used to determine if an error thrown by the server requires interaction to resolve | ||
| * @param errorCode | ||
| * @param errorString | ||
| * @param subError | ||
| */ | ||
| export declare function isInteractionRequiredError(errorCode?: string, errorString?: string, subError?: string): boolean; | ||
| /** | ||
| * Creates an InteractionRequiredAuthError | ||
| */ | ||
| export declare function createInteractionRequiredAuthError(errorCode: string, errorMessage?: string): InteractionRequiredAuthError; | ||
| //# sourceMappingURL=InteractionRequiredAuthError.d.ts.map |
| {"version":3,"file":"InteractionRequiredAuthError.d.ts","sourceRoot":"","sources":["../../src/error/InteractionRequiredAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,iCAAiC,MAAM,wCAAwC,CAAC;AAC5F,OAAO,EAAE,iCAAiC,EAAE,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,qCAAqC,UAOjD,CAAC;AAEF,eAAO,MAAM,sCAAsC,UASlD,CAAC;AAEF;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,SAAS;IACvD;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;;;OAQG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;gBAGtB,SAAS,CAAC,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,MAAM,EACrB,QAAQ,CAAC,EAAE,MAAM,EACjB,SAAS,CAAC,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,EAChB,aAAa,CAAC,EAAE,MAAM,EACtB,MAAM,CAAC,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,MAAM;CAYvB;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACtC,SAAS,CAAC,EAAE,MAAM,EAClB,WAAW,CAAC,EAAE,MAAM,EACpB,QAAQ,CAAC,EAAE,MAAM,GAClB,OAAO,CAkBT;AAED;;GAEG;AACH,wBAAgB,kCAAkC,CAC9C,SAAS,EAAE,MAAM,EACjB,YAAY,CAAC,EAAE,MAAM,GACtB,4BAA4B,CAE9B"} |
| /** | ||
| * MSAL-defined interaction required error code indicating no tokens are found in cache. | ||
| * @public | ||
| */ | ||
| export declare const noTokensFound = "no_tokens_found"; | ||
| /** | ||
| * MSAL-defined error code indicating a native account is unavailable on the platform. | ||
| * @public | ||
| */ | ||
| export declare const nativeAccountUnavailable = "native_account_unavailable"; | ||
| /** | ||
| * MSAL-defined error code indicating the refresh token has expired and user interaction is needed. | ||
| * @public | ||
| */ | ||
| export declare const refreshTokenExpired = "refresh_token_expired"; | ||
| /** | ||
| * MSAL-defined error code indicating UI/UX is not allowed (e.g., blocked by policy), requiring alternate interaction. | ||
| * @public | ||
| */ | ||
| export declare const uxNotAllowed = "ux_not_allowed"; | ||
| /** | ||
| * Server-originated error code indicating interaction is required to complete the request. | ||
| * @public | ||
| */ | ||
| export declare const interactionRequired = "interaction_required"; | ||
| /** | ||
| * Server-originated error code indicating user consent is required. | ||
| * @public | ||
| */ | ||
| export declare const consentRequired = "consent_required"; | ||
| /** | ||
| * Server-originated error code indicating user login is required. | ||
| * @public | ||
| */ | ||
| export declare const loginRequired = "login_required"; | ||
| /** | ||
| * Server-originated error code indicating the token is invalid or corrupted. | ||
| * @public | ||
| */ | ||
| export declare const badToken = "bad_token"; | ||
| /** | ||
| * Server-originated error code indicating the user is in an interrupted state and interaction is required. | ||
| * @public | ||
| */ | ||
| export declare const interruptedUser = "interrupted_user"; | ||
| //# sourceMappingURL=InteractionRequiredAuthErrorCodes.d.ts.map |
| {"version":3,"file":"InteractionRequiredAuthErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/InteractionRequiredAuthErrorCodes.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C;;;GAGG;AACH,eAAO,MAAM,wBAAwB,+BAA+B,CAAC;AACrE;;;GAGG;AACH,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAC3D;;;GAGG;AACH,eAAO,MAAM,YAAY,mBAAmB,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,mBAAmB,yBAAyB,CAAC;AAC1D;;;GAGG;AACH,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD;;;GAGG;AACH,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C;;;GAGG;AACH,eAAO,MAAM,QAAQ,cAAc,CAAC;AACpC;;;GAGG;AACH,eAAO,MAAM,eAAe,qBAAqB,CAAC"} |
| import { AuthError } from "./AuthError.js"; | ||
| import * as JoseHeaderErrorCodes from "./JoseHeaderErrorCodes.js"; | ||
| export { JoseHeaderErrorCodes }; | ||
| /** | ||
| * Error thrown when there is an error in the client code running on the browser. | ||
| */ | ||
| export declare class JoseHeaderError extends AuthError { | ||
| constructor(errorCode: string, errorMessage?: string); | ||
| } | ||
| /** Returns JoseHeaderError object */ | ||
| export declare function createJoseHeaderError(code: string): JoseHeaderError; | ||
| //# sourceMappingURL=JoseHeaderError.d.ts.map |
| {"version":3,"file":"JoseHeaderError.d.ts","sourceRoot":"","sources":["../../src/error/JoseHeaderError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC;;GAEG;AACH,qBAAa,eAAgB,SAAQ,SAAS;gBAC9B,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;CAMvD;AAED,qCAAqC;AACrC,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAEnE"} |
| export declare const missingKidError = "missing_kid_error"; | ||
| export declare const missingAlgError = "missing_alg_error"; | ||
| //# sourceMappingURL=JoseHeaderErrorCodes.d.ts.map |
| {"version":3,"file":"JoseHeaderErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/JoseHeaderErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe,sBAAsB,CAAC;AACnD,eAAO,MAAM,eAAe,sBAAsB,CAAC"} |
| import { AuthError } from "./AuthError.js"; | ||
| /** | ||
| * Represents network related errors | ||
| */ | ||
| export declare class NetworkError extends AuthError { | ||
| error: AuthError; | ||
| httpStatus?: number; | ||
| responseHeaders?: Record<string, string>; | ||
| constructor(error: AuthError, httpStatus?: number, responseHeaders?: Record<string, string>); | ||
| } | ||
| /** | ||
| * Creates NetworkError object for a failed network request | ||
| * @param error - Error to be thrown back to the caller | ||
| * @param httpStatus - Status code of the network request | ||
| * @param responseHeaders - Response headers of the network request, when available | ||
| * @returns NetworkError object | ||
| */ | ||
| export declare function createNetworkError(error: AuthError, httpStatus?: number, responseHeaders?: Record<string, string>, additionalError?: Error): NetworkError; | ||
| //# sourceMappingURL=NetworkError.d.ts.map |
| {"version":3,"file":"NetworkError.d.ts","sourceRoot":"","sources":["../../src/error/NetworkError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;GAEG;AACH,qBAAa,YAAa,SAAQ,SAAS;IACvC,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;gBAGrC,KAAK,EAAE,SAAS,EAChB,UAAU,CAAC,EAAE,MAAM,EACnB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAU/C;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAC9B,KAAK,EAAE,SAAS,EAChB,UAAU,CAAC,EAAE,MAAM,EACnB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACxC,eAAe,CAAC,EAAE,KAAK,GACxB,YAAY,CAGd"} |
| import { AuthError } from "./AuthError.js"; | ||
| /** | ||
| * Error class for MSAL Runtime errors that preserves detailed broker information | ||
| */ | ||
| export declare class PlatformBrokerError extends AuthError { | ||
| /** | ||
| * Numeric error code from MSAL Runtime | ||
| */ | ||
| statusCode: number; | ||
| /** | ||
| * Error tag from MSAL Runtime | ||
| */ | ||
| tag: string; | ||
| constructor(errorStatus: string, errorContext: string, errorCode: number, errorTag: number); | ||
| } | ||
| //# sourceMappingURL=PlatformBrokerError.d.ts.map |
| {"version":3,"file":"PlatformBrokerError.d.ts","sourceRoot":"","sources":["../../src/error/PlatformBrokerError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AA8B3C;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,SAAS;IAC9C;;OAEG;IACI,UAAU,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACI,GAAG,EAAE,MAAM,CAAC;gBAGf,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM;CAavB"} |
| import { AuthError } from "./AuthError.js"; | ||
| /** | ||
| * Error thrown when there is an error with the server code, for example, unavailability. | ||
| */ | ||
| export declare class ServerError extends AuthError { | ||
| /** | ||
| * Server error number; | ||
| */ | ||
| readonly errorNo?: string; | ||
| /** | ||
| * Http status number; | ||
| */ | ||
| readonly status?: number; | ||
| constructor(errorCode?: string, errorMessage?: string, subError?: string, errorNo?: string, status?: number); | ||
| } | ||
| //# sourceMappingURL=ServerError.d.ts.map |
| {"version":3,"file":"ServerError.d.ts","sourceRoot":"","sources":["../../src/error/ServerError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;GAEG;AACH,qBAAa,WAAY,SAAQ,SAAS;IACtC;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;gBAGrB,SAAS,CAAC,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,MAAM,EACrB,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,MAAM;CAStB"} |
| export { SignedHttpRequest, ShrOptions } from "./crypto/SignedHttpRequest.js"; | ||
| export { JoseHeader } from "./crypto/JoseHeader.js"; | ||
| export { ExternalTokenResponse } from "./response/ExternalTokenResponse.js"; | ||
| export { IPerformanceClient, PerformanceCallbackFunction, InProgressPerformanceEvent, } from "./telemetry/performance/IPerformanceClient.js"; | ||
| export { IntFields, PerformanceEvent, PerformanceEventStatus, SubMeasurement, } from "./telemetry/performance/PerformanceEvent.js"; | ||
| export * as PerformanceEvents from "./telemetry/performance/PerformanceEvents.js"; | ||
| export { IPerformanceMeasurement } from "./telemetry/performance/IPerformanceMeasurement.js"; | ||
| export { PerformanceClient } from "./telemetry/performance/PerformanceClient.js"; | ||
| export { StubPerformanceClient } from "./telemetry/performance/StubPerformanceClient.js"; | ||
| export { PopTokenGenerator } from "./crypto/PopTokenGenerator.js"; | ||
| //# sourceMappingURL=exports-browser-only.d.ts.map |
| {"version":3,"file":"exports-browser-only.d.ts","sourceRoot":"","sources":["../src/exports-browser-only.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EACH,kBAAkB,EAClB,2BAA2B,EAC3B,0BAA0B,GAC7B,MAAM,+CAA+C,CAAC;AACvD,OAAO,EACH,SAAS,EACT,gBAAgB,EAChB,sBAAsB,EACtB,cAAc,GACjB,MAAM,6CAA6C,CAAC;AACrD,OAAO,KAAK,iBAAiB,MAAM,8CAA8C,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,oDAAoD,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AAEzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC"} |
| import * as AuthToken from "./account/AuthToken.js"; | ||
| import * as AuthorityFactory from "./authority/AuthorityFactory.js"; | ||
| import * as CacheHelpers from "./cache/utils/CacheHelpers.js"; | ||
| import * as TimeUtils from "./utils/TimeUtils.js"; | ||
| import * as UrlUtils from "./utils/UrlUtils.js"; | ||
| import * as AADServerParamKeys from "./constants/AADServerParamKeys.js"; | ||
| import * as AccountEntityUtils from "./cache/utils/AccountEntityUtils.js"; | ||
| export { AuthToken }; | ||
| export { AuthorityFactory }; | ||
| export { CacheHelpers }; | ||
| export { TimeUtils }; | ||
| export { UrlUtils }; | ||
| export { AADServerParamKeys }; | ||
| export { AccountEntityUtils }; | ||
| export { AuthorizationCodeClient } from "./client/AuthorizationCodeClient.js"; | ||
| export { RefreshTokenClient } from "./client/RefreshTokenClient.js"; | ||
| export { SilentFlowClient } from "./client/SilentFlowClient.js"; | ||
| export { AuthOptions, SystemOptions, LoggerOptions, DEFAULT_SYSTEM_OPTIONS, AzureCloudOptions, ApplicationTelemetry, } from "./config/ClientConfiguration.js"; | ||
| export { ClientConfiguration } from "./config/ClientConfiguration.js"; | ||
| export { AccountInfo, ActiveAccountFilters, TenantProfile, updateAccountTenantProfileData, tenantIdMatchesHomeTenant, buildTenantProfile, } from "./account/AccountInfo.js"; | ||
| export { TokenClaims, getTenantIdFromIdTokenClaims, } from "./account/TokenClaims.js"; | ||
| export { TokenClaims as IdTokenClaims } from "./account/TokenClaims.js"; | ||
| export { CcsCredential, CcsCredentialType } from "./account/CcsCredential.js"; | ||
| export { ClientInfo, buildClientInfo, buildClientInfoFromHomeAccountId, } from "./account/ClientInfo.js"; | ||
| export { Authority, formatAuthorityUri, buildStaticAuthorityOptions, } from "./authority/Authority.js"; | ||
| export { AuthorityOptions, AzureCloudInstance, StaticAuthorityOptions, } from "./authority/AuthorityOptions.js"; | ||
| export { AuthorityType } from "./authority/AuthorityType.js"; | ||
| export { ProtocolMode } from "./authority/ProtocolMode.js"; | ||
| export { OIDCOptions } from "./authority/OIDCOptions.js"; | ||
| export { CacheManager, DefaultStorageClass } from "./cache/CacheManager.js"; | ||
| export { AccountCache, AccountFilter, AccessTokenCache, IdTokenCache, RefreshTokenCache, AppMetadataCache, CredentialFilter, ValidCacheType, ValidCredentialType, TokenKeys, } from "./cache/utils/CacheTypes.js"; | ||
| export { CacheRecord } from "./cache/entities/CacheRecord.js"; | ||
| export { CredentialEntity } from "./cache/entities/CredentialEntity.js"; | ||
| export { AppMetadataEntity } from "./cache/entities/AppMetadataEntity.js"; | ||
| export { AccountEntity } from "./cache/entities/AccountEntity.js"; | ||
| export { IdTokenEntity } from "./cache/entities/IdTokenEntity.js"; | ||
| export { AccessTokenEntity } from "./cache/entities/AccessTokenEntity.js"; | ||
| export { RefreshTokenEntity } from "./cache/entities/RefreshTokenEntity.js"; | ||
| export { ServerTelemetryEntity } from "./cache/entities/ServerTelemetryEntity.js"; | ||
| export { AuthorityMetadataEntity } from "./cache/entities/AuthorityMetadataEntity.js"; | ||
| export { ThrottlingEntity } from "./cache/entities/ThrottlingEntity.js"; | ||
| export { INetworkModule, NetworkRequestOptions, StubbedNetworkModule, } from "./network/INetworkModule.js"; | ||
| export { NetworkResponse } from "./network/NetworkResponse.js"; | ||
| export { ThrottlingUtils } from "./network/ThrottlingUtils.js"; | ||
| export { RequestThumbprint, getRequestThumbprint, } from "./network/RequestThumbprint.js"; | ||
| export { IUri } from "./url/IUri.js"; | ||
| export { UrlString } from "./url/UrlString.js"; | ||
| export { ICrypto, PkceCodes, DEFAULT_CRYPTO_IMPLEMENTATION, SignedHttpRequestParameters, } from "./crypto/ICrypto.js"; | ||
| export * as AuthorizeProtocol from "./protocol/Authorize.js"; | ||
| export * as TokenProtocol from "./protocol/Token.js"; | ||
| export { BaseAuthRequest, enforceResourceParameter, } from "./request/BaseAuthRequest.js"; | ||
| export { CommonAuthorizationUrlRequest } from "./request/CommonAuthorizationUrlRequest.js"; | ||
| export { CommonAuthorizationCodeRequest } from "./request/CommonAuthorizationCodeRequest.js"; | ||
| export { CommonRefreshTokenRequest } from "./request/CommonRefreshTokenRequest.js"; | ||
| export { CommonSilentFlowRequest } from "./request/CommonSilentFlowRequest.js"; | ||
| export { CommonEndSessionRequest } from "./request/CommonEndSessionRequest.js"; | ||
| export * as RequestParameterBuilder from "./request/RequestParameterBuilder.js"; | ||
| export { StoreInCache } from "./request/StoreInCache.js"; | ||
| export { AzureRegion } from "./authority/AzureRegion.js"; | ||
| export { AzureRegionConfiguration } from "./authority/AzureRegionConfiguration.js"; | ||
| export { AuthenticationResult } from "./response/AuthenticationResult.js"; | ||
| export { AuthorizationCodePayload } from "./response/AuthorizationCodePayload.js"; | ||
| export { AuthorizeResponse } from "./response/AuthorizeResponse.js"; | ||
| export { ServerAuthorizationTokenResponse } from "./response/ServerAuthorizationTokenResponse.js"; | ||
| export { ResponseHandler, buildAccountToCache, } from "./response/ResponseHandler.js"; | ||
| export { ScopeSet } from "./request/ScopeSet.js"; | ||
| export { AuthenticationHeaderParser } from "./request/AuthenticationHeaderParser.js"; | ||
| export { ILoggerCallback, LogLevel, Logger } from "./logger/Logger.js"; | ||
| export { InteractionRequiredAuthError, InteractionRequiredAuthErrorCodes, createInteractionRequiredAuthError, } from "./error/InteractionRequiredAuthError.js"; | ||
| export { AuthError, AuthErrorCodes, createAuthError, } from "./error/AuthError.js"; | ||
| export { PlatformBrokerError } from "./error/PlatformBrokerError.js"; | ||
| export { ServerError } from "./error/ServerError.js"; | ||
| export { NetworkError, createNetworkError } from "./error/NetworkError.js"; | ||
| export { CacheError, CacheErrorCodes, createCacheError, } from "./error/CacheError.js"; | ||
| export { ClientAuthError, ClientAuthErrorCodes, createClientAuthError, } from "./error/ClientAuthError.js"; | ||
| export { ClientConfigurationError, ClientConfigurationErrorCodes, createClientConfigurationError, } from "./error/ClientConfigurationError.js"; | ||
| export * as Constants from "./utils/Constants.js"; | ||
| export { StringUtils } from "./utils/StringUtils.js"; | ||
| export { StringDict } from "./utils/MsalTypes.js"; | ||
| export { RequestStateObject, LibraryStateObject } from "./utils/StateTypes.js"; | ||
| export * as ProtocolUtils from "./utils/ProtocolUtils.js"; | ||
| export * from "./utils/FunctionWrappers.js"; | ||
| export { ServerTelemetryManager } from "./telemetry/server/ServerTelemetryManager.js"; | ||
| export { ServerTelemetryRequest } from "./telemetry/server/ServerTelemetryRequest.js"; | ||
| export { version } from "./packageMetadata.js"; | ||
| //# sourceMappingURL=exports-common.d.ts.map |
| {"version":3,"file":"exports-common.d.ts","sourceRoot":"","sources":["../src/exports-common.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,gBAAgB,MAAM,iCAAiC,CAAC;AACpE,OAAO,KAAK,YAAY,MAAM,+BAA+B,CAAC;AAC9D,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,kBAAkB,MAAM,mCAAmC,CAAC;AACxE,OAAO,KAAK,kBAAkB,MAAM,qCAAqC,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAE9B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EACH,WAAW,EACX,aAAa,EACb,aAAa,EACb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C;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC"} |
| import * as ClientAssertionUtils from "./utils/ClientAssertionUtils.js"; | ||
| export { ClientAssertionUtils }; | ||
| export { IAppTokenProvider, AppTokenProviderParameters, AppTokenProviderResult, } from "./config/AppTokenProvider.js"; | ||
| export { INativeBrokerPlugin } from "./broker/nativeBroker/INativeBrokerPlugin.js"; | ||
| export { ICachePlugin } from "./cache/interface/ICachePlugin.js"; | ||
| export { TokenCacheContext } from "./cache/persistence/TokenCacheContext.js"; | ||
| export { ISerializableTokenCache } from "./cache/interface/ISerializableTokenCache.js"; | ||
| export { NativeRequest } from "./request/NativeRequest.js"; | ||
| export { NativeSignOutRequest } from "./request/NativeSignOutRequest.js"; | ||
| export { ClientAssertion, ClientAssertionConfig, ClientAssertionCallback, } from "./account/ClientCredentials.js"; | ||
| export { DeviceCodeResponse, ServerDeviceCodeResponse, } from "./response/DeviceCodeResponse.js"; | ||
| export { getClientAssertion } from "./utils/ClientAssertionUtils.js"; | ||
| export { IGuidGenerator } from "./crypto/IGuidGenerator.js"; | ||
| export { StubPerformanceClient } from "./telemetry/performance/StubPerformanceClient.js"; | ||
| export { buildClientConfiguration, CommonClientConfiguration, } from "./config/ClientConfiguration.js"; | ||
| //# sourceMappingURL=exports-node-only.d.ts.map |
| {"version":3,"file":"exports-node-only.d.ts","sourceRoot":"","sources":["../src/exports-node-only.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,oBAAoB,MAAM,iCAAiC,CAAC;AAExE,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC,OAAO,EACH,iBAAiB,EACjB,0BAA0B,EAC1B,sBAAsB,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EACH,eAAe,EACf,qBAAqB,EACrB,uBAAuB,GAC1B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACH,kBAAkB,EAClB,wBAAwB,GAC3B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AACzF,OAAO,EACH,wBAAwB,EACxB,yBAAyB,GAC5B,MAAM,iCAAiC,CAAC"} |
| export * from "./index-browser.js"; |
| /** | ||
| * This file is the entrypoint when importing with the browser subpath e.g. "import { someExport } from @azure/msal-common/browser" | ||
| * Additional exports should be added to the applicable exports-*.ts files | ||
| */ | ||
| export * from "./exports-common.js"; | ||
| export * from "./exports-browser-only.js"; | ||
| //# sourceMappingURL=index-browser.d.ts.map |
| {"version":3,"file":"index-browser.d.ts","sourceRoot":"","sources":["../src/index-browser.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC"} |
| export * from "./index-node.js"; |
| /** | ||
| * This file is the entrypoint when importing with the node subpath e.g. "import { someExport } from @azure/msal-common/node" | ||
| * Additional exports should be added to the applicable exports-*.ts files | ||
| */ | ||
| export * from "./exports-common.js"; | ||
| export * from "./exports-node-only.js"; | ||
| //# sourceMappingURL=index-node.d.ts.map |
| {"version":3,"file":"index-node.d.ts","sourceRoot":"","sources":["../src/index-node.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC"} |
| export * from "./index.js"; |
| /** | ||
| * @packageDocumentation | ||
| * @module @azure/msal-common | ||
| */ | ||
| /** | ||
| * This file is the entrypoint when importing without a specific subpath e.g. "import { someExport } from @azure/msal-common" | ||
| * Additional exports should be added to the applicable exports-*.ts files | ||
| */ | ||
| export * from "./exports-common.js"; | ||
| export * from "./exports-browser-only.js"; | ||
| export * from "./exports-node-only.js"; | ||
| //# sourceMappingURL=index.d.ts.map |
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA;;;GAGG;AAEH;;;GAGG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC"} |
| import type { LoggerOptions } from "../config/ClientConfiguration.js"; | ||
| /** | ||
| * Options for logger messages. | ||
| */ | ||
| export type LoggerMessageOptions = { | ||
| logLevel: LogLevel; | ||
| containsPii?: boolean; | ||
| context?: string; | ||
| correlationId: string; | ||
| }; | ||
| /** | ||
| * Log message level. | ||
| */ | ||
| export declare enum LogLevel { | ||
| Error = 0, | ||
| Warning = 1, | ||
| Info = 2, | ||
| Verbose = 3, | ||
| Trace = 4 | ||
| } | ||
| /** | ||
| * Callback to send the messages to. | ||
| */ | ||
| export interface ILoggerCallback { | ||
| (level: LogLevel, message: string, containsPii: boolean): void; | ||
| } | ||
| /** | ||
| * Represents a single logged message with metadata | ||
| */ | ||
| export interface LoggedMessage { | ||
| hash: string; | ||
| level: LogLevel; | ||
| containsPii: boolean; | ||
| milliseconds: number; | ||
| } | ||
| /** | ||
| * Get all logs for specific correlation ID | ||
| * @param correlationId | ||
| */ | ||
| export declare function getLogsFromCache(correlationId: string): LoggedMessage[]; | ||
| /** | ||
| * Get logs for correlation ID and flush them from cache | ||
| * Attaches logs with empty correlation id to the requested correlation logs | ||
| * @param correlationId | ||
| */ | ||
| export declare function getAndFlushLogsFromCache(correlationId: string): LoggedMessage[]; | ||
| /** | ||
| * Get all correlation IDs that have logs | ||
| */ | ||
| export declare function getCachedCorrelationIds(): string[]; | ||
| /** | ||
| * Class which facilitates logging of messages to a specific place. | ||
| */ | ||
| export declare class Logger { | ||
| private level; | ||
| private piiLoggingEnabled; | ||
| private localCallback; | ||
| private packageName; | ||
| private packageVersion; | ||
| constructor(loggerOptions: LoggerOptions, packageName?: string, packageVersion?: string); | ||
| private static createDefaultLoggerOptions; | ||
| /** | ||
| * Create new Logger with existing configurations. | ||
| */ | ||
| clone(packageName: string, packageVersion: string): Logger; | ||
| /** | ||
| * Log message with required options. | ||
| */ | ||
| private logMessage; | ||
| /** | ||
| * Execute callback with message. | ||
| */ | ||
| executeCallback(level: LogLevel, message: string, containsPii: boolean): void; | ||
| /** | ||
| * Logs error messages. | ||
| */ | ||
| error(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs error messages with PII. | ||
| */ | ||
| errorPii(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs warning messages. | ||
| */ | ||
| warning(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs warning messages with PII. | ||
| */ | ||
| warningPii(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs info messages. | ||
| */ | ||
| info(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs info messages with PII. | ||
| */ | ||
| infoPii(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs verbose messages. | ||
| */ | ||
| verbose(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs verbose messages with PII. | ||
| */ | ||
| verbosePii(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs trace messages. | ||
| */ | ||
| trace(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs trace messages with PII. | ||
| */ | ||
| tracePii(message: string, correlationId: string): void; | ||
| /** | ||
| * Returns whether PII Logging is enabled or not. | ||
| */ | ||
| isPiiLoggingEnabled(): boolean; | ||
| } | ||
| //# sourceMappingURL=Logger.d.ts.map |
| {"version":3,"file":"Logger.d.ts","sourceRoot":"","sources":["../../src/logger/Logger.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,oBAAY,QAAQ;IAChB,KAAK,IAAA;IACL,OAAO,IAAA;IACP,IAAI,IAAA;IACJ,OAAO,IAAA;IACP,KAAK,IAAA;CACR;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,GAAG,IAAI,CAAC;CAClE;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,QAAQ,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACxB;AAoED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,EAAE,CAOvE;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACpC,aAAa,EAAE,MAAM,GACtB,aAAa,EAAE,CAQjB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,EAAE,CAElD;AAwBD;;GAEG;AAC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IACH,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQnD;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQtD;;OAEG;IACH,mBAAmB,IAAI,OAAO;CAGjC"} |
| import { NetworkResponse } from "./NetworkResponse.js"; | ||
| /** | ||
| * Options allowed by network request APIs. | ||
| */ | ||
| export type NetworkRequestOptions = { | ||
| headers?: Record<string, string>; | ||
| body?: string; | ||
| }; | ||
| /** | ||
| * Client network interface to send backend requests. | ||
| * @interface | ||
| */ | ||
| export interface INetworkModule { | ||
| /** | ||
| * Interface function for async network "GET" requests. Based on the Fetch standard: https://fetch.spec.whatwg.org/ | ||
| * @param url | ||
| * @param options - Headers and/or body to include on the request | ||
| * @param timeout | ||
| */ | ||
| sendGetRequestAsync<T>(url: string, options?: NetworkRequestOptions, timeout?: number): Promise<NetworkResponse<T>>; | ||
| /** | ||
| * Interface function for async network "POST" requests. Based on the Fetch standard: https://fetch.spec.whatwg.org/ | ||
| * @param url | ||
| * @param options - Headers and/or body to include on the request | ||
| */ | ||
| sendPostRequestAsync<T>(url: string, options?: NetworkRequestOptions): Promise<NetworkResponse<T>>; | ||
| } | ||
| export declare const StubbedNetworkModule: INetworkModule; | ||
| //# sourceMappingURL=INetworkModule.d.ts.map |
| {"version":3,"file":"INetworkModule.d.ts","sourceRoot":"","sources":["../../src/network/INetworkModule.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;;OAKG;IACH,mBAAmB,CAAC,CAAC,EACjB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,EAC/B,OAAO,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IAE/B;;;;OAIG;IACH,oBAAoB,CAAC,CAAC,EAClB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,GAChC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;CAClC;AAED,eAAO,MAAM,oBAAoB,EAAE,cAWlC,CAAC"} |
| export type NetworkResponse<T> = { | ||
| headers: Record<string, string>; | ||
| body: T; | ||
| status: number; | ||
| }; | ||
| //# sourceMappingURL=NetworkResponse.d.ts.map |
| {"version":3,"file":"NetworkResponse.d.ts","sourceRoot":"","sources":["../../src/network/NetworkResponse.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI;IAC7B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,CAAC,CAAC;IACR,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC"} |
| import { ShrOptions } from "../crypto/SignedHttpRequest.js"; | ||
| import { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| import { AuthenticationScheme } from "../utils/Constants.js"; | ||
| /** | ||
| * Type representing a unique request thumbprint. | ||
| */ | ||
| export type RequestThumbprint = { | ||
| clientId: string; | ||
| authority: string; | ||
| scopes: Array<string>; | ||
| homeAccountIdentifier?: string; | ||
| claims?: string; | ||
| authenticationScheme?: AuthenticationScheme; | ||
| resourceRequestMethod?: string; | ||
| resourceRequestUri?: string; | ||
| shrClaims?: string; | ||
| sshKid?: string; | ||
| shrOptions?: ShrOptions; | ||
| embeddedClientId?: string; | ||
| }; | ||
| export declare function getRequestThumbprint(clientId: string, request: BaseAuthRequest, homeAccountId?: string): RequestThumbprint; | ||
| //# sourceMappingURL=RequestThumbprint.d.ts.map |
| {"version":3,"file":"RequestThumbprint.d.ts","sourceRoot":"","sources":["../../src/network/RequestThumbprint.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,wBAAgB,oBAAoB,CAChC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,eAAe,EACxB,aAAa,CAAC,EAAE,MAAM,GACvB,iBAAiB,CAenB"} |
| import { NetworkResponse } from "./NetworkResponse.js"; | ||
| import { ServerAuthorizationTokenResponse } from "../response/ServerAuthorizationTokenResponse.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { RequestThumbprint } from "./RequestThumbprint.js"; | ||
| import { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| /** @internal */ | ||
| export declare class ThrottlingUtils { | ||
| /** | ||
| * Prepares a RequestThumbprint to be stored as a key. | ||
| * @param thumbprint | ||
| */ | ||
| static generateThrottlingStorageKey(thumbprint: RequestThumbprint): string; | ||
| /** | ||
| * Performs necessary throttling checks before a network request. | ||
| * @param cacheManager | ||
| * @param thumbprint | ||
| */ | ||
| static preProcess(cacheManager: CacheManager, thumbprint: RequestThumbprint, correlationId: string): void; | ||
| /** | ||
| * Performs necessary throttling checks after a network request. | ||
| * @param cacheManager | ||
| * @param thumbprint | ||
| * @param response | ||
| */ | ||
| static postProcess(cacheManager: CacheManager, thumbprint: RequestThumbprint, response: NetworkResponse<ServerAuthorizationTokenResponse>, correlationId: string): void; | ||
| /** | ||
| * Checks a NetworkResponse object's status codes against 429 or 5xx | ||
| * @param response | ||
| */ | ||
| static checkResponseStatus(response: NetworkResponse<ServerAuthorizationTokenResponse>): boolean; | ||
| /** | ||
| * Checks a NetworkResponse object's RetryAfter header | ||
| * @param response | ||
| */ | ||
| static checkResponseForRetryAfter(response: NetworkResponse<ServerAuthorizationTokenResponse>): boolean; | ||
| /** | ||
| * Calculates the Unix-time value for a throttle to expire given throttleTime in seconds. | ||
| * @param throttleTime | ||
| */ | ||
| static calculateThrottleTime(throttleTime: number): number; | ||
| static removeThrottle(cacheManager: CacheManager, clientId: string, request: BaseAuthRequest, homeAccountIdentifier?: string): void; | ||
| } | ||
| //# sourceMappingURL=ThrottlingUtils.d.ts.map |
| {"version":3,"file":"ThrottlingUtils.d.ts","sourceRoot":"","sources":["../../src/network/ThrottlingUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AAEnG,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAEH,iBAAiB,EACpB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,gBAAgB;AAChB,qBAAa,eAAe;IACxB;;;OAGG;IACH,MAAM,CAAC,4BAA4B,CAAC,UAAU,EAAE,iBAAiB,GAAG,MAAM;IAI1E;;;;OAIG;IACH,MAAM,CAAC,UAAU,CACb,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,iBAAiB,EAC7B,aAAa,EAAE,MAAM,GACtB,IAAI;IAiBP;;;;;OAKG;IACH,MAAM,CAAC,WAAW,CACd,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,iBAAiB,EAC7B,QAAQ,EAAE,eAAe,CAAC,gCAAgC,CAAC,EAC3D,aAAa,EAAE,MAAM,GACtB,IAAI;IAwBP;;;OAGG;IACH,MAAM,CAAC,mBAAmB,CACtB,QAAQ,EAAE,eAAe,CAAC,gCAAgC,CAAC,GAC5D,OAAO;IAOV;;;OAGG;IACH,MAAM,CAAC,0BAA0B,CAC7B,QAAQ,EAAE,eAAe,CAAC,gCAAgC,CAAC,GAC5D,OAAO;IAYV;;;OAGG;IACH,MAAM,CAAC,qBAAqB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;IAa1D,MAAM,CAAC,cAAc,CACjB,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,eAAe,EACxB,qBAAqB,CAAC,EAAE,MAAM,GAC/B,IAAI;CASV"} |
| export declare const name = "@azure/msal-common"; | ||
| export declare const version = "16.6.0"; | ||
| //# sourceMappingURL=packageMetadata.d.ts.map |
| {"version":3,"file":"packageMetadata.d.ts","sourceRoot":"","sources":["../src/packageMetadata.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI,uBAAuB,CAAC;AACzC,eAAO,MAAM,OAAO,WAAW,CAAC"} |
| import { CommonAuthorizationUrlRequest } from "../request/CommonAuthorizationUrlRequest.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { AuthOptions } from "../config/ClientConfiguration.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { Authority } from "../authority/Authority.js"; | ||
| import { AuthorizationCodePayload } from "../response/AuthorizationCodePayload.js"; | ||
| import { AuthorizeResponse } from "../response/AuthorizeResponse.js"; | ||
| /** | ||
| * Returns map of parameters that are applicable to all calls to /authorize whether using PKCE or EAR | ||
| * @param config | ||
| * @param request | ||
| * @param logger | ||
| * @param performanceClient | ||
| * @returns | ||
| */ | ||
| export declare function getStandardAuthorizeRequestParameters(authOptions: AuthOptions, request: CommonAuthorizationUrlRequest, logger: Logger, performanceClient?: IPerformanceClient): Map<string, string>; | ||
| /** | ||
| * Returns authorize endpoint with given request parameters in the query string | ||
| * @param authority | ||
| * @param requestParameters | ||
| * @returns | ||
| */ | ||
| export declare function getAuthorizeUrl(authority: Authority, requestParameters: Map<string, string>): string; | ||
| /** | ||
| * Handles the hash fragment response from public client code request. Returns a code response used by | ||
| * the client to exchange for a token in acquireToken. | ||
| * @param serverParams | ||
| * @param cachedState | ||
| */ | ||
| export declare function getAuthorizationCodePayload(serverParams: AuthorizeResponse, cachedState: string): AuthorizationCodePayload; | ||
| /** | ||
| * Function which validates server authorization code response. | ||
| * @param serverResponseHash | ||
| * @param requestState | ||
| */ | ||
| export declare function validateAuthorizationResponse(serverResponse: AuthorizeResponse, requestState: string): void; | ||
| //# sourceMappingURL=Authorize.d.ts.map |
| {"version":3,"file":"Authorize.d.ts","sourceRoot":"","sources":["../../src/protocol/Authorize.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAE5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEpF,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAG/D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAWrE;;;;;;;GAOG;AACH,wBAAgB,qCAAqC,CACjD,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,6BAA6B,EACtC,MAAM,EAAE,MAAM,EACd,iBAAiB,CAAC,EAAE,kBAAkB,GACvC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAiOrB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC3B,SAAS,EAAE,SAAS,EACpB,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACvC,MAAM,CAMR;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACvC,YAAY,EAAE,iBAAiB,EAC/B,WAAW,EAAE,MAAM,GACpB,wBAAwB,CAY1B;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CACzC,cAAc,EAAE,iBAAiB,EACjC,YAAY,EAAE,MAAM,GACrB,IAAI,CAuEN"} |
| import { CcsCredential } from "../account/CcsCredential.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| import { IPerformanceClient } from "../exports-browser-only.js"; | ||
| import { ServerAuthorizationTokenResponse } from "../response/ServerAuthorizationTokenResponse.js"; | ||
| import { RequestThumbprint } from "../network/RequestThumbprint.js"; | ||
| import { INetworkModule, NetworkRequestOptions } from "../network/INetworkModule.js"; | ||
| import { NetworkResponse } from "../network/NetworkResponse.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| /** | ||
| * Creates default headers for requests to token endpoint | ||
| */ | ||
| export declare function createTokenRequestHeaders(logger: Logger, preventCorsPreflight: boolean, ccsCred?: CcsCredential): Record<string, string>; | ||
| /** | ||
| * Creates query string for the /token request | ||
| * @param request | ||
| */ | ||
| export declare function createTokenQueryParameters(request: BaseAuthRequest, clientId: string, redirectUri: string, performanceClient: IPerformanceClient): string; | ||
| /** | ||
| * Http post to token endpoint | ||
| * @param tokenEndpoint | ||
| * @param queryString | ||
| * @param headers | ||
| * @param thumbprint | ||
| */ | ||
| export declare function executePostToTokenEndpoint(tokenEndpoint: string, queryString: string, headers: Record<string, string>, thumbprint: RequestThumbprint, correlationId: string, cacheManager: CacheManager, networkClient: INetworkModule, logger: Logger, performanceClient: IPerformanceClient, serverTelemetryManager: ServerTelemetryManager | null): Promise<NetworkResponse<ServerAuthorizationTokenResponse>>; | ||
| /** | ||
| * Wraps sendPostRequestAsync with necessary preflight and postflight logic | ||
| * @param thumbprint - Request thumbprint for throttling | ||
| * @param tokenEndpoint - Endpoint to make the POST to | ||
| * @param options - Body and Headers to include on the POST request | ||
| * @param correlationId - CorrelationId for telemetry | ||
| * @param cacheManager - Cache manager instance | ||
| * @param networkClient - Network module instance | ||
| * @param logger - Logger instance | ||
| * @param performanceClient - Performance client instance | ||
| */ | ||
| export declare function sendPostRequest<T extends ServerAuthorizationTokenResponse>(thumbprint: RequestThumbprint, tokenEndpoint: string, options: NetworkRequestOptions, correlationId: string, cacheManager: CacheManager, networkClient: INetworkModule, logger: Logger, performanceClient: IPerformanceClient): Promise<NetworkResponse<T>>; | ||
| //# sourceMappingURL=Token.d.ts.map |
| {"version":3,"file":"Token.d.ts","sourceRoot":"","sources":["../../src/protocol/Token.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAqB,MAAM,6BAA6B,CAAC;AAE/E,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAIhE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AACnG,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EACH,cAAc,EACd,qBAAqB,EACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAUhE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AAEvF;;GAEG;AACH,wBAAgB,yBAAyB,CACrC,MAAM,EAAE,MAAM,EACd,oBAAoB,EAAE,OAAO,EAC7B,OAAO,CAAC,EAAE,aAAa,GACxB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA0BxB;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACtC,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,iBAAiB,EAAE,kBAAkB,GACtC,MAAM,CA0BR;AAED;;;;;;GAMG;AACH,wBAAsB,0BAA0B,CAC5C,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,UAAU,EAAE,iBAAiB,EAC7B,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,cAAc,EAC7B,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,kBAAkB,EACrC,sBAAsB,EAAE,sBAAsB,GAAG,IAAI,GACtD,OAAO,CAAC,eAAe,CAAC,gCAAgC,CAAC,CAAC,CAsB5D;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,eAAe,CACjC,CAAC,SAAS,gCAAgC,EAE1C,UAAU,EAAE,iBAAiB,EAC7B,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,qBAAqB,EAC9B,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,cAAc,EAC7B,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,kBAAkB,GACtC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CA6D7B"} |
| /** | ||
| * This is a helper class that parses supported HTTP response authentication headers to extract and return | ||
| * header challenge values that can be used outside the basic authorization flows. | ||
| */ | ||
| export declare class AuthenticationHeaderParser { | ||
| private headers; | ||
| constructor(headers: Record<string, string>); | ||
| /** | ||
| * This method parses the SHR nonce value out of either the Authentication-Info or WWW-Authenticate authentication headers. | ||
| * @returns | ||
| */ | ||
| getShrNonce(): string; | ||
| /** | ||
| * Parses an HTTP header's challenge set into a key/value map. | ||
| * @param header | ||
| * @returns | ||
| */ | ||
| private parseChallenges; | ||
| } | ||
| //# sourceMappingURL=AuthenticationHeaderParser.d.ts.map |
| {"version":3,"file":"AuthenticationHeaderParser.d.ts","sourceRoot":"","sources":["../../src/request/AuthenticationHeaderParser.ts"],"names":[],"mappings":"AAmBA;;;GAGG;AACH,qBAAa,0BAA0B;IACnC,OAAO,CAAC,OAAO,CAAyB;gBAE5B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAI3C;;;OAGG;IACH,WAAW,IAAI,MAAM;IAqCrB;;;;OAIG;IACH,OAAO,CAAC,eAAe;CAa1B"} |
| import { AuthenticationScheme, HttpMethod } from "../utils/Constants.js"; | ||
| import type { AzureCloudOptions } from "../config/ClientConfiguration.js"; | ||
| import { StringDict } from "../utils/MsalTypes.js"; | ||
| import { StoreInCache } from "./StoreInCache.js"; | ||
| import { ShrOptions } from "../crypto/SignedHttpRequest.js"; | ||
| /** | ||
| * BaseAuthRequest | ||
| */ | ||
| export type BaseAuthRequest = { | ||
| /** | ||
| * URL of the authority, the security token service (STS) from which MSAL will acquire tokens. Defaults to https://login.microsoftonline.com/common. If using the same authority for all request, authority should set on client application object and not request, to avoid resolving authority endpoints multiple times. | ||
| */ | ||
| authority: string; | ||
| /** | ||
| * Unique GUID set per request to trace a request end-to-end for telemetry purposes. | ||
| */ | ||
| correlationId: string; | ||
| /** | ||
| * Array of scopes the application is requesting access to. | ||
| */ | ||
| scopes: Array<string>; | ||
| /** | ||
| * The type of token retrieved. Defaults to "Bearer". Can also be type "pop" or "SSH". | ||
| */ | ||
| authenticationScheme?: AuthenticationScheme; | ||
| /** | ||
| * A stringified claims request which will be added to all /authorize and /token calls | ||
| */ | ||
| claims?: string; | ||
| /** | ||
| * A stringified claims object which will be added to a Signed HTTP Request | ||
| */ | ||
| shrClaims?: string; | ||
| /** | ||
| * A server-generated timestamp that has been encrypted and base64URL encoded, which will be added to a Signed HTTP Request. | ||
| */ | ||
| shrNonce?: string; | ||
| /** | ||
| * An object containing options for the Signed HTTP Request | ||
| */ | ||
| shrOptions?: ShrOptions; | ||
| /** | ||
| * HTTP Request type used to request data from the resource (i.e. "GET", "POST", etc.). Used for proof-of-possession flows. | ||
| */ | ||
| resourceRequestMethod?: string; | ||
| /** | ||
| * URI that token will be used for. Used for proof-of-possession flows. | ||
| */ | ||
| resourceRequestUri?: string; | ||
| /** | ||
| * A stringified JSON Web Key representing a public key that can be signed by an SSH certificate. | ||
| */ | ||
| sshJwk?: string; | ||
| /** | ||
| * Key ID that uniquely identifies the SSH public key mentioned above. | ||
| */ | ||
| sshKid?: string; | ||
| /** | ||
| * Convenience string enums for users to provide public/sovereign cloud ids | ||
| */ | ||
| azureCloudOptions?: AzureCloudOptions; | ||
| /** | ||
| * Maximum allowed age, in milliseconds, of the user's authentication before a new sign-in is required. | ||
| */ | ||
| maxAge?: number; | ||
| /** | ||
| * Object containing boolean values indicating whether to store tokens in the cache or not (default is true) | ||
| */ | ||
| storeInCache?: StoreInCache; | ||
| /** | ||
| * Scenario id to track custom user prompts | ||
| */ | ||
| scenarioId?: string; | ||
| /** | ||
| * Key ID to identify the public key for PoP token request | ||
| */ | ||
| popKid?: string; | ||
| /** | ||
| * Embedded client id. When specified, broker client id (brk_client_id) and redirect uri (brk_redirect_uri) params are set with values from the config, overriding the corresponding extra parameters, if present. | ||
| */ | ||
| embeddedClientId?: string; | ||
| /** | ||
| * HTTP method to use for the /authorize request. Defaults to GET, but can be set to POST if the request requires body parameters. | ||
| */ | ||
| httpMethod?: HttpMethod; | ||
| /** | ||
| * Resource parameter to be sent with the request. Used for MCP flows. | ||
| */ | ||
| resource?: string; | ||
| /** | ||
| * When true and a brokered flow is in effect—i.e., when a broker client id (brk_client_id), typically derived from embeddedClientId or other broker parameters, is included in the request—clientCapabilities from configuration will be excluded from claims. Has no effect when brk_client_id is not present (non-brokered flows). | ||
| */ | ||
| skipBrokerClaims?: boolean; | ||
| /** | ||
| * String to string map of custom query parameters added to outgoing token service requests. Unless the parameter is only supported on query strings use extraParameters instead | ||
| */ | ||
| extraQueryParameters?: StringDict; | ||
| /** | ||
| * String to string map of custom parameters added to outgoing token service requests. | ||
| */ | ||
| extraParameters?: StringDict; | ||
| }; | ||
| /** | ||
| * Helper to enforce resource parameter presence in token requests when isMcp is set in the configuration. | ||
| * If resource parameter is set in both the request and in extraQueryParameters or extraParameters, an error will be thrown. | ||
| * This is used for MCP flows. | ||
| * @param isMcp - Flag indicating if application is an MCP app, from configuration | ||
| * @param request - Auth request | ||
| */ | ||
| export declare function enforceResourceParameter(isMcp: boolean, request: Partial<BaseAuthRequest>): void; | ||
| //# sourceMappingURL=BaseAuthRequest.d.ts.map |
| {"version":3,"file":"BaseAuthRequest.d.ts","sourceRoot":"","sources":["../../src/request/BaseAuthRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAI5D;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC1B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB;;OAEG;IACH,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,oBAAoB,CAAC,EAAE,UAAU,CAAC;IAClC;;OAEG;IACH,eAAe,CAAC,EAAE,UAAU,CAAC;CAChC,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACpC,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,GAClC,IAAI,CAoBN"} |
| import { BaseAuthRequest } from "./BaseAuthRequest.js"; | ||
| import { CcsCredential } from "../account/CcsCredential.js"; | ||
| /** | ||
| * Request object passed by user to acquire a token from the server exchanging a valid authorization code (second leg of OAuth2.0 Authorization Code flow) | ||
| */ | ||
| export type CommonAuthorizationCodeRequest = BaseAuthRequest & { | ||
| /** | ||
| * The authorization_code that the user acquired in the first leg of the flow. | ||
| */ | ||
| code: string; | ||
| /** | ||
| * The redirect URI of your app, where the authority will redirect to after the user inputs credentials and consents. It must exactly match one of the redirect URIs you registered in the portal | ||
| */ | ||
| redirectUri: string; | ||
| /** | ||
| * The same code_verifier that was used to obtain the authorization_code. Required if PKCE was used in the authorization code grant request.For more information, see the PKCE RFC: https://tools.ietf.org/html/rfc7636 | ||
| */ | ||
| codeVerifier?: string; | ||
| /** | ||
| * Enables the acquisition of a SPA authorization code (confidential clients only). | ||
| */ | ||
| enableSpaAuthorizationCode?: boolean; | ||
| /** | ||
| * Encoded client_info returned with the authorization code, used to bind the token response to a specific account. | ||
| */ | ||
| clientInfo?: string; | ||
| /** | ||
| * Credential used to populate the CCS (Cache Credential Service) header. | ||
| */ | ||
| ccsCredential?: CcsCredential; | ||
| }; | ||
| //# sourceMappingURL=CommonAuthorizationCodeRequest.d.ts.map |
| {"version":3,"file":"CommonAuthorizationCodeRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonAuthorizationCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,eAAe,GAAG;IAC3D;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CACjC,CAAC"} |
| import { ResponseMode } from "../utils/Constants.js"; | ||
| import { BaseAuthRequest } from "./BaseAuthRequest.js"; | ||
| import { AccountInfo } from "../account/AccountInfo.js"; | ||
| /** | ||
| * Request object passed by user to retrieve a Code from the server (first leg of authorization code grant flow) | ||
| */ | ||
| export type CommonAuthorizationUrlRequest = BaseAuthRequest & { | ||
| /** | ||
| * 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. | ||
| */ | ||
| redirectUri: string; | ||
| /** | ||
| * Specifies the method that should be used to send the authentication result to your app. Can be query, form_post, or fragment. If no value is passed in, it defaults to query. | ||
| */ | ||
| responseMode: ResponseMode; | ||
| /** | ||
| * AccountInfo obtained from a getAccount API. Will be used in certain scenarios to generate login_hint if both loginHint and sid params are not provided. | ||
| */ | ||
| account?: AccountInfo; | ||
| /** | ||
| * JSON Web Key used when constructing Encrypted Authorize Response (EAR) parameters. | ||
| */ | ||
| earJwk?: string; | ||
| /** | ||
| * 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 | ||
| */ | ||
| codeChallenge?: string; | ||
| /** | ||
| * 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 | ||
| */ | ||
| codeChallengeMethod?: string; | ||
| /** | ||
| * 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. | ||
| */ | ||
| domainHint?: string; | ||
| /** | ||
| * Scopes for a different resource when the user needs consent upfront. | ||
| */ | ||
| extraScopesToConsent?: Array<string>; | ||
| /** | ||
| * 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. Can also be the string value extracted from the login_hint claim on an idToken obtained previously to provide SSO. | ||
| */ | ||
| loginHint?: string; | ||
| /** | ||
| * 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. | ||
| */ | ||
| nonce: string; | ||
| /** | ||
| * Indicates the type of user interaction that is required. | ||
| * login: will force the user to enter their credentials on that request, negating single-sign on | ||
| * 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 | ||
| * consent: will the trigger the OAuth consent dialog after the user signs in, asking the user to grant permissions to the app | ||
| * 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 | ||
| * create: will direct the user to the account creation experience instead of the log in experience | ||
| * no_session: will not read existing session token when authenticating the user. Upon user being successfully authenticated, EVO won’t create a new session for the user. FOR INTERNAL USE ONLY. | ||
| */ | ||
| prompt?: string; | ||
| /** | ||
| * Session ID, unique identifier for the session. Available as an optional claim on ID tokens. Use login_hint optional claim provided on loginHint paramter instead, when available. | ||
| */ | ||
| sid?: string; | ||
| /** | ||
| * 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. For security and privacy reasons, we do not recommend putting URLs or other sensitive data directly in the state parameter. Instead, use a key or identifier that corresponds to data stored in browser storage (e.g., localStorage, sessionStorage), allowing your app to securely reference the necessary data after authentication. | ||
| */ | ||
| state: string; | ||
| /** | ||
| * Indicates whether this authorization request is being initiated by a platform authentication broker instead of a standard web flow. | ||
| */ | ||
| platformBroker?: boolean; | ||
| }; | ||
| //# sourceMappingURL=CommonAuthorizationUrlRequest.d.ts.map |
| {"version":3,"file":"CommonAuthorizationUrlRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonAuthorizationUrlRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,eAAe,GAAG;IAC1D;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,YAAY,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,oBAAoB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC"} |
| import { AccountInfo } from "../account/AccountInfo.js"; | ||
| import { StringDict } from "../utils/MsalTypes.js"; | ||
| /** | ||
| * CommonEndSessionRequest | ||
| */ | ||
| export type CommonEndSessionRequest = { | ||
| /** | ||
| * Unique GUID set per request to trace a request end-to-end for telemetry purposes. | ||
| */ | ||
| correlationId: string; | ||
| /** | ||
| * Account object that will be logged out of. All tokens tied to this account will be cleared. | ||
| */ | ||
| account?: AccountInfo | null; | ||
| /** | ||
| * URI to navigate to after logout page. | ||
| */ | ||
| postLogoutRedirectUri?: string | null; | ||
| /** | ||
| * ID Token used by B2C to validate logout if required by the policy | ||
| */ | ||
| idTokenHint?: string; | ||
| /** | ||
| * A value included in the request to the logout endpoint which will be returned in the query string upon post logout redirection. For security and privacy reasons, we do not recommend putting URLs or other sensitive data directly in the state parameter. Instead, use a key or identifier that corresponds to data stored in browser storage (e.g., localStorage, sessionStorage), allowing your app to securely reference the necessary data after logout. | ||
| */ | ||
| state?: string; | ||
| /** | ||
| * A string that specifies the account that is being logged out in order to skip the server account picker on logout | ||
| */ | ||
| logoutHint?: string; | ||
| /** | ||
| * String to string map of custom query parameters added to the /authorize call | ||
| */ | ||
| extraQueryParameters?: StringDict; | ||
| }; | ||
| //# sourceMappingURL=CommonEndSessionRequest.d.ts.map |
| {"version":3,"file":"CommonEndSessionRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonEndSessionRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IAClC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,oBAAoB,CAAC,EAAE,UAAU,CAAC;CACrC,CAAC"} |
| import { BaseAuthRequest } from "./BaseAuthRequest.js"; | ||
| import { CcsCredential } from "../account/CcsCredential.js"; | ||
| /** | ||
| * CommonRefreshTokenRequest | ||
| */ | ||
| export type CommonRefreshTokenRequest = BaseAuthRequest & { | ||
| /** | ||
| * A refresh token returned from a previous request to the Identity provider. | ||
| */ | ||
| refreshToken: string; | ||
| /** | ||
| * Credential used to populate the CCS (Cache Credential Service) header. | ||
| */ | ||
| ccsCredential?: CcsCredential; | ||
| /** | ||
| * Force MSAL to cache a refresh token flow response when there is no account in the cache. Used for migration scenarios. | ||
| */ | ||
| forceCache?: boolean; | ||
| /** | ||
| * Redirect URI to send with the refresh token request. | ||
| */ | ||
| redirectUri?: string; | ||
| }; | ||
| //# sourceMappingURL=CommonRefreshTokenRequest.d.ts.map |
| {"version":3,"file":"CommonRefreshTokenRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonRefreshTokenRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,eAAe,GAAG;IACtD;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"} |
| import { AccountInfo } from "../account/AccountInfo.js"; | ||
| import { BaseAuthRequest } from "./BaseAuthRequest.js"; | ||
| /** | ||
| * SilentFlow parameters passed by the user to retrieve credentials silently | ||
| */ | ||
| export type CommonSilentFlowRequest = BaseAuthRequest & { | ||
| /** | ||
| * Account object to lookup the credentials | ||
| */ | ||
| account: AccountInfo; | ||
| /** | ||
| * Skip cache lookup and forces network call(s) to get fresh tokens | ||
| */ | ||
| forceRefresh: boolean; | ||
| /** | ||
| * RedirectUri registered on the app registration - only required in brokering scenarios | ||
| */ | ||
| redirectUri?: string; | ||
| /** | ||
| * If refresh token will expire within the configured value, consider it already expired. Used to pre-emptively invoke interaction when cached refresh token is close to expiry. | ||
| */ | ||
| refreshTokenExpirationOffsetSeconds?: number; | ||
| }; | ||
| //# sourceMappingURL=CommonSilentFlowRequest.d.ts.map |
| {"version":3,"file":"CommonSilentFlowRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonSilentFlowRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG;IACpD;;OAEG;IACH,OAAO,EAAE,WAAW,CAAC;IACrB;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,mCAAmC,CAAC,EAAE,MAAM,CAAC;CAChD,CAAC"} |
| import { StringDict } from "../utils/MsalTypes.js"; | ||
| export type NativeRequest = { | ||
| clientId: string; | ||
| authority: string; | ||
| correlationId: string; | ||
| redirectUri: string; | ||
| scopes: Array<string>; | ||
| claims?: string; | ||
| authenticationScheme?: string; | ||
| resourceRequestMethod?: string; | ||
| resourceRequestUri?: string; | ||
| shrNonce?: string; | ||
| accountId?: string; | ||
| forceRefresh?: boolean; | ||
| resource?: string; | ||
| extraParameters?: StringDict; | ||
| extraScopesToConsent?: Array<string>; | ||
| loginHint?: string; | ||
| prompt?: string; | ||
| }; | ||
| //# sourceMappingURL=NativeRequest.d.ts.map |
| {"version":3,"file":"NativeRequest.d.ts","sourceRoot":"","sources":["../../src/request/NativeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,MAAM,MAAM,aAAa,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,oBAAoB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"} |
| export type NativeSignOutRequest = { | ||
| clientId: string; | ||
| accountId: string; | ||
| correlationId: string; | ||
| }; | ||
| //# sourceMappingURL=NativeSignOutRequest.d.ts.map |
| {"version":3,"file":"NativeSignOutRequest.d.ts","sourceRoot":"","sources":["../../src/request/NativeSignOutRequest.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,oBAAoB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC"} |
| import * as Constants from "../utils/Constants.js"; | ||
| import { StringDict } from "../utils/MsalTypes.js"; | ||
| import { ApplicationTelemetry, LibraryInfo } from "../config/ClientConfiguration.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| import { ClientInfo } from "../account/ClientInfo.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| export declare function instrumentBrokerParams(parameters: Map<string, string>, correlationId?: string, performanceClient?: IPerformanceClient): void; | ||
| /** | ||
| * Add the given response_type | ||
| * @param parameters | ||
| * @param responseType | ||
| */ | ||
| export declare function addResponseType(parameters: Map<string, string>, responseType: Constants.OAuthResponseType): void; | ||
| /** | ||
| * add response_mode. defaults to query. | ||
| * @param responseMode | ||
| */ | ||
| export declare function addResponseMode(parameters: Map<string, string>, responseMode?: Constants.ResponseMode): void; | ||
| /** | ||
| * Add flag to indicate STS should attempt to use WAM if available | ||
| */ | ||
| export declare function addNativeBroker(parameters: Map<string, string>): void; | ||
| /** | ||
| * add scopes. set addOidcScopes to false to prevent default scopes in non-user scenarios | ||
| * @param scopeSet | ||
| * @param addOidcScopes | ||
| */ | ||
| export declare function addScopes(parameters: Map<string, string>, scopes: string[], addOidcScopes?: boolean, defaultScopes?: Array<string>): void; | ||
| /** | ||
| * add clientId | ||
| * @param clientId | ||
| */ | ||
| export declare function addClientId(parameters: Map<string, string>, clientId: string): void; | ||
| /** | ||
| * add redirect_uri | ||
| * @param redirectUri | ||
| */ | ||
| export declare function addRedirectUri(parameters: Map<string, string>, redirectUri: string): void; | ||
| /** | ||
| * add post logout redirectUri | ||
| * @param redirectUri | ||
| */ | ||
| export declare function addPostLogoutRedirectUri(parameters: Map<string, string>, redirectUri: string): void; | ||
| /** | ||
| * add id_token_hint to logout request | ||
| * @param idTokenHint | ||
| */ | ||
| export declare function addIdTokenHint(parameters: Map<string, string>, idTokenHint: string): void; | ||
| /** | ||
| * add domain_hint | ||
| * @param domainHint | ||
| */ | ||
| export declare function addDomainHint(parameters: Map<string, string>, domainHint: string): void; | ||
| /** | ||
| * add login_hint | ||
| * @param loginHint | ||
| */ | ||
| export declare function addLoginHint(parameters: Map<string, string>, loginHint: string): void; | ||
| /** | ||
| * Adds the CCS (Cache Credential Service) query parameter for login_hint | ||
| * @param loginHint | ||
| */ | ||
| export declare function addCcsUpn(parameters: Map<string, string>, loginHint: string): void; | ||
| /** | ||
| * Adds the CCS (Cache Credential Service) query parameter for account object | ||
| * @param loginHint | ||
| */ | ||
| export declare function addCcsOid(parameters: Map<string, string>, clientInfo: ClientInfo): void; | ||
| /** | ||
| * add sid | ||
| * @param sid | ||
| */ | ||
| export declare function addSid(parameters: Map<string, string>, sid: string): void; | ||
| /** | ||
| * Adds claims to request parameters, conditionally excluding clientCapabilities | ||
| * when skipBrokerClaims is true and a brokered flow is in effect. | ||
| * @param parameters - The request parameters map | ||
| * @param claims - The claims string from the request | ||
| * @param clientCapabilities - The client capabilities from configuration | ||
| * @param skipBrokerClaims - When true and BROKER_CLIENT_ID is present, excludes clientCapabilities from claims | ||
| */ | ||
| export declare function addClaims(parameters: Map<string, string>, claims?: string, clientCapabilities?: Array<string>, skipBrokerClaims?: boolean): void; | ||
| /** | ||
| * add correlationId | ||
| * @param correlationId | ||
| */ | ||
| export declare function addCorrelationId(parameters: Map<string, string>, correlationId: string): void; | ||
| /** | ||
| * add library info query params | ||
| * @param libraryInfo | ||
| */ | ||
| export declare function addLibraryInfo(parameters: Map<string, string>, libraryInfo: LibraryInfo): void; | ||
| /** | ||
| * Add client telemetry parameters | ||
| * @param appTelemetry | ||
| */ | ||
| export declare function addApplicationTelemetry(parameters: Map<string, string>, appTelemetry: ApplicationTelemetry): void; | ||
| /** | ||
| * add prompt | ||
| * @param prompt | ||
| */ | ||
| export declare function addPrompt(parameters: Map<string, string>, prompt: string): void; | ||
| /** | ||
| * add state | ||
| * @param state | ||
| */ | ||
| export declare function addState(parameters: Map<string, string>, state: string): void; | ||
| /** | ||
| * add nonce | ||
| * @param nonce | ||
| */ | ||
| export declare function addNonce(parameters: Map<string, string>, nonce: string): void; | ||
| /** | ||
| * add code_challenge and code_challenge_method | ||
| * - throw if either of them are not passed | ||
| * @param codeChallenge | ||
| * @param codeChallengeMethod | ||
| */ | ||
| export declare function addCodeChallengeParams(parameters: Map<string, string>, codeChallenge?: string, codeChallengeMethod?: string): void; | ||
| /** | ||
| * add the `authorization_code` passed by the user to exchange for a token | ||
| * @param code | ||
| */ | ||
| export declare function addAuthorizationCode(parameters: Map<string, string>, code: string): void; | ||
| /** | ||
| * add the `authorization_code` passed by the user to exchange for a token | ||
| * @param code | ||
| */ | ||
| export declare function addDeviceCode(parameters: Map<string, string>, code: string): void; | ||
| /** | ||
| * add the `refreshToken` passed by the user | ||
| * @param refreshToken | ||
| */ | ||
| export declare function addRefreshToken(parameters: Map<string, string>, refreshToken: string): void; | ||
| /** | ||
| * add the `code_verifier` passed by the user to exchange for a token | ||
| * @param codeVerifier | ||
| */ | ||
| export declare function addCodeVerifier(parameters: Map<string, string>, codeVerifier: string): void; | ||
| /** | ||
| * add client_secret | ||
| * @param clientSecret | ||
| */ | ||
| export declare function addClientSecret(parameters: Map<string, string>, clientSecret: string): void; | ||
| /** | ||
| * add clientAssertion for confidential client flows | ||
| * @param clientAssertion | ||
| */ | ||
| export declare function addClientAssertion(parameters: Map<string, string>, clientAssertion: string): void; | ||
| /** | ||
| * add clientAssertionType for confidential client flows | ||
| * @param clientAssertionType | ||
| */ | ||
| export declare function addClientAssertionType(parameters: Map<string, string>, clientAssertionType: string): void; | ||
| /** | ||
| * add OBO assertion for confidential client flows | ||
| * @param clientAssertion | ||
| */ | ||
| export declare function addOboAssertion(parameters: Map<string, string>, oboAssertion: string): void; | ||
| /** | ||
| * add grant type | ||
| * @param grantType | ||
| */ | ||
| export declare function addRequestTokenUse(parameters: Map<string, string>, tokenUse: string): void; | ||
| /** | ||
| * add grant type | ||
| * @param grantType | ||
| */ | ||
| export declare function addGrantType(parameters: Map<string, string>, grantType: string): void; | ||
| /** | ||
| * add client info | ||
| * | ||
| */ | ||
| export declare function addClientInfo(parameters: Map<string, string>): void; | ||
| /** | ||
| * add clidata=1 to request to indicate client data support | ||
| */ | ||
| export declare function addCliData(parameters: Map<string, string>): void; | ||
| export declare function addInstanceAware(parameters: Map<string, string>): void; | ||
| /** | ||
| * Add extraParameters | ||
| * @param extraParams - String dictionary containing extra parameters to be added. | ||
| */ | ||
| export declare function addExtraParameters(parameters: Map<string, string>, extraParams: StringDict): void; | ||
| export declare function addClientCapabilitiesToClaims(claims?: string, clientCapabilities?: Array<string>): string; | ||
| /** | ||
| * adds `username` for Password Grant flow | ||
| * @param username | ||
| */ | ||
| export declare function addUsername(parameters: Map<string, string>, username: string): void; | ||
| /** | ||
| * adds `password` for Password Grant flow | ||
| * @param password | ||
| */ | ||
| export declare function addPassword(parameters: Map<string, string>, password: string): void; | ||
| /** | ||
| * add pop_jwk to query params | ||
| * @param cnfString | ||
| */ | ||
| export declare function addPopToken(parameters: Map<string, string>, cnfString: string): void; | ||
| /** | ||
| * add SSH JWK and key ID to query params | ||
| */ | ||
| export declare function addSshJwk(parameters: Map<string, string>, sshJwkString: string): void; | ||
| /** | ||
| * add server telemetry fields | ||
| * @param serverTelemetryManager | ||
| */ | ||
| export declare function addServerTelemetry(parameters: Map<string, string>, serverTelemetryManager: ServerTelemetryManager): void; | ||
| /** | ||
| * Adds parameter that indicates to the server that throttling is supported | ||
| */ | ||
| export declare function addThrottling(parameters: Map<string, string>): void; | ||
| /** | ||
| * Adds logout_hint parameter for "silent" logout which prevent server account picker | ||
| */ | ||
| export declare function addLogoutHint(parameters: Map<string, string>, logoutHint: string): void; | ||
| export declare function addBrokerParameters(parameters: Map<string, string>, brokerClientId: string, brokerRedirectUri: string): void; | ||
| /** | ||
| * Add EAR (Encrypted Authorize Response) request parameters | ||
| * @param parameters | ||
| * @param jwk | ||
| */ | ||
| export declare function addEARParameters(parameters: Map<string, string>, jwk: string): void; | ||
| export declare function addResource(parameters: Map<string, string>, resource?: string): void; | ||
| //# sourceMappingURL=RequestParameterBuilder.d.ts.map |
| {"version":3,"file":"RequestParameterBuilder.d.ts","sourceRoot":"","sources":["../../src/request/RequestParameterBuilder.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAC;AAOnD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EACH,oBAAoB,EACpB,WAAW,EACd,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAGpF,wBAAgB,sBAAsB,CAClC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,aAAa,CAAC,EAAE,MAAM,EACtB,iBAAiB,CAAC,EAAE,kBAAkB,GACvC,IAAI,CAiBN;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC3B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,YAAY,EAAE,SAAS,CAAC,iBAAiB,GAC1C,IAA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AC/B,QAAQ,EAAE,MAAM,GACjB,IAAI,CAEN;AAED;;;GAGG;AACH,wBAAgB,WAAW,CACvB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,SAAS,EAAE,MAAM,GAClB,IAAI,CAQN;AAED;;GAEG;AACH,wBAAgB,SAAS,CACrB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,YAAY,EAAE,MAAM,GACrB,IAAI,CAQN;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAC9B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,sBAAsB,EAAE,sBAAsB,GAC/C,IAAI,CASN;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAKnE;AAED;;GAEG;AACH,wBAAgB,aAAa,CACzB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,UAAU,EAAE,MAAM,GACnB,IAAI,CAEN;AAED,wBAAgB,mBAAmB,CAC/B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,GAC1B,IAAI,CAUN;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC5B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,GAAG,EAAE,MAAM,GACZ,IAAI,CAMN;AAED,wBAAgB,WAAW,CACvB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,QAAQ,CAAC,EAAE,MAAM,GAClB,IAAI,CAIN"} |
| /** | ||
| * The ScopeSet class creates a set of scopes. Scopes are case-insensitive, unique values, so the Set object in JS makes | ||
| * the most sense to implement for this class. All scopes are trimmed and converted to lower case strings in intersection and union functions | ||
| * to ensure uniqueness of strings. | ||
| */ | ||
| export declare class ScopeSet { | ||
| private scopes; | ||
| constructor(inputScopes: Array<string>); | ||
| /** | ||
| * Factory method to create ScopeSet from space-delimited string | ||
| * @param inputScopeString | ||
| * @param appClientId | ||
| * @param scopesRequired | ||
| */ | ||
| static fromString(inputScopeString: string): ScopeSet; | ||
| /** | ||
| * Creates the set of scopes to search for in cache lookups | ||
| * @param inputScopeString | ||
| * @returns | ||
| */ | ||
| static createSearchScopes(inputScopeString: Array<string>): ScopeSet; | ||
| /** | ||
| * Check if a given scope is present in this set of scopes. | ||
| * @param scope | ||
| */ | ||
| containsScope(scope: string): boolean; | ||
| /** | ||
| * Check if a set of scopes is present in this set of scopes. | ||
| * @param scopeSet | ||
| */ | ||
| containsScopeSet(scopeSet: ScopeSet): boolean; | ||
| /** | ||
| * Check if set of scopes contains only the defaults | ||
| */ | ||
| containsOnlyOIDCScopes(): boolean; | ||
| /** | ||
| * Appends single scope if passed | ||
| * @param newScope | ||
| */ | ||
| appendScope(newScope: string): void; | ||
| /** | ||
| * Appends multiple scopes if passed | ||
| * @param newScopes | ||
| */ | ||
| appendScopes(newScopes: Array<string>): void; | ||
| /** | ||
| * Removes element from set of scopes. | ||
| * @param scope | ||
| */ | ||
| removeScope(scope: string): void; | ||
| /** | ||
| * Removes default scopes from set of scopes | ||
| * Primarily used to prevent cache misses if the default scopes are not returned from the server | ||
| */ | ||
| removeOIDCScopes(): void; | ||
| /** | ||
| * Combines an array of scopes with the current set of scopes. | ||
| * @param otherScopes | ||
| */ | ||
| unionScopeSets(otherScopes: ScopeSet): Set<string>; | ||
| /** | ||
| * Check if scopes intersect between this set and another. | ||
| * @param otherScopes | ||
| */ | ||
| intersectingScopeSets(otherScopes: ScopeSet): boolean; | ||
| /** | ||
| * Returns size of set of scopes. | ||
| */ | ||
| getScopeCount(): number; | ||
| /** | ||
| * Returns the scopes as an array of string values | ||
| */ | ||
| asArray(): Array<string>; | ||
| /** | ||
| * Prints scopes into a space-delimited string | ||
| */ | ||
| printScopes(): string; | ||
| /** | ||
| * Prints scopes into a space-delimited lower-case string (used for caching) | ||
| */ | ||
| printScopesLowerCase(): string; | ||
| } | ||
| //# sourceMappingURL=ScopeSet.d.ts.map |
| {"version":3,"file":"ScopeSet.d.ts","sourceRoot":"","sources":["../../src/request/ScopeSet.ts"],"names":[],"mappings":"AAoBA;;;;GAIG;AACH,qBAAa,QAAQ;IAEjB,OAAO,CAAC,MAAM,CAAc;gBAEhB,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC;IAoBtC;;;;;OAKG;IACH,MAAM,CAAC,UAAU,CAAC,gBAAgB,EAAE,MAAM,GAAG,QAAQ;IAMrD;;;;OAIG;IACH,MAAM,CAAC,kBAAkB,CAAC,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,QAAQ;IAiBpE;;;OAGG;IACH,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IASrC;;;OAGG;IACH,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO;IAW7C;;OAEG;IACH,sBAAsB,IAAI,OAAO;IAWjC;;;OAGG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAMnC;;;OAGG;IACH,YAAY,CAAC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI;IAU5C;;;OAGG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAShC;;;OAGG;IACH,gBAAgB,IAAI,IAAI;IAMxB;;;OAGG;IACH,cAAc,CAAC,WAAW,EAAE,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC;IAclD;;;OAGG;IACH,qBAAqB,CAAC,WAAW,EAAE,QAAQ,GAAG,OAAO;IAkBrD;;OAEG;IACH,aAAa,IAAI,MAAM;IAIvB;;OAEG;IACH,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC;IAMxB;;OAEG;IACH,WAAW,IAAI,MAAM;IAQrB;;OAEG;IACH,oBAAoB,IAAI,MAAM;CAGjC"} |
| /** | ||
| * Controls whether tokens should be stored in the cache or not. If set to false, tokens may still be acquired and returned but will not be cached for later retrieval. | ||
| */ | ||
| export type StoreInCache = { | ||
| accessToken?: boolean; | ||
| idToken?: boolean; | ||
| refreshToken?: boolean; | ||
| }; | ||
| //# sourceMappingURL=StoreInCache.d.ts.map |
| {"version":3,"file":"StoreInCache.d.ts","sourceRoot":"","sources":["../../src/request/StoreInCache.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IAEvB,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC"} |
| import { AccountInfo } from "../account/AccountInfo.js"; | ||
| /** | ||
| * Result returned from the authority's token endpoint. | ||
| * - uniqueId - `oid` or `sub` claim from ID token | ||
| * - tenantId - `tid` claim from ID token | ||
| * - scopes - Scopes that are validated for the respective token | ||
| * - account - An account object representation of the currently signed-in user | ||
| * - idToken - Id token received as part of the response | ||
| * - idTokenClaims - MSAL-relevant ID token claims | ||
| * - accessToken - Access token or SSH certificate received as part of the response | ||
| * - fromCache - Boolean denoting whether token came from cache | ||
| * - expiresOn - Javascript Date object representing relative expiration of access token | ||
| * - extExpiresOn - Javascript Date object representing extended relative expiration of access token in case of server outage | ||
| * - refreshOn - Javascript Date object representing relative time until an access token must be refreshed | ||
| * - state - Value passed in by user in request | ||
| * - familyId - Family ID identifier, usually only used for refresh tokens | ||
| * - requestId - Request ID returned as part of the response | ||
| */ | ||
| export type AuthenticationResult = { | ||
| authority: string; | ||
| uniqueId: string; | ||
| tenantId: string; | ||
| scopes: Array<string>; | ||
| account: AccountInfo | null; | ||
| idToken: string; | ||
| idTokenClaims: object; | ||
| accessToken: string; | ||
| fromCache: boolean; | ||
| expiresOn: Date | null; | ||
| extExpiresOn?: Date; | ||
| refreshOn?: Date; | ||
| tokenType: string; | ||
| correlationId: string; | ||
| requestId?: string; | ||
| state?: string; | ||
| familyId?: string; | ||
| cloudGraphHostName?: string; | ||
| msGraphHost?: string; | ||
| code?: string; | ||
| fromPlatformBroker?: boolean; | ||
| resource?: string; | ||
| }; | ||
| //# sourceMappingURL=AuthenticationResult.d.ts.map |
| {"version":3,"file":"AuthenticationResult.d.ts","sourceRoot":"","sources":["../../src/response/AuthenticationResult.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"} |
| /** | ||
| * Response returned after processing the code response query string or fragment. | ||
| */ | ||
| export type AuthorizationCodePayload = { | ||
| code: string; | ||
| cloud_instance_name?: string; | ||
| cloud_instance_host_name?: string; | ||
| cloud_graph_host_name?: string; | ||
| msgraph_host?: string; | ||
| state?: string; | ||
| nonce?: string; | ||
| client_info?: string; | ||
| }; | ||
| //# sourceMappingURL=AuthorizationCodePayload.d.ts.map |
| {"version":3,"file":"AuthorizationCodePayload.d.ts","sourceRoot":"","sources":["../../src/response/AuthorizationCodePayload.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"} |
| /** | ||
| * Response properties that may be returned by the /authorize endpoint | ||
| */ | ||
| export type AuthorizeResponse = { | ||
| /** | ||
| * Authorization Code to be exchanged for tokens | ||
| */ | ||
| code?: string; | ||
| /** | ||
| * Encrypted Authorize Response (EAR) JWE | ||
| */ | ||
| ear_jwe?: string; | ||
| /** | ||
| * Client info object containing UserId and TenantId | ||
| */ | ||
| client_info?: string; | ||
| /** | ||
| * State string, should match what was sent on request | ||
| */ | ||
| state?: string; | ||
| /** | ||
| * Cloud instance returned when application is instance aware | ||
| */ | ||
| cloud_instance_name?: string; | ||
| /** | ||
| * Cloud instance hostname returned when application is instance aware | ||
| */ | ||
| cloud_instance_host_name?: string; | ||
| /** | ||
| * AAD Graph hostname returned when application is instance aware | ||
| * https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-graph-api | ||
| */ | ||
| cloud_graph_host_name?: string; | ||
| /** | ||
| * Microsoft Graph hostname returned when application is instance aware | ||
| * https://docs.microsoft.com/en-us/graph/overview | ||
| */ | ||
| msgraph_host?: string; | ||
| /** | ||
| * Server error code | ||
| */ | ||
| error?: string; | ||
| /** | ||
| * Server error URI | ||
| */ | ||
| error_uri?: string; | ||
| /** | ||
| * Server error description | ||
| */ | ||
| error_description?: string; | ||
| /** | ||
| * Server Sub-Error | ||
| */ | ||
| suberror?: string; | ||
| /** | ||
| * Timestamp of request | ||
| */ | ||
| timestamp?: string; | ||
| /** | ||
| * Trace Id used to look up request in logs | ||
| */ | ||
| trace_id?: string; | ||
| /** | ||
| * Correlation ID use to look up request in logs | ||
| */ | ||
| correlation_id?: string; | ||
| /** | ||
| * Claims | ||
| */ | ||
| claims?: string; | ||
| /** | ||
| * AccountId for the user, returned when platform broker is available to use | ||
| */ | ||
| accountId?: string; | ||
| /** | ||
| * Client data returned by the server when clidata=1 is sent on the request. | ||
| * On the wire, this is sent as a URL-encoded string in the format: | ||
| * account_type|error|sub_error|cloud_instance|caller_data_boundary | ||
| * In this parsed AuthorizeResponse object, the value is already URL-decoded. | ||
| */ | ||
| clientdata?: string; | ||
| }; | ||
| //# sourceMappingURL=AuthorizeResponse.d.ts.map |
| {"version":3,"file":"AuthorizeResponse.d.ts","sourceRoot":"","sources":["../../src/response/AuthorizeResponse.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"} |
| /** | ||
| * DeviceCode returned by the security token service device code endpoint containing information necessary for device code flow. | ||
| * - userCode: code which user needs to provide when authenticating at the verification URI | ||
| * - deviceCode: code which should be included in the request for the access token | ||
| * - verificationUri: URI where user can authenticate | ||
| * - expiresIn: expiration time of the device code in seconds | ||
| * - interval: interval at which the STS should be polled at | ||
| * - message: message which should be displayed to the user | ||
| */ | ||
| export type DeviceCodeResponse = { | ||
| userCode: string; | ||
| deviceCode: string; | ||
| verificationUri: string; | ||
| expiresIn: number; | ||
| interval: number; | ||
| message: string; | ||
| }; | ||
| export type ServerDeviceCodeResponse = { | ||
| user_code: string; | ||
| device_code: string; | ||
| verification_uri: string; | ||
| expires_in: number; | ||
| interval: number; | ||
| message: string; | ||
| }; | ||
| //# sourceMappingURL=DeviceCodeResponse.d.ts.map |
| {"version":3,"file":"DeviceCodeResponse.d.ts","sourceRoot":"","sources":["../../src/response/DeviceCodeResponse.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC"} |
| import { ServerAuthorizationTokenResponse } from "./ServerAuthorizationTokenResponse.js"; | ||
| /** | ||
| * Response object used for loading external tokens to cache. | ||
| * - token_type: Indicates the token type value. The only type that Azure AD supports is Bearer. | ||
| * - scope: The scopes that the access_token is valid for. | ||
| * - expires_in: How long the access token is valid (in seconds). | ||
| * - id_token: A JSON Web Token (JWT). The app can decode the segments of this token to request information about the user who signed in. | ||
| * - refresh_token: An OAuth 2.0 refresh token. The app can use this token acquire additional access tokens after the current access token expires. | ||
| * - access_token: The requested access token. The app can use this token to authenticate to the secured resource, such as a web API. | ||
| * - client_info: Client info object | ||
| */ | ||
| export type ExternalTokenResponse = Pick<ServerAuthorizationTokenResponse, "token_type" | "scope" | "expires_in" | "ext_expires_in" | "id_token" | "refresh_token" | "refresh_token_expires_in" | "foci"> & { | ||
| access_token?: string; | ||
| client_info?: string; | ||
| }; | ||
| //# sourceMappingURL=ExternalTokenResponse.d.ts.map |
| {"version":3,"file":"ExternalTokenResponse.d.ts","sourceRoot":"","sources":["../../src/response/ExternalTokenResponse.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAEzF;;;;;;;;;GASG;AACH,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACpC,gCAAgC,EAC9B,YAAY,GACZ,OAAO,GACP,YAAY,GACZ,gBAAgB,GAChB,UAAU,GACV,eAAe,GACf,0BAA0B,GAC1B,MAAM,CACX,GAAG;IACA,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"} |
| export type IMDSBadResponse = { | ||
| error: string; | ||
| "newest-versions": Array<string>; | ||
| }; | ||
| //# sourceMappingURL=IMDSBadResponse.d.ts.map |
| {"version":3,"file":"IMDSBadResponse.d.ts","sourceRoot":"","sources":["../../src/response/IMDSBadResponse.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,eAAe,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACpC,CAAC"} |
| import { TokenClaims } from "../account/TokenClaims.js"; | ||
| import { Authority } from "../authority/Authority.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { AccountEntity } from "../cache/entities/AccountEntity.js"; | ||
| import { CacheRecord } from "../cache/entities/CacheRecord.js"; | ||
| import { ICachePlugin } from "../cache/interface/ICachePlugin.js"; | ||
| import { ISerializableTokenCache } from "../cache/interface/ISerializableTokenCache.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { RequestStateObject } from "../utils/StateTypes.js"; | ||
| import { AuthenticationResult } from "./AuthenticationResult.js"; | ||
| import { AuthorizationCodePayload } from "./AuthorizationCodePayload.js"; | ||
| import { ServerAuthorizationTokenResponse } from "./ServerAuthorizationTokenResponse.js"; | ||
| /** | ||
| * Class that handles response parsing. | ||
| * @internal | ||
| */ | ||
| export declare class ResponseHandler { | ||
| private clientId; | ||
| private cacheStorage; | ||
| private cryptoObj; | ||
| private logger; | ||
| private homeAccountIdentifier; | ||
| private performanceClient; | ||
| private serializableCache; | ||
| private persistencePlugin; | ||
| constructor(clientId: string, cacheStorage: CacheManager, cryptoObj: ICrypto, logger: Logger, performanceClient: IPerformanceClient, serializableCache: ISerializableTokenCache | null, persistencePlugin: ICachePlugin | null); | ||
| /** | ||
| * Function which validates server authorization token response. | ||
| * @param serverResponse | ||
| * @param correlationId | ||
| * @param refreshAccessToken | ||
| */ | ||
| validateTokenResponse(serverResponse: ServerAuthorizationTokenResponse, correlationId: string, refreshAccessToken?: boolean): void; | ||
| /** | ||
| * Returns a constructed token response based on given string. Also manages the cache updates and cleanups. | ||
| * @param serverTokenResponse | ||
| * @param authority | ||
| */ | ||
| handleServerTokenResponse(serverTokenResponse: ServerAuthorizationTokenResponse, authority: Authority, reqTimestamp: number, request: BaseAuthRequest, apiId: number, authCodePayload?: AuthorizationCodePayload, userAssertionHash?: string, handlingRefreshTokenResponse?: boolean, forceCacheRefreshTokenResponse?: boolean, serverRequestId?: string): Promise<AuthenticationResult>; | ||
| /** | ||
| * Generates CacheRecord | ||
| * @param serverTokenResponse | ||
| * @param idTokenObj | ||
| * @param authority | ||
| */ | ||
| private generateCacheRecord; | ||
| /** | ||
| * Creates an @AuthenticationResult from @CacheRecord , @IdToken , and a boolean that states whether or not the result is from cache. | ||
| * | ||
| * Optionally takes a state string that is set as-is in the response. | ||
| * | ||
| * @param cacheRecord | ||
| * @param idTokenObj | ||
| * @param fromTokenCache | ||
| * @param stateString | ||
| */ | ||
| static generateAuthenticationResult(cryptoObj: ICrypto, authority: Authority, cacheRecord: CacheRecord, fromTokenCache: boolean, request: BaseAuthRequest, performanceClient: IPerformanceClient, idTokenClaims?: TokenClaims, requestState?: RequestStateObject, serverTokenResponse?: ServerAuthorizationTokenResponse, requestId?: string): Promise<AuthenticationResult>; | ||
| } | ||
| export declare function buildAccountToCache(cacheStorage: CacheManager, authority: Authority, homeAccountId: string, base64Decode: (input: string) => string, correlationId: string, idTokenClaims?: TokenClaims, clientInfo?: string, environment?: string, claimsTenantId?: string | null, authCodePayload?: AuthorizationCodePayload, nativeAccountId?: string, logger?: Logger, performanceClient?: IPerformanceClient): AccountEntity; | ||
| //# sourceMappingURL=ResponseHand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AAU,CAAC,EAAE,MAAM,EACnB,WAAW,CAAC,EAAE,MAAM,EACpB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,EAC9B,eAAe,CAAC,EAAE,wBAAwB,EAC1C,eAAe,CAAC,EAAE,MAAM,EACxB,MAAM,CAAC,EAAE,MAAM,EACf,iBAAiB,CAAC,EAAE,kBAAkB,GACvC,aAAa,CAmEf"} |
| import { AuthenticationScheme } from "../utils/Constants.js"; | ||
| /** | ||
| * Deserialized response object from server authorization code request. | ||
| * - token_type: Indicates the token type value. Can be either Bearer or pop. | ||
| * - scope: The scopes that the access_token is valid for. | ||
| * - expires_in: How long the access token is valid (in seconds). | ||
| * - refresh_in: Duration afer which a token should be renewed, regardless of expiration. | ||
| * - ext_expires_in: How long the access token is valid (in seconds) if the server isn't responding. | ||
| * - access_token: The requested access token. The app can use this token to authenticate to the secured resource, such as a web API. | ||
| * - refresh_token: An OAuth 2.0 refresh token. The app can use this token acquire additional access tokens after the current access token expires. | ||
| * - id_token: A JSON Web Token (JWT). The app can decode the segments of this token to request information about the user who signed in. | ||
| * - key_id: A string that uniquely identifies a public key that the request is bound to. | ||
| * | ||
| * In case of error: | ||
| * - error: An error code string that can be used to classify types of errors that occur, and can be used to react to errors. | ||
| * - error_description: A specific error message that can help a developer identify the root cause of an authentication error. | ||
| * - error_codes: A list of STS-specific error codes that can help in diagnostics. | ||
| * - timestamp: The time at which the error occurred. | ||
| * - trace_id: A unique identifier for the request that can help in diagnostics. | ||
| * - correlation_id: A unique identifier for the request that can help in diagnostics across components. | ||
| * - status: the network request's response status | ||
| */ | ||
| export type ServerAuthorizationTokenResponse = { | ||
| status?: number; | ||
| token_type?: AuthenticationScheme; | ||
| scope?: string; | ||
| expires_in?: number; | ||
| refresh_in?: number; | ||
| ext_expires_in?: number; | ||
| access_token?: string; | ||
| refresh_token?: string; | ||
| refresh_token_expires_in?: number; | ||
| id_token?: string; | ||
| client_info?: string; | ||
| foci?: string; | ||
| spa_code?: string; | ||
| spa_accountid?: string; | ||
| key_id?: string; | ||
| error?: string; | ||
| error_description?: string; | ||
| error_codes?: Array<string>; | ||
| suberror?: string; | ||
| timestamp?: string; | ||
| trace_id?: string; | ||
| correlation_id?: string; | ||
| claims?: string; | ||
| }; | ||
| //# sourceMappingURL=ServerAuthorizationTokenResponse.d.ts.map |
| {"version":3,"file":"ServerAuthorizationTokenResponse.d.ts","sourceRoot":"","sources":["../../src/response/ServerAuthorizationTokenResponse.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"} |
| import { PerformanceEvent } from "./PerformanceEvent.js"; | ||
| import { AccountInfo } from "../../account/AccountInfo.js"; | ||
| export type PerformanceCallbackFunction = (events: PerformanceEvent[]) => void; | ||
| export type InProgressPerformanceEvent = { | ||
| end: (event?: Partial<PerformanceEvent>, error?: unknown, account?: AccountInfo) => PerformanceEvent | null; | ||
| discard: () => void; | ||
| add: (fields: { | ||
| [key: string]: {} | undefined; | ||
| }) => void; | ||
| increment: (fields: { | ||
| [key: string]: number | undefined; | ||
| }) => void; | ||
| event: PerformanceEvent; | ||
| }; | ||
| export interface IPerformanceClient { | ||
| startMeasurement(measureName: string, correlationId?: string): InProgressPerformanceEvent; | ||
| endMeasurement(event: PerformanceEvent): PerformanceEvent | null; | ||
| discardMeasurements(correlationId: string): void; | ||
| addFields(fields: { | ||
| [key: string]: {} | undefined; | ||
| }, correlationId: string): void; | ||
| incrementFields(fields: { | ||
| [key: string]: number | undefined; | ||
| }, correlationId: string): void; | ||
| removePerformanceCallback(callbackId: string): boolean; | ||
| addPerformanceCallback(callback: PerformanceCallbackFunction): string; | ||
| emitEvents(events: PerformanceEvent[], correlationId: string): void; | ||
| generateId(): string; | ||
| } | ||
| //# sourceMappingURL=IPerformanceClient.d.ts.map |
| {"version":3,"file":"IPerformanceClient.d.ts","sourceRoot":"","sources":["../../../src/telemetry/performance/IPerformanceClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,MAAM,MAAM,2BAA2B,GAAG,CAAC,MAAM,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;AAE/E,MAAM,MAAM,0BAA0B,GAAG;IACrC,GAAG,EAAE,CACD,KAAK,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,EACjC,KAAK,CAAC,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,WAAW,KACpB,gBAAgB,GAAG,IAAI,CAAC;IAC7B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,GAAG,EAAE,CAAC,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,EAAE,GAAG,SAAS,CAAA;KAAE,KAAK,IAAI,CAAC;IACzD,SAAS,EAAE,CAAC,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;KAAE,KAAK,IAAI,CAAC;IACnE,KAAK,EAAE,gBAAgB,CAAC;CAC3B,CAAC;AAEF,MAAM,WAAW,kBAAkB;IAC/B,gBAAgB,CACZ,WAAW,EAAE,MAAM,EACnB,aAAa,CAAC,EAAE,MAAM,GACvB,0BAA0B,CAAC;IAC9B,cAAc,CAAC,KAAK,EAAE,gBAAgB,GAAG,gBAAgB,GAAG,IAAI,CAAC;IACjE,mBAAmB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IACjD,SAAS,CACL,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,EAAE,GAAG,SAAS,CAAA;KAAE,EACzC,aAAa,EAAE,MAAM,GACtB,IAAI,CAAC;IACR,eAAe,CACX,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;KAAE,EAC7C,aAAa,EAAE,MAAM,GACtB,IAAI,CAAC;IACR,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;IACvD,sBAAsB,CAAC,QAAQ,EAAE,2BAA2B,GAAG,MAAM,CAAC;IACtE,UAAU,CAAC,MAAM,EAAE,gBAAgB,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IACpE,UAAU,IAAI,MAAM,CAAC;CACxB"} |
| export interface IPerformanceMeasurement { | ||
| startMeasurement(): void; | ||
| endMeasurement(): void; | ||
| flushMeasurement(): number | null; | ||
| } | ||
| //# sourceMappingURL=IPerformanceMeasurement.d.ts.map |
| {"version":3,"file":"IPerformanceMeasurement.d.ts","sourceRoot":"","sources":["../../../src/telemetry/performance/IPerformanceMeasurement.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,uBAAuB;IACpC,gBAAgB,IAAI,IAAI,CAAC;IACzB,cAAc,IAAI,IAAI,CAAC;IACvB,gBAAgB,IAAI,MAAM,GAAG,IAAI,CAAC;CACrC"} |
| import { ApplicationTelemetry } from "../../config/ClientConfiguration.js"; | ||
| import { Logger } from "../../logger/Logger.js"; | ||
| import { InProgressPerformanceEvent, IPerformanceClient, PerformanceCallbackFunction } from "./IPerformanceClient.js"; | ||
| import { PerformanceEvent, PerformanceEventContext, PerformanceEventStackedContext } from "./PerformanceEvent.js"; | ||
| import { AccountInfo } from "../../account/AccountInfo.js"; | ||
| /** | ||
| * Starts context by adding payload to the stack | ||
| * @param event {PerformanceEvent} | ||
| * @param stack {?PerformanceEventStackedContext[]} stack | ||
| */ | ||
| export declare function startContext(event: PerformanceEvent, stack?: PerformanceEventStackedContext[]): void; | ||
| /** | ||
| * Ends context by removing payload from the stack and returning parent or self, if stack is empty, payload | ||
| * | ||
| * @param event {PerformanceEvent} | ||
| * @param stack {?PerformanceEventStackedContext[]} stack | ||
| * @param error {?unknown} error | ||
| */ | ||
| export declare function endContext(event: PerformanceEvent, stack?: PerformanceEventStackedContext[], error?: unknown): PerformanceEventContext | undefined; | ||
| /** | ||
| * Adds error name and stack trace to the telemetry event | ||
| * @param error {Error} | ||
| * @param logger {Logger} | ||
| * @param event {PerformanceEvent} | ||
| * @param stackMaxSize {number} max error stack size to capture | ||
| */ | ||
| export declare function addError(error: unknown, logger: Logger, event: PerformanceEvent, stackMaxSize?: number): void; | ||
| /** | ||
| * Compacts error stack into array by fetching N first entries | ||
| * @param stack {string} error stack | ||
| * @param stackMaxSize {number} max error stack size to capture | ||
| * @returns {string[]} | ||
| */ | ||
| export declare function compactStack(stack: string, stackMaxSize: number): string[]; | ||
| /** | ||
| * Compacts error stack line by shortening file path | ||
| * Example: https://localhost/msal-common/src/authority/Authority.js:100:1 -> Authority.js:100:1 | ||
| * @param line {string} stack line | ||
| * @returns {string} | ||
| */ | ||
| export declare function compactStackLine(line: string): string; | ||
| export declare function getAccountType(account?: AccountInfo): "AAD" | "MSA" | "B2C" | undefined; | ||
| export declare abstract class PerformanceClient implements IPerformanceClient { | ||
| protected authority: string; | ||
| protected libraryName: string; | ||
| protected libraryVersion: string; | ||
| protected applicationTelemetry: ApplicationTelemetry; | ||
| protected clientId: string; | ||
| protected logger: Logger; | ||
| protected callbacks: Map<string, PerformanceCallbackFunction>; | ||
| /** | ||
| * Multiple events with the same correlation id. | ||
| * @protected | ||
| * @type {Map<string, PerformanceEvent>} | ||
| */ | ||
| protected eventsByCorrelationId: Map<string, PerformanceEvent>; | ||
| protected intFields: Set<string>; | ||
| /** | ||
| * Map of stacked events by correlation id. | ||
| * | ||
| * @protected | ||
| */ | ||
| protected eventStack: Map<string, PerformanceEventStackedContext[]>; | ||
| /** | ||
| * Creates an instance of PerformanceClient, | ||
| * an abstract class containing core performance telemetry logic. | ||
| * | ||
| * @constructor | ||
| * @param {string} clientId Client ID of the application | ||
| * @param {string} authority Authority used by the application | ||
| * @param {Logger} logger Logger used by the application | ||
| * @param {string} libraryName Name of the library | ||
| * @param {string} libraryVersion Version of the library | ||
| * @param {ApplicationTelemetry} applicationTelemetry application name and version | ||
| * @param {Set<String>} intFields integer fields to be truncated | ||
| */ | ||
| constructor(clientId: string, authority: string, logger: Logger, libraryName: string, libraryVersion: string, applicationTelemetry: ApplicationTelemetry, intFields?: Set<string>); | ||
| /** | ||
| * Generates and returns a unique id, typically a guid. | ||
| * | ||
| * @abstract | ||
| * @returns {string} | ||
| */ | ||
| abstract generateId(): string; | ||
| /** | ||
| * Starts measuring performance for a given operation. Returns a function that should be used to end the measurement. | ||
| * | ||
| * @param {PerformanceEvents} measureName | ||
| * @param {?string} [correlationId] | ||
| * @returns {InProgressPerformanceEvent} | ||
| */ | ||
| startMeasurement(measureName: string, correlationId?: string): InProgressPerformanceEvent; | ||
| /** | ||
| * Stops measuring the performance for an operation. Should only be called directly by PerformanceClient classes, | ||
| * as consumers should instead use the function returned by startMeasurement. | ||
| * Adds a new field named as "[event name]DurationMs" for sub-measurements, completes and emits an event | ||
| * otherwise. | ||
| * | ||
| * @param {PerformanceEvent} event | ||
| * @param {unknown} error | ||
| * @param {AccountInfo?} account | ||
| * @returns {(PerformanceEvent | null)} | ||
| */ | ||
| endMeasurement(event: PerformanceEvent, error?: unknown, account?: AccountInfo): PerformanceEvent | null; | ||
| /** | ||
| * Saves extra information to be emitted when the measurements are flushed | ||
| * @param fields | ||
| * @param correlationId | ||
| */ | ||
| addFields(fields: { | ||
| [key: string]: {} | undefined; | ||
| }, correlationId: string): void; | ||
| /** | ||
| * Increment counters to be emitted when the measurements are flushed | ||
| * @param fields {string[]} | ||
| * @param correlationId {string} correlation identifier | ||
| */ | ||
| incrementFields(fields: { | ||
| [key: string]: number | undefined; | ||
| }, correlationId: string): void; | ||
| /** | ||
| * Upserts event into event cache. | ||
| * First key is the correlation id, second key is the event id. | ||
| * Allows for events to be grouped by correlation id, | ||
| * and to easily allow for properties on them to be updated. | ||
| * | ||
| * @private | ||
| * @param {PerformanceEvent} event | ||
| */ | ||
| protected cacheEventByCorrelationId(event: PerformanceEvent): void; | ||
| /** | ||
| * Removes measurements and aux data for a given correlation id. | ||
| * | ||
| * @param {string} correlationId | ||
| */ | ||
| discardMeasurements(correlationId: string): void; | ||
| /** | ||
| * Registers a callback function to receive performance events. | ||
| * | ||
| * @param {PerformanceCallbackFunction} callback | ||
| * @returns {string} | ||
| */ | ||
| addPerformanceCallback(callback: PerformanceCallbackFunction): string; | ||
| /** | ||
| * Removes a callback registered with addPerformanceCallback. | ||
| * | ||
| * @param {string} callbackId | ||
| * @returns {boolean} | ||
| */ | ||
| removePerformanceCallback(callbackId: string): boolean; | ||
| /** | ||
| * Emits events to all registered callbacks. | ||
| * | ||
| * @param {PerformanceEvent[]} events | ||
| * @param {?string} [correlationId] | ||
| */ | ||
| emitEvents(events: PerformanceEvent[], correlationId: string): void; | ||
| /** | ||
| * Enforce truncation of integral fields in performance event. | ||
| * @param {PerformanceEvent} event performance event to update. | ||
| */ | ||
| private truncateIntegralFields; | ||
| /** | ||
| * Returns event duration in milliseconds | ||
| * @param startTimeMs {number} | ||
| * @returns {number} | ||
| */ | ||
| private getDurationMs; | ||
| } | ||
| //# sourceMappingURL=PerformanceClient.d.ts.map |
| {"version":3,"file":"PerformanceClient.d.ts","sourceRoot":"","sources":["../../../src/telemetry/performance/PerformanceClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAA4B,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EACH,0BAA0B,EAC1B,kBAAkB,EAClB,2BAA2B,EAC9B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGH,gBAAgB,EAChB,uBAAuB,EACvB,8BAA8B,EAEjC,MAAM,uBAAuB,CAAC;AAK/B,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D;;;;GAIG;AACH,wBAAgB,YAAY,CACxB,KAAK,EAAE,gBAAgB,EACvB,KAAK,CAAC,EAAE,8BAA8B,EAAE,GACzC,IAAI,CAQN;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CACtB,KAAK,EAAE,gBAAgB,EACvB,KAAK,CAAC,EAAE,8BAA8B,EAAE,EACxC,KAAK,CAAC,EAAE,OAAO,GAChB,uBAAuB,GAAG,SAAS,CAmErC;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACpB,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,gBAAgB,EACvB,YAAY,GAAE,MAAU,GACzB,IAAI,CAwCN;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAA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CAAC,EAAE,MAAM,GACvB,0BAA0B;IAwD7B;;;;;;;;;;OAUG;IACH,cAAc,CACV,KAAK,EAAE,gBAAgB,EACvB,KAAK,CAAC,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,WAAW,GACtB,gBAAgB,GAAG,IAAI;IAkG1B;;;;OAIG;IACH,SAAS,CACL,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,EAAE,GAAG,SAAS,CAAA;KAAE,EACzC,aAAa,EAAE,MAAM,GACtB,IAAI;IAyCP;;;;OAIG;IACH,eAAe,CACX,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;KAAE,EAC7C,aAAa,EAAE,MAAM,GACtB,IAAI;IAoCP;;;;;;;;OAQG;IACH,SAAS,CAAC,yBAAyB,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;IAelE;;;;OAIG;IACH,mBAAmB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI;IAKhD;;;;;OAKG;IACH,sBAAsB,CAAC,QAAQ,EAAE,2BAA2B,GAAG,MAAM;IAqBrE;;;;;OAKG;IACH,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAkBtD;;;;;OAKG;IACH,UAAU,CAAC,MAAM,EAAE,gBAAgB,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAiBnE;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAU9B;;;;OAIG;IACH,OAAO,CAAC,aAAa;CAKxB"} |
| import { DataBoundary } from "../../account/AccountInfo.js"; | ||
| /** | ||
| * State of the performance event. | ||
| * | ||
| * @export | ||
| * @enum {number} | ||
| */ | ||
| export declare const PerformanceEventStatus: { | ||
| readonly NotStarted: 0; | ||
| readonly InProgress: 1; | ||
| readonly Completed: 2; | ||
| }; | ||
| export type PerformanceEventStatus = (typeof PerformanceEventStatus)[keyof typeof PerformanceEventStatus]; | ||
| export type SubMeasurement = { | ||
| name: string; | ||
| startTimeMs: number; | ||
| }; | ||
| /** | ||
| * Performance measurement taken by the library, including metadata about the request and application. | ||
| * | ||
| * @export | ||
| * @typedef {PerformanceEvent} | ||
| */ | ||
| export type PerformanceEvent = { | ||
| /** | ||
| * Unique id for the event | ||
| * | ||
| * @type {string} | ||
| */ | ||
| eventId: string; | ||
| /** | ||
| * State of the perforance measure. | ||
| * | ||
| * @type {PerformanceEventStatus} | ||
| */ | ||
| status: PerformanceEventStatus; | ||
| /** | ||
| * Login authority used for the request | ||
| * | ||
| * @type {string} | ||
| */ | ||
| authority: string; | ||
| /** | ||
| * Client id for the application | ||
| * | ||
| * @type {string} | ||
| */ | ||
| clientId: string; | ||
| /** | ||
| * Correlation ID used for the request | ||
| * | ||
| * @type {string} | ||
| */ | ||
| correlationId: string; | ||
| /** | ||
| * End-to-end duration in milliseconds. | ||
| * @date 3/22/2022 - 3:40:05 PM | ||
| * | ||
| * @type {number} | ||
| */ | ||
| durationMs?: number; | ||
| /** | ||
| * Visibility of the page when the event completed. | ||
| * Read from: https://developer.mozilla.org/docs/Web/API/Page_Visibility_API | ||
| * | ||
| * @type {?(string | null)} | ||
| */ | ||
| endPageVisibility?: string | null; | ||
| /** | ||
| * Whether the result was retrieved from the cache. | ||
| * | ||
| * @type {(boolean | null)} | ||
| */ | ||
| fromCache?: boolean | null; | ||
| /** | ||
| * Event name (usually in the form of classNameFunctionName) | ||
| * | ||
| * @type {string} | ||
| */ | ||
| name: string; | ||
| /** | ||
| * Visibility of the page when the event completed. | ||
| * Read from: https://developer.mozilla.org/docs/Web/API/Page_Visibility_API | ||
| * | ||
| * @type {?(string | null)} | ||
| */ | ||
| startPageVisibility?: string | null; | ||
| /** | ||
| * Online status when the event started. | ||
| * Read from: https://developer.mozilla.org/docs/Web/API/NavigatorOnLine/onLine | ||
| */ | ||
| startOnlineStatus?: boolean | null; | ||
| /** | ||
| * Unix millisecond timestamp when the event was initiated. | ||
| * | ||
| * @type {number} | ||
| */ | ||
| startTimeMs: number; | ||
| /** | ||
| * Whether or the operation completed successfully. | ||
| * | ||
| * @type {(boolean | null)} | ||
| */ | ||
| success?: boolean | null; | ||
| /** | ||
| * Add specific error code in case of failure | ||
| * | ||
| * @type {string} | ||
| */ | ||
| errorCode?: string; | ||
| /** | ||
| * Add specific sub error code in case of failure | ||
| * | ||
| * @type {string} | ||
| */ | ||
| subErrorCode?: string; | ||
| /** | ||
| * Server error number | ||
| */ | ||
| serverErrorNo?: string; | ||
| /** | ||
| * Server sub error number | ||
| */ | ||
| serverSubErrorNo?: string; | ||
| /** | ||
| * Name of the library used for the operation. | ||
| * | ||
| * @type {string} | ||
| */ | ||
| libraryName: string; | ||
| /** | ||
| * Version of the library used for the operation. | ||
| * | ||
| * @type {string} | ||
| */ | ||
| libraryVersion: string; | ||
| /** | ||
| * Version of the library used last. Used to track upgrades and downgrades | ||
| */ | ||
| previousLibraryVersion?: string; | ||
| /** | ||
| * Whether the response is from a native component (e.g., WAM) | ||
| * | ||
| * @type {?boolean} | ||
| */ | ||
| isNativeBroker?: boolean; | ||
| /** | ||
| * Platform-specific fields, when calling STS and/or broker for token requests | ||
| */ | ||
| isPlatformAuthorizeRequest?: boolean; | ||
| isPlatformBrokerRequest?: boolean; | ||
| brokerErrorName?: string; | ||
| brokerErrorCode?: string; | ||
| /** | ||
| * Request ID returned from the response | ||
| * | ||
| * @type {?string} | ||
| */ | ||
| requestId?: string; | ||
| /** | ||
| * Cache lookup policy | ||
| * | ||
| * @type {?number} | ||
| */ | ||
| cacheLookupPolicy?: number | undefined; | ||
| /** | ||
| * Cache Outcome | ||
| * @type {?number} | ||
| */ | ||
| cacheOutcome?: number; | ||
| /** | ||
| * Sub-measurements for internal use. To be deleted before flushing. | ||
| */ | ||
| incompleteSubMeasurements?: Map<string, SubMeasurement>; | ||
| visibilityChangeCount?: number; | ||
| onlineStatusChangeCount?: number; | ||
| incompleteSubsCount?: number; | ||
| /** | ||
| * Network connection info from the Network Information API (Chromium only). | ||
| * Read from: https://developer.mozilla.org/docs/Web/API/NetworkInformation | ||
| */ | ||
| networkEffectiveType?: string; | ||
| networkRtt?: number; | ||
| /** | ||
| * CorrelationId of the in progress iframe request that was awaited | ||
| */ | ||
| awaitIframeCorrelationId?: string; | ||
| /** | ||
| * Monitor_window_timeout debugging telemetry | ||
| */ | ||
| redirectBridgeTimeoutMs?: number; | ||
| isRedirectUriCrossOrigin?: boolean; | ||
| redirectBridgeMessageVersion?: number; | ||
| lateResponseExperimentEnabled?: boolean; | ||
| /** | ||
| * Size of the id token | ||
| * | ||
| * @type {number} | ||
| */ | ||
| idTokenSize?: number; | ||
| /** | ||
| * | ||
| * Size of the access token | ||
| * | ||
| * @type {number} | ||
| */ | ||
| accessTokenSize?: number; | ||
| /** | ||
| * | ||
| * Size of the refresh token | ||
| * | ||
| * @type {number} | ||
| */ | ||
| refreshTokenSize?: number | undefined; | ||
| /** | ||
| * Application name as specified by the app. | ||
| * | ||
| * @type {?string} | ||
| */ | ||
| appName?: string; | ||
| /** | ||
| * Application version as specified by the app. | ||
| * | ||
| * @type {?string} | ||
| */ | ||
| appVersion?: string; | ||
| /** | ||
| * The following are fields that may be emitted in native broker scenarios | ||
| */ | ||
| extensionId?: string; | ||
| extensionVersion?: string; | ||
| matsBrokerVersion?: string; | ||
| matsAccountJoinOnStart?: string; | ||
| matsAccountJoinOnEnd?: string; | ||
| matsDeviceJoin?: string; | ||
| matsPromptBehavior?: string; | ||
| matsApiErrorCode?: number; | ||
| matsUiVisible?: boolean; | ||
| matsSilentCode?: number; | ||
| matsSilentBiSubCode?: number; | ||
| matsSilentMessage?: string; | ||
| matsSilentStatus?: number; | ||
| matsHttpStatus?: number; | ||
| matsHttpEventCount?: number; | ||
| /** | ||
| * Http POST metadata | ||
| */ | ||
| httpVerToken?: string; | ||
| httpStatus?: number; | ||
| contentTypeHeader?: string; | ||
| contentLengthHeader?: string; | ||
| /** | ||
| * Platform broker fields | ||
| */ | ||
| allowPlatformBroker?: boolean; | ||
| extensionInstalled?: boolean; | ||
| extensionHandshakeTimeoutMs?: number; | ||
| extensionHandshakeTimedOut?: boolean; | ||
| /** | ||
| * Nested App Auth Fields | ||
| */ | ||
| nestedAppAuthRequest?: boolean; | ||
| /** | ||
| * Multiple matched access/id/refresh tokens in the cache | ||
| */ | ||
| multiMatchedAT?: number; | ||
| multiMatchedID?: number; | ||
| multiMatchedRT?: number; | ||
| errorName?: string; | ||
| errorStack?: string[]; | ||
| context?: string; | ||
| cacheLocation?: string; | ||
| cacheRetentionDays?: number; | ||
| accountCachedBy?: string; | ||
| acntLoggedOut?: boolean; | ||
| cacheMatchedAccounts?: number; | ||
| cacheRtCount?: number; | ||
| cacheIdCount?: number; | ||
| cacheAtCount?: number; | ||
| scenarioId?: string; | ||
| accountType?: "AAD" | "MSA" | "B2C"; | ||
| /** | ||
| * Server error that triggers a request retry | ||
| * | ||
| * @type {string} | ||
| */ | ||
| retryError?: string; | ||
| embeddedClientId?: string; | ||
| embeddedRedirectUri?: string; | ||
| isAsyncPopup?: boolean; | ||
| cacheRtExpiresOnSeconds?: number; | ||
| ntwkRtExpiresOnSeconds?: number; | ||
| extRtExpiresOnSeconds?: number; | ||
| rtOffsetSeconds?: number; | ||
| sidFromClaim?: boolean; | ||
| sidFromClaims?: boolean; | ||
| sidFromRequest?: boolean; | ||
| loginHintFromRequest?: boolean; | ||
| loginHintFromUpn?: boolean; | ||
| loginHintFromClaim?: boolean; | ||
| domainHintFromRequest?: boolean; | ||
| prompt?: string; | ||
| usePreGeneratedPkce?: boolean; | ||
| msalInstanceCount?: number; | ||
| sameClientIdInstanceCount?: number; | ||
| navigateCallbackResult?: boolean; | ||
| dataBoundary?: DataBoundary; | ||
| logs?: string; | ||
| isMcp?: boolean; | ||
| /** | ||
| * Source of cloud discovery metadata (config, cache, network, hardcoded_values) | ||
| */ | ||
| cloudDiscoverySource?: string; | ||
| /** | ||
| * Source of authority endpoint metadata (config, cache, network, hardcoded_values) | ||
| */ | ||
| authorityEndpointSource?: string; | ||
| /** | ||
| * Number of accounts removed during cache cleanup | ||
| */ | ||
| accountsRemoved?: number; | ||
| /** | ||
| * Number of access tokens removed during cache cleanup | ||
| */ | ||
| accessTokensRemoved?: number; | ||
| /** | ||
| * Number of failures when removing token binding keys | ||
| */ | ||
| removeTokenBindingKeyFailure?: number; | ||
| /** | ||
| * Reason for silent refresh fallback to iframe | ||
| * Format: errorCode or errorCode|subError | ||
| * | ||
| * @type {?string} | ||
| */ | ||
| silentRefreshReason?: string; | ||
| /** | ||
| * Whether this request was deduped with another in-flight request | ||
| */ | ||
| deduped?: boolean; | ||
| /** | ||
| * Whether the user has "Keep Me Signed In" enabled | ||
| */ | ||
| kmsi?: boolean; | ||
| /** | ||
| * Cached SSO capability status from the most recent SSO verification | ||
| */ | ||
| ssoCapable?: boolean; | ||
| /** | ||
| * Whether this event was executed in the background | ||
| */ | ||
| isBackground?: boolean; | ||
| /** | ||
| * Cache migration telemetry — pre-migration counts | ||
| */ | ||
| preMigrateAcntCount?: number; | ||
| preMigrateATCount?: number; | ||
| preMigrateITCount?: number; | ||
| preMigrateRTCount?: number; | ||
| /** | ||
| * Cache migration telemetry — post-migration counts | ||
| */ | ||
| postMigrateAcntCount?: number; | ||
| postMigrateATCount?: number; | ||
| postMigrateITCount?: number; | ||
| postMigrateRTCount?: number; | ||
| /** | ||
| * Cache migration telemetry — old schema counts | ||
| */ | ||
| oldAcntCount?: number; | ||
| oldATCount?: number; | ||
| oldITCount?: number; | ||
| oldRTCount?: number; | ||
| /** | ||
| * Cache migration telemetry — skipped and migrated counts | ||
| */ | ||
| skipATMigrateCount?: number; | ||
| skipITMigrateCount?: number; | ||
| skipRTMigrateCount?: number; | ||
| migratedATCount?: number; | ||
| migratedITCount?: number; | ||
| migratedRTCount?: number; | ||
| /** | ||
| * Cache telemetry — expired, invalid, and removed counts | ||
| */ | ||
| expiredCacheRemovedCount?: number; | ||
| expiredAcntRemovedCount?: number; | ||
| invalidCacheCount?: number; | ||
| /** | ||
| * Encrypted cache telemetry | ||
| */ | ||
| unencryptedCacheCount?: number; | ||
| encryptedCacheCount?: number; | ||
| encryptedCacheExpiredCount?: number; | ||
| encryptedCacheCorruptionCount?: number; | ||
| /** | ||
| * Container for dynamically-named telemetry fields. | ||
| * Fields whose names are constructed at runtime (e.g., "[eventName]CallCount") | ||
| * should be stored here instead of being set as top-level properties. | ||
| * Use the "ext." prefix when calling addFields/incrementFields to automatically | ||
| * route fields to this sub-object. | ||
| * | ||
| * @remarks | ||
| * This property is typed as `Record<string, string | number>`. | ||
| */ | ||
| ext?: Record<string, string | number>; | ||
| }; | ||
| export type PerformanceEventContext = { | ||
| dur?: number; | ||
| err?: string; | ||
| subErr?: string; | ||
| fail?: number; | ||
| }; | ||
| export type PerformanceEventStackedContext = PerformanceEventContext & { | ||
| name?: string; | ||
| childErr?: string; | ||
| }; | ||
| /** | ||
| * Prefix used to mark telemetry field names as dynamic. | ||
| * Fields with this prefix in addFields/incrementFields calls will be routed | ||
| * to the PerformanceEvent.ext sub-object. | ||
| */ | ||
| export declare const EXT_FIELD_PREFIX = "ext."; | ||
| export declare const IntFields: ReadonlySet<string>; | ||
| //# sourceMappingURL=PerformanceEvent.d.ts.map |
| {"version":3,"file":"PerformanceEvent.d.ts","sourceRoot":"","sources":["../../../src/telemetry/performance/PerformanceEvent.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;;;;CAIzB,CAAC;AACX,MAAM,MAAM,sBAAsB,GAC9B,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC;AAEzE,MAAM,MAAM,cAAc,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC3B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;I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E,MAAM,CAAC;IACpC,6BAA6B,CAAC,EAAE,MAAM,CAAC;IAEvC;;;;;;;;;OASG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IAClC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,uBAAuB,GAAG;IACnE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,SAAS,CAAC;AAEvC,eAAO,MAAM,SAAS,EAAE,WAAW,CAAC,MAAM,CA4BxC,CAAC"} |
| /** | ||
| * Time spent sending/waiting for the response of a request to the token endpoint | ||
| */ | ||
| export declare const NetworkClientSendPostRequestAsync = "networkClientSendPostRequestAsync"; | ||
| export declare const RefreshTokenClientExecutePostToTokenEndpoint = "refreshTokenClientExecutePostToTokenEndpoint"; | ||
| export declare const AuthorizationCodeClientExecutePostToTokenEndpoint = "authorizationCodeClientExecutePostToTokenEndpoint"; | ||
| /** | ||
| * Time spent on the network for refresh token acquisition | ||
| */ | ||
| export declare const RefreshTokenClientExecuteTokenRequest = "refreshTokenClientExecuteTokenRequest"; | ||
| /** | ||
| * Time taken for acquiring refresh token , records RT size | ||
| */ | ||
| export declare const RefreshTokenClientAcquireToken = "refreshTokenClientAcquireToken"; | ||
| /** | ||
| * Time taken for acquiring cached refresh token | ||
| */ | ||
| export declare const RefreshTokenClientAcquireTokenWithCachedRefreshToken = "refreshTokenClientAcquireTokenWithCachedRefreshToken"; | ||
| /** | ||
| * Helper function to create token request body in RefreshTokenClient (msal-common). | ||
| */ | ||
| export declare const RefreshTokenClientCreateTokenRequestBody = "refreshTokenClientCreateTokenRequestBody"; | ||
| export declare const SilentFlowClientGenerateResultFromCacheRecord = "silentFlowClientGenerateResultFromCacheRecord"; | ||
| /** | ||
| * getAuthCodeUrl API (msal-browser and msal-node). | ||
| */ | ||
| export declare const GetAuthCodeUrl = "getAuthCodeUrl"; | ||
| /** | ||
| * Functions from InteractionHandler (msal-browser) | ||
| */ | ||
| export declare const HandleCodeResponseFromServer = "handleCodeResponseFromServer"; | ||
| /** | ||
| * APIs in Authorization Code Client (msal-common) | ||
| */ | ||
| export declare const AuthClientExecuteTokenRequest = "authClientExecuteTokenRequest"; | ||
| export declare const AuthClientCreateTokenRequestBody = "authClientCreateTokenRequestBody"; | ||
| export declare const UpdateTokenEndpointAuthority = "updateTokenEndpointAuthority"; | ||
| /** | ||
| * Generate functions in PopTokenGenerator (msal-common) | ||
| */ | ||
| export declare const PopTokenGenerateCnf = "popTokenGenerateCnf"; | ||
| /** | ||
| * handleServerTokenResponse API in ResponseHandler (msal-common) | ||
| */ | ||
| export declare const HandleServerTokenResponse = "handleServerTokenResponse"; | ||
| /** | ||
| * Authority functions | ||
| */ | ||
| export declare const AuthorityResolveEndpointsAsync = "authorityResolveEndpointsAsync"; | ||
| export declare const AuthorityGetCloudDiscoveryMetadataFromNetwork = "authorityGetCloudDiscoveryMetadataFromNetwork"; | ||
| export declare const AuthorityUpdateCloudDiscoveryMetadata = "authorityUpdateCloudDiscoveryMetadata"; | ||
| export declare const AuthorityGetEndpointMetadataFromNetwork = "authorityGetEndpointMetadataFromNetwork"; | ||
| export declare const AuthorityUpdateEndpointMetadata = "authorityUpdateEndpointMetadata"; | ||
| export declare const AuthorityUpdateMetadataWithRegionalInformation = "authorityUpdateMetadataWithRegionalInformation"; | ||
| /** | ||
| * Region Discovery functions | ||
| */ | ||
| export declare const RegionDiscoveryDetectRegion = "regionDiscoveryDetectRegion"; | ||
| export declare const RegionDiscoveryGetRegionFromIMDS = "regionDiscoveryGetRegionFromIMDS"; | ||
| export declare const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion"; | ||
| /** | ||
| * Cache operations | ||
| */ | ||
| export declare const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken"; | ||
| export declare const SetUserData = "setUserData"; | ||
| //# sourceMappingURL=PerformanceEvents.d.ts.map |
| {"version":3,"file":"PerformanceEvents.d.ts","sourceRoot":"","sources":["../../../src/telemetry/performance/PerformanceEvents.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,iCAAiC,sCACP,CAAC;AACxC,eAAO,MAAM,4CAA4C,iDACP,CAAC;AACnD,eAAO,MAAM,iDAAiD,sDACP,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,qCAAqC,0CACP,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,8BAA8B,mCAAmC,CAAC;AAE/E;;GAEG;AACH,eAAO,MAAM,oDAAoD,yDACP,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,wCAAwC,6CACP,CAAC;AAE/C,eAAO,MAAM,6CAA6C,kDACP,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,6BAA6B,kCAAkC,CAAC;AAC7E,eAAO,MAAM,gCAAgC,qCACP,CAAC;AACvC,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,8BAA8B,mCAAmC,CAAC;AAC/E,eAAO,MAAM,6CAA6C,kDACP,CAAC;AACpD,eAAO,MAAM,qCAAqC,0CACP,CAAC;AAC5C,eAAO,MAAM,uCAAuC,4CACP,CAAC;AAC9C,eAAO,MAAM,+BAA+B,oCACP,CAAC;AACtC,eAAO,MAAM,8CAA8C,mDACP,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,2BAA2B,gCAAgC,CAAC;AACzE,eAAO,MAAM,gCAAgC,qCACP,CAAC;AACvC,eAAO,MAAM,gCAAgC,qCACP,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,2BAA2B,gCAAgC,CAAC;AACzE,eAAO,MAAM,WAAW,gBAAgB,CAAC"} |
| import { IPerformanceClient, InProgressPerformanceEvent } from "./IPerformanceClient.js"; | ||
| import { IPerformanceMeasurement } from "./IPerformanceMeasurement.js"; | ||
| import { PerformanceEvent } from "./PerformanceEvent.js"; | ||
| export declare class StubPerformanceMeasurement implements IPerformanceMeasurement { | ||
| startMeasurement(): void; | ||
| endMeasurement(): void; | ||
| flushMeasurement(): number | null; | ||
| } | ||
| export declare class StubPerformanceClient implements IPerformanceClient { | ||
| generateId(): string; | ||
| startMeasurement(measureName: string, correlationId?: string | undefined): InProgressPerformanceEvent; | ||
| endMeasurement(): PerformanceEvent | null; | ||
| discardMeasurements(): void; | ||
| removePerformanceCallback(): boolean; | ||
| addPerformanceCallback(): string; | ||
| emitEvents(): void; | ||
| addFields(): void; | ||
| incrementFields(): void; | ||
| cacheEventByCorrelationId(): void; | ||
| } | ||
| //# sourceMappingURL=StubPerformanceClient.d.ts.map |
| {"version":3,"file":"StubPerformanceClient.d.ts","sourceRoot":"","sources":["../../../src/telemetry/performance/StubPerformanceClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,kBAAkB,EAClB,0BAA0B,EAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EACH,gBAAgB,EAEnB,MAAM,uBAAuB,CAAC;AAE/B,qBAAa,0BAA2B,YAAW,uBAAuB;IACtE,gBAAgB,IAAI,IAAI;IAGxB,cAAc,IAAI,IAAI;IAGtB,gBAAgB,IAAI,MAAM,GAAG,IAAI;CAGpC;AAED,qBAAa,qBAAsB,YAAW,kBAAkB;IAC5D,UAAU,IAAI,MAAM;IAIpB,gBAAgB,CACZ,WAAW,EAAE,MAAM,EACnB,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,GACnC,0BAA0B;IAoB7B,cAAc,IAAI,gBAAgB,GAAG,IAAI;IAIzC,mBAAmB,IAAI,IAAI;IAI3B,yBAAyB,IAAI,OAAO;IAIpC,sBAAsB,IAAI,MAAM;IAIhC,UAAU,IAAI,IAAI;IAIlB,SAAS,IAAI,IAAI;IAIjB,eAAe,IAAI,IAAI;IAIvB,yBAAyB,IAAI,IAAI;CAGpC"} |
| import * as Constants from "../../utils/Constants.js"; | ||
| import { CacheManager } from "../../cache/CacheManager.js"; | ||
| import { ServerTelemetryRequest } from "./ServerTelemetryRequest.js"; | ||
| import { ServerTelemetryEntity } from "../../cache/entities/ServerTelemetryEntity.js"; | ||
| import { RegionDiscoveryMetadata } from "../../authority/RegionDiscoveryMetadata.js"; | ||
| type SkuParams = { | ||
| libraryName?: string; | ||
| libraryVersion?: string; | ||
| extensionName?: string; | ||
| extensionVersion?: string; | ||
| skus?: string; | ||
| }; | ||
| /** @internal */ | ||
| export declare class ServerTelemetryManager { | ||
| private cacheManager; | ||
| private apiId; | ||
| private correlationId; | ||
| private telemetryCacheKey; | ||
| private wrapperSKU; | ||
| private wrapperVer; | ||
| private regionUsed; | ||
| private regionSource; | ||
| private regionOutcome; | ||
| private cacheOutcome; | ||
| constructor(telemetryRequest: ServerTelemetryRequest, cacheManager: CacheManager); | ||
| /** | ||
| * API to add MSER Telemetry to request | ||
| */ | ||
| generateCurrentRequestHeaderValue(): string; | ||
| /** | ||
| * API to add MSER Telemetry for the last failed request | ||
| */ | ||
| generateLastRequestHeaderValue(): string; | ||
| /** | ||
| * API to cache token failures for MSER data capture | ||
| * @param error | ||
| */ | ||
| cacheFailedRequest(error: unknown): void; | ||
| /** | ||
| * Update server telemetry cache entry by incrementing cache hit counter | ||
| */ | ||
| incrementCacheHits(): number; | ||
| /** | ||
| * Get the server telemetry entity from cache or initialize a new one | ||
| */ | ||
| getLastRequests(): ServerTelemetryEntity; | ||
| /** | ||
| * Remove server telemetry cache entry | ||
| */ | ||
| clearTelemetryCache(): void; | ||
| /** | ||
| * Returns the maximum number of errors that can be flushed to the server in the next network request | ||
| * @param serverTelemetryEntity | ||
| */ | ||
| static maxErrorsToSend(serverTelemetryEntity: ServerTelemetryEntity): number; | ||
| /** | ||
| * Get the region discovery fields | ||
| * | ||
| * @returns string | ||
| */ | ||
| getRegionDiscoveryFields(): string; | ||
| /** | ||
| * Update the region discovery metadata | ||
| * | ||
| * @param regionDiscoveryMetadata | ||
| * @returns void | ||
| */ | ||
| updateRegionDiscoveryMetadata(regionDiscoveryMetadata: RegionDiscoveryMetadata): void; | ||
| /** | ||
| * Set cache outcome | ||
| */ | ||
| setCacheOutcome(cacheOutcome: Constants.CacheOutcome): void; | ||
| setNativeBrokerErrorCode(errorCode: string): void; | ||
| getNativeBrokerErrorCode(): string | undefined; | ||
| clearNativeBrokerErrorCode(): void; | ||
| static makeExtraSkuString(params: SkuParams): string; | ||
| } | ||
| export {}; | ||
| //# sourceMappingURL=ServerTelemetryManager.d.ts.map |
| {"version":3,"file":"ServerTelemetryManager.d.ts","sourceRoot":"","sources":["../../../src/telemetry/server/ServerTelemetryManager.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,SAAS,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAKrF,KAAK,SAAS,GAAG;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gB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| ||
| clientId: string; | ||
| apiId: number; | ||
| correlationId: string; | ||
| forceRefresh?: boolean; | ||
| wrapperSKU?: string; | ||
| wrapperVer?: string; | ||
| }; | ||
| //# sourceMappingURL=ServerTelemetryRequest.d.ts.map |
| {"version":3,"file":"ServerTelemetryRequest.d.ts","sourceRoot":"","sources":["../../../src/telemetry/server/ServerTelemetryRequest.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,sBAAsB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"} |
| /** | ||
| * Interface which describes URI components. | ||
| */ | ||
| export interface IUri { | ||
| Protocol: string; | ||
| HostNameAndPort: string; | ||
| AbsolutePath: string; | ||
| Search: string; | ||
| Hash: string; | ||
| PathSegments: string[]; | ||
| QueryString: string; | ||
| } | ||
| //# sourceMappingURL=IUri.d.ts.map |
| {"version":3,"file":"IUri.d.ts","sourceRoot":"","sources":["../../src/url/IUri.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,IAAI;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACvB"} |
| import { IUri } from "./IUri.js"; | ||
| /** | ||
| * Url object class which can perform various transformations on url strings. | ||
| */ | ||
| export declare class UrlString { | ||
| private _urlString; | ||
| get urlString(): string; | ||
| constructor(url: string); | ||
| /** | ||
| * Ensure urls are lower case and end with a / character. | ||
| * @param url | ||
| */ | ||
| static canonicalizeUri(url: string): string; | ||
| /** | ||
| * Throws if urlString passed is not a valid authority URI string. | ||
| */ | ||
| validateAsUri(): void; | ||
| /** | ||
| * Given a url and a query string return the url with provided query string appended | ||
| * @param url | ||
| * @param queryString | ||
| */ | ||
| static appendQueryString(url: string, queryString: string): string; | ||
| /** | ||
| * Returns a url with the hash removed | ||
| * @param url | ||
| */ | ||
| static removeHashFromUrl(url: string): string; | ||
| /** | ||
| * Given a url like https://a:b/common/d?e=f#g, and a tenantId, returns https://a:b/tenantId/d | ||
| * @param href The url | ||
| * @param tenantId The tenant id to replace | ||
| */ | ||
| replaceTenantPath(tenantId: string): UrlString; | ||
| /** | ||
| * Parses out the components from a url string. | ||
| * @returns An object with the various components. Please cache this value insted of calling this multiple times on the same url. | ||
| */ | ||
| getUrlComponents(): IUri; | ||
| static getDomainFromUrl(url: string): string; | ||
| static getAbsoluteUrl(relativeUrl: string, baseUrl: string): string; | ||
| static constructAuthorityUriFromObject(urlObject: IUri): UrlString; | ||
| } | ||
| //# sourceMappingURL=UrlString.d.ts.map |
| {"version":3,"file":"UrlString.d.ts","sourceRoot":"","sources":["../../src/url/UrlString.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC;;GAEG;AACH,qBAAa,SAAS;IAElB,OAAO,CAAC,UAAU,CAAS;IAC3B,IAAW,SAAS,IAAI,MAAM,CAE7B;gBAEW,GAAG,EAAE,MAAM;IAcvB;;;OAGG;IACH,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAoB3C;;OAEG;IACH,aAAa,IAAI,IAAI;IA6BrB;;;;OAIG;IACH,MAAM,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM;IAUlE;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAI7C;;;;OAIG;IACH,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS;IAc9C;;;OAGG;IACH,gBAAgB,IAAI,IAAI;IAsCxB,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAc5C,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM;IAgBnE,MAAM,CAAC,+BAA+B,CAAC,SAAS,EAAE,IAAI,GAAG,SAAS;CASrE"} |
| import { ClientAssertionCallback } from "../account/ClientCredentials.js"; | ||
| export declare function getClientAssertion(clientAssertion: string | ClientAssertionCallback, clientId: string, tokenEndpoint?: string): Promise<string>; | ||
| //# sourceMappingURL=ClientAssertionUtils.d.ts.map |
| {"version":3,"file":"ClientAssertionUtils.d.ts","sourceRoot":"","sources":["../../src/utils/ClientAssertionUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,uBAAuB,EAE1B,MAAM,iCAAiC,CAAC;AAEzC,wBAAsB,kBAAkB,CACpC,eAAe,EAAE,MAAM,GAAG,uBAAuB,EACjD,QAAQ,EAAE,MAAM,EAChB,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,MAAM,CAAC,CAUjB"} |
| export declare const SKU = "msal.js.common"; | ||
| export declare const DEFAULT_AUTHORITY = "https://login.microsoftonline.com/common/"; | ||
| export declare const DEFAULT_AUTHORITY_HOST = "login.microsoftonline.com"; | ||
| export declare const DEFAULT_COMMON_TENANT = "common"; | ||
| export declare const ADFS = "adfs"; | ||
| export declare const DSTS = "dstsv2"; | ||
| export declare const AAD_INSTANCE_DISCOVERY_ENDPT: string; | ||
| export declare const CIAM_AUTH_URL = ".ciamlogin.com"; | ||
| export declare const AAD_TENANT_DOMAIN_SUFFIX = ".onmicrosoft.com"; | ||
| export declare const RESOURCE_DELIM = "|"; | ||
| export declare const CONSUMER_UTID = "9188040d-6c67-4c5b-b112-36a304b66dad"; | ||
| export declare const OPENID_SCOPE = "openid"; | ||
| export declare const PROFILE_SCOPE = "profile"; | ||
| export declare const OFFLINE_ACCESS_SCOPE = "offline_access"; | ||
| export declare const EMAIL_SCOPE = "email"; | ||
| export declare const CODE_GRANT_TYPE = "authorization_code"; | ||
| export declare const S256_CODE_CHALLENGE_METHOD = "S256"; | ||
| export declare const URL_FORM_CONTENT_TYPE = "application/x-www-form-urlencoded;charset=utf-8"; | ||
| export declare const AUTHORIZATION_PENDING = "authorization_pending"; | ||
| export declare const NOT_APPLICABLE = "N/A"; | ||
| export declare const NOT_AVAILABLE = "Not Available"; | ||
| export declare const FORWARD_SLASH = "/"; | ||
| export declare const IMDS_ENDPOINT = "http://169.254.169.254/metadata/instance/compute/location"; | ||
| export declare const IMDS_VERSION = "2020-06-01"; | ||
| export declare const IMDS_TIMEOUT = 2000; | ||
| export declare const AZURE_REGION_AUTO_DISCOVER_FLAG = "TryAutoDetect"; | ||
| export declare const REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX = "login.microsoft.com"; | ||
| export declare const KNOWN_PUBLIC_CLOUDS: string[]; | ||
| export declare const SHR_NONCE_VALIDITY = 240; | ||
| export declare const INVALID_INSTANCE = "invalid_instance"; | ||
| export declare const HTTP_SUCCESS: number; | ||
| export declare const HTTP_SUCCESS_RANGE_START: number; | ||
| export declare const HTTP_SUCCESS_RANGE_END: number; | ||
| export declare const HTTP_REDIRECT: number; | ||
| export declare const HTTP_CLIENT_ERROR: number; | ||
| export declare const HTTP_CLIENT_ERROR_RANGE_START: number; | ||
| export declare const HTTP_BAD_REQUEST: number; | ||
| export declare const HTTP_UNAUTHORIZED: number; | ||
| export declare const HTTP_NOT_FOUND: number; | ||
| export declare const HTTP_REQUEST_TIMEOUT: number; | ||
| export declare const HTTP_GONE: number; | ||
| export declare const HTTP_TOO_MANY_REQUESTS: number; | ||
| export declare const HTTP_CLIENT_ERROR_RANGE_END: number; | ||
| export declare const HTTP_SERVER_ERROR: number; | ||
| export declare const HTTP_SERVER_ERROR_RANGE_START: number; | ||
| export declare const HTTP_SERVICE_UNAVAILABLE: number; | ||
| export declare const HTTP_GATEWAY_TIMEOUT: number; | ||
| export declare const HTTP_SERVER_ERROR_RANGE_END: number; | ||
| export declare const HTTP_MULTI_SIDED_ERROR: number; | ||
| export declare const HttpMethod: { | ||
| readonly GET: "GET"; | ||
| readonly POST: "POST"; | ||
| }; | ||
| export type HttpMethod = (typeof HttpMethod)[keyof typeof HttpMethod]; | ||
| export declare const OIDC_DEFAULT_SCOPES: string[]; | ||
| export declare const OIDC_SCOPES: string[]; | ||
| /** | ||
| * Request header names | ||
| */ | ||
| export declare const HeaderNames: { | ||
| readonly CONTENT_TYPE: "Content-Type"; | ||
| readonly CONTENT_LENGTH: "Content-Length"; | ||
| readonly RETRY_AFTER: "Retry-After"; | ||
| readonly CCS_HEADER: "X-AnchorMailbox"; | ||
| readonly WWWAuthenticate: "WWW-Authenticate"; | ||
| readonly AuthenticationInfo: "Authentication-Info"; | ||
| readonly X_MS_REQUEST_ID: "x-ms-request-id"; | ||
| readonly X_MS_HTTP_VERSION: "x-ms-httpver"; | ||
| }; | ||
| export type HeaderNames = (typeof HeaderNames)[keyof typeof HeaderNames]; | ||
| /** | ||
| * Persistent cache keys MSAL which stay while user is logged in. | ||
| */ | ||
| export declare const PersistentCacheKeys: { | ||
| readonly ACTIVE_ACCOUNT_FILTERS: "active-account-filters"; | ||
| }; | ||
| export type PersistentCacheKeys = (typeof PersistentCacheKeys)[keyof typeof PersistentCacheKeys]; | ||
| /** | ||
| * String constants related to AAD Authority | ||
| */ | ||
| export declare const AADAuthority: { | ||
| readonly COMMON: "common"; | ||
| readonly ORGANIZATIONS: "organizations"; | ||
| readonly CONSUMERS: "consumers"; | ||
| }; | ||
| export type AADAuthority = (typeof AADAuthority)[keyof typeof AADAuthority]; | ||
| /** | ||
| * Claims request keys | ||
| */ | ||
| export declare const ClaimsRequestKeys: { | ||
| readonly ACCESS_TOKEN: "access_token"; | ||
| readonly XMS_CC: "xms_cc"; | ||
| }; | ||
| export type ClaimsRequestKeys = (typeof ClaimsRequestKeys)[keyof typeof ClaimsRequestKeys]; | ||
| /** | ||
| * we considered making this "enum" in the request instead of string, however it looks like the allowed list of | ||
| * prompt values kept changing over past couple of years. There are some undocumented prompt values for some | ||
| * internal partners too, hence the choice of generic "string" type instead of the "enum" | ||
| */ | ||
| export declare const PromptValue: { | ||
| LOGIN: string; | ||
| SELECT_ACCOUNT: string; | ||
| CONSENT: string; | ||
| NONE: string; | ||
| CREATE: string; | ||
| NO_SESSION: string; | ||
| }; | ||
| /** | ||
| * allowed values for codeVerifier | ||
| */ | ||
| export declare const CodeChallengeMethodValues: { | ||
| PLAIN: string; | ||
| S256: string; | ||
| }; | ||
| /** | ||
| * Allowed values for response_type | ||
| */ | ||
| export declare const OAuthResponseType: { | ||
| readonly CODE: "code"; | ||
| readonly IDTOKEN_TOKEN: "id_token token"; | ||
| readonly IDTOKEN_TOKEN_REFRESHTOKEN: "id_token token refresh_token"; | ||
| }; | ||
| export type OAuthResponseType = (typeof OAuthResponseType)[keyof typeof OAuthResponseType]; | ||
| /** | ||
| * allowed values for response_mode | ||
| */ | ||
| export declare const ResponseMode: { | ||
| readonly QUERY: "query"; | ||
| readonly FRAGMENT: "fragment"; | ||
| readonly FORM_POST: "form_post"; | ||
| }; | ||
| export type ResponseMode = (typeof ResponseMode)[keyof typeof ResponseMode]; | ||
| /** | ||
| * allowed grant_type | ||
| */ | ||
| export declare const GrantType: { | ||
| readonly IMPLICIT_GRANT: "implicit"; | ||
| readonly AUTHORIZATION_CODE_GRANT: "authorization_code"; | ||
| readonly CLIENT_CREDENTIALS_GRANT: "client_credentials"; | ||
| readonly RESOURCE_OWNER_PASSWORD_GRANT: "password"; | ||
| readonly REFRESH_TOKEN_GRANT: "refresh_token"; | ||
| readonly DEVICE_CODE_GRANT: "device_code"; | ||
| readonly JWT_BEARER: "urn:ietf:params:oauth:grant-type:jwt-bearer"; | ||
| }; | ||
| export type GrantType = (typeof GrantType)[keyof typeof GrantType]; | ||
| /** | ||
| * Account types in Cache | ||
| */ | ||
| export declare const CACHE_ACCOUNT_TYPE_MSSTS: string; | ||
| export declare const CACHE_ACCOUNT_TYPE_ADFS: string; | ||
| export declare const CACHE_ACCOUNT_TYPE_MSAV1: string; | ||
| export declare const CACHE_ACCOUNT_TYPE_GENERIC: string; | ||
| /** | ||
| * Separators used in cache | ||
| */ | ||
| export declare const CACHE_KEY_SEPARATOR: string; | ||
| export declare const CLIENT_INFO_SEPARATOR: string; | ||
| /** | ||
| * Credential Type stored in the cache | ||
| */ | ||
| export declare const CredentialType: { | ||
| readonly ID_TOKEN: "IdToken"; | ||
| readonly ACCESS_TOKEN: "AccessToken"; | ||
| readonly ACCESS_TOKEN_WITH_AUTH_SCHEME: "AccessToken_With_AuthScheme"; | ||
| readonly REFRESH_TOKEN: "RefreshToken"; | ||
| }; | ||
| export type CredentialType = (typeof CredentialType)[keyof typeof CredentialType]; | ||
| /** | ||
| * Combine all cache types | ||
| */ | ||
| export declare const CacheType: { | ||
| readonly ADFS: 1001; | ||
| readonly MSA: 1002; | ||
| readonly MSSTS: 1003; | ||
| readonly GENERIC: 1004; | ||
| readonly ACCESS_TOKEN: 2001; | ||
| readonly REFRESH_TOKEN: 2002; | ||
| readonly ID_TOKEN: 2003; | ||
| readonly APP_METADATA: 3001; | ||
| readonly UNDEFINED: 9999; | ||
| }; | ||
| export type CacheType = (typeof CacheType)[keyof typeof CacheType]; | ||
| /** | ||
| * More Cache related constants | ||
| */ | ||
| export declare const APP_METADATA: string; | ||
| export declare const CLIENT_INFO: string; | ||
| export declare const THE_FAMILY_ID: string; | ||
| export declare const AUTHORITY_METADATA_CACHE_KEY: string; | ||
| export declare const AUTHORITY_METADATA_REFRESH_TIME_SECONDS: number; | ||
| export declare const AuthorityMetadataSource: { | ||
| readonly CONFIG: "config"; | ||
| readonly CACHE: "cache"; | ||
| readonly NETWORK: "network"; | ||
| readonly HARDCODED_VALUES: "hardcoded_values"; | ||
| }; | ||
| export type AuthorityMetadataSource = (typeof AuthorityMetadataSource)[keyof typeof AuthorityMetadataSource]; | ||
| export declare const SERVER_TELEM_SCHEMA_VERSION: number; | ||
| export declare const SERVER_TELEM_MAX_CUR_HEADER_BYTES: number; | ||
| export declare const SERVER_TELEM_MAX_LAST_HEADER_BYTES: number; | ||
| export declare const SERVER_TELEM_MAX_CACHED_ERRORS: number; | ||
| export declare const SERVER_TELEM_CACHE_KEY: string; | ||
| export declare const SERVER_TELEM_CATEGORY_SEPARATOR: string; | ||
| export declare const SERVER_TELEM_VALUE_SEPARATOR: string; | ||
| export declare const SERVER_TELEM_OVERFLOW_TRUE: string; | ||
| export declare const SERVER_TELEM_OVERFLOW_FALSE: string; | ||
| export declare const SERVER_TELEM_UNKNOWN_ERROR: string; | ||
| /** | ||
| * Type of the authentication request | ||
| */ | ||
| export declare const AuthenticationScheme: { | ||
| readonly BEARER: "Bearer"; | ||
| readonly POP: "pop"; | ||
| readonly SSH: "ssh-cert"; | ||
| }; | ||
| export type AuthenticationScheme = (typeof AuthenticationScheme)[keyof typeof AuthenticationScheme]; | ||
| /** | ||
| * Constants related to throttling | ||
| */ | ||
| export declare const DEFAULT_THROTTLE_TIME_SECONDS: number; | ||
| export declare const DEFAULT_MAX_THROTTLE_TIME_SECONDS: number; | ||
| export declare const THROTTLING_PREFIX: string; | ||
| export declare const X_MS_LIB_CAPABILITY_VALUE: string; | ||
| /** | ||
| * Errors | ||
| */ | ||
| export declare const INVALID_GRANT_ERROR: string; | ||
| export declare const CLIENT_MISMATCH_ERROR: string; | ||
| /** | ||
| * Password grant parameters | ||
| */ | ||
| export declare const PasswordGrantConstants: { | ||
| readonly username: "username"; | ||
| readonly password: "password"; | ||
| }; | ||
| export type PasswordGrantConstants = (typeof PasswordGrantConstants)[keyof typeof PasswordGrantConstants]; | ||
| /** | ||
| * Region Discovery Sources | ||
| */ | ||
| export declare const RegionDiscoverySources: { | ||
| readonly FAILED_AUTO_DETECTION: "1"; | ||
| readonly INTERNAL_CACHE: "2"; | ||
| readonly ENVIRONMENT_VARIABLE: "3"; | ||
| readonly IMDS: "4"; | ||
| }; | ||
| export type RegionDiscoverySources = (typeof RegionDiscoverySources)[keyof typeof RegionDiscoverySources]; | ||
| /** | ||
| * Region Discovery Outcomes | ||
| */ | ||
| export declare const RegionDiscoveryOutcomes: { | ||
| readonly CONFIGURED_MATCHES_DETECTED: "1"; | ||
| readonly CONFIGURED_NO_AUTO_DETECTION: "2"; | ||
| readonly CONFIGURED_NOT_DETECTED: "3"; | ||
| readonly AUTO_DETECTION_REQUESTED_SUCCESSFUL: "4"; | ||
| readonly AUTO_DETECTION_REQUESTED_FAILED: "5"; | ||
| }; | ||
| export type RegionDiscoveryOutcomes = (typeof RegionDiscoveryOutcomes)[keyof typeof RegionDiscoveryOutcomes]; | ||
| /** | ||
| * Specifies the reason for fetching the access token from the identity provider | ||
| */ | ||
| export declare const CacheOutcome: { | ||
| readonly NOT_APPLICABLE: "0"; | ||
| readonly FORCE_REFRESH_OR_CLAIMS: "1"; | ||
| readonly NO_CACHED_ACCESS_TOKEN: "2"; | ||
| readonly CACHED_ACCESS_TOKEN_EXPIRED: "3"; | ||
| readonly PROACTIVELY_REFRESHED: "4"; | ||
| }; | ||
| export type CacheOutcome = (typeof CacheOutcome)[keyof typeof CacheOutcome]; | ||
| export declare const JsonWebTokenTypes: { | ||
| readonly Jwt: "JWT"; | ||
| readonly Jwk: "JWK"; | ||
| readonly Pop: "pop"; | ||
| }; | ||
| export type JsonWebTokenTypes = (typeof JsonWebTokenTypes)[keyof typeof JsonWebTokenTypes]; | ||
| export declare const ONE_DAY_IN_MS = 86400000; | ||
| export declare const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300; | ||
| export declare const EncodingTypes: { | ||
| readonly BASE64: "base64"; | ||
| readonly HEX: "hex"; | ||
| readonly UTF8: "utf-8"; | ||
| }; | ||
| export type EncodingTypes = (typeof EncodingTypes)[keyof typeof EncodingTypes]; | ||
| //# sourceMappingURL=Constants.d.ts.map |
| {"version":3,"file":"Constants.d.ts","sourceRoot":"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,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC"} |
| import { Logger } from "../logger/Logger.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| /** | ||
| * Wraps a function with a performance measurement. | ||
| * Usage: invoke(functionToCall, performanceClient, "EventName", "correlationId")(...argsToPassToFunction) | ||
| * @param callback | ||
| * @param eventName | ||
| * @param logger | ||
| * @param telemetryClient | ||
| * @param correlationId | ||
| * @returns | ||
| * @internal | ||
| */ | ||
| export declare const invoke: <T extends any[], U>(callback: (...args: T) => U, eventName: string, logger: Logger, telemetryClient: IPerformanceClient, correlationId: string) => (...args: T) => U; | ||
| /** | ||
| * Wraps an async function with a performance measurement. | ||
| * Usage: invokeAsync(functionToCall, performanceClient, "EventName", "correlationId")(...argsToPassToFunction) | ||
| * @param callback | ||
| * @param eventName | ||
| * @param logger | ||
| * @param telemetryClient | ||
| * @param correlationId | ||
| * @returns | ||
| * @internal | ||
| * | ||
| */ | ||
| export declare const invokeAsync: <T extends any[], U>(callback: (...args: T) => Promise<U>, eventName: string, logger: Logger, telemetryClient: IPerformanceClient, correlationId: string) => (...args: T) => Promise<U>; | ||
| //# sourceMappingURL=FunctionWrappers.d.ts.map |
| {"version":3,"file":"FunctionWrappers.d.ts","sourceRoot":"","sources":["../../src/utils/FunctionWrappers.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEpF;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,MAAM,+DAEJ,MAAM,UACT,MAAM,mBACG,kBAAkB,iBACpB,MAAM,sBAsCxB,CAAC;AAEF;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,WAAW,wEAET,MAAM,UACT,MAAM,mBACG,kBAAkB,iBACpB,MAAM,+BA6CxB,CAAC"} |
| /** | ||
| * Key-Value type to support queryParams, extraQueryParams and claims | ||
| */ | ||
| export type StringDict = { | ||
| [key: string]: string; | ||
| }; | ||
| //# sourceMappingURL=MsalTypes.d.ts.map |
| {"version":3,"file":"MsalTypes.d.ts","sourceRoot":"","sources":["../../src/utils/MsalTypes.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC"} |
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { RequestStateObject } from "./StateTypes.js"; | ||
| /** | ||
| * Appends user state with random guid, or returns random guid. | ||
| * @param cryptoObj | ||
| * @param userState | ||
| * @param meta | ||
| */ | ||
| export declare function setRequestState(cryptoObj: ICrypto, userState?: string, meta?: Record<string, string>): string; | ||
| /** | ||
| * Generates the state value used by the common library. | ||
| * @param cryptoObj | ||
| * @param meta | ||
| */ | ||
| export declare function generateLibraryState(cryptoObj: ICrypto, meta?: Record<string, string>): string; | ||
| /** | ||
| * Parses the state into the RequestStateObject, which contains the LibraryState info and the state passed by the user. | ||
| * @param base64Decode | ||
| * @param state | ||
| */ | ||
| export declare function parseRequestState(base64Decode: (input: string) => string, state: string): RequestStateObject; | ||
| //# sourceMappingURL=ProtocolUtils.d.ts.map |
| {"version":3,"file":"ProtocolUtils.d.ts","sourceRoot":"","sources":["../../src/utils/ProtocolUtils.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAK/C,OAAO,EAAsB,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEzE;;;;;GAKG;AACH,wBAAgB,eAAe,CAC3B,SAAS,EAAE,OAAO,EAClB,SAAS,CAAC,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC9B,MAAM,CAKR;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAChC,SAAS,EAAE,OAAO,EAClB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC9B,MAAM,CAiBR;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC7B,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,EACvC,KAAK,EAAE,MAAM,GACd,kBAAkB,CA4BpB"} |
| /** | ||
| * Type which defines library state | ||
| */ | ||
| export type LibraryStateObject = { | ||
| id: string; | ||
| meta?: Record<string, string>; | ||
| }; | ||
| /** | ||
| * Type which defines the stringified and encoded state object sent to the service in the authorize request. | ||
| */ | ||
| export type RequestStateObject = { | ||
| userRequestState: string; | ||
| libraryState: LibraryStateObject; | ||
| }; | ||
| //# sourceMappingURL=StateTypes.d.ts.map |
| {"version":3,"file":"StateTypes.d.ts","sourceRoot":"","sources":["../../src/utils/StateTypes.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,kBAAkB,CAAC;CACpC,CAAC"} |
| /** | ||
| * @hidden | ||
| */ | ||
| export declare class StringUtils { | ||
| /** | ||
| * Check if stringified object is empty | ||
| * @param strObj | ||
| */ | ||
| static isEmptyObj(strObj?: string): boolean; | ||
| static startsWith(str: string, search: string): boolean; | ||
| static endsWith(str: string, search: string): boolean; | ||
| /** | ||
| * Parses string into an object. | ||
| * | ||
| * @param query | ||
| */ | ||
| static queryStringToObject<T>(query: string): T; | ||
| /** | ||
| * Trims entries in an array. | ||
| * | ||
| * @param arr | ||
| */ | ||
| static trimArrayEntries(arr: Array<string>): Array<string>; | ||
| /** | ||
| * Removes empty strings from array | ||
| * @param arr | ||
| */ | ||
| static removeEmptyStringsFromArray(arr: Array<string>): Array<string>; | ||
| /** | ||
| * Attempts to parse a string into JSON | ||
| * @param str | ||
| */ | ||
| static jsonParseHelper<T>(str: string): T | null; | ||
| } | ||
| //# sourceMappingURL=StringUtils.d.ts.map |
| {"version":3,"file":"StringUtils.d.ts","sourceRoot":"","sources":["../../src/utils/StringUtils.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,qBAAa,WAAW;IACpB;;;OAGG;IACH,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO;IAU3C,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO;IAIvD,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO;IAOrD;;;;OAIG;IACH,MAAM,CAAC,mBAAmB,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;IAe/C;;;;OAIG;IACH,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC;IAI1D;;;OAGG;IACH,MAAM,CAAC,2BAA2B,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC;IAMrE;;;OAGG;IACH,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI;CAOnD"} |
| /** | ||
| * Utility functions for managing date and time operations. | ||
| */ | ||
| /** | ||
| * return the current time in Unix time (seconds). | ||
| */ | ||
| export declare function nowSeconds(): number; | ||
| /** | ||
| * Converts JS Date object to seconds | ||
| * @param date Date | ||
| */ | ||
| export declare function toSecondsFromDate(date: Date): number; | ||
| /** | ||
| * Convert seconds to JS Date object. Seconds can be in a number or string format or undefined (will still return a date). | ||
| * @param seconds | ||
| */ | ||
| export declare function toDateFromSeconds(seconds: number | string | undefined): Date; | ||
| /** | ||
| * check if a token is expired based on given UTC time in seconds. | ||
| * @param expiresOn | ||
| */ | ||
| export declare function isTokenExpired(expiresOn: string, offset: number): boolean; | ||
| /** | ||
| * Checks if a cache entry is expired based on the last updated time and cache retention days. | ||
| * @param lastUpdatedAt | ||
| * @param cacheRetentionDays | ||
| * @returns | ||
| */ | ||
| export declare function isCacheExpired(lastUpdatedAt: string, cacheRetentionDays: number): boolean; | ||
| /** | ||
| * If the current time is earlier than the time that a token was cached at, we must discard the token | ||
| * i.e. The system clock was turned back after acquiring the cached token | ||
| * @param cachedAt | ||
| * @param offset | ||
| */ | ||
| export declare function wasClockTurnedBack(cachedAt: string): boolean; | ||
| /** | ||
| * Waits for t number of milliseconds | ||
| * @param t number | ||
| * @param value T | ||
| */ | ||
| export declare function delay<T>(t: number, value?: T): Promise<T | void>; | ||
| //# sourceMappingURL=TimeUtils.d.ts.map |
| {"version":3,"file":"TimeUtils.d.ts","sourceRoot":"","sources":["../../src/utils/TimeUtils.ts"],"names":[],"mappings":"AAKA;;GAEG;AAEH;;GAEG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAGnC;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAGpD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAK5E;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAOzE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC1B,aAAa,EAAE,MAAM,EACrB,kBAAkB,EAAE,MAAM,GAC3B,OAAO,CAIT;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAI5D;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAEhE"} |
| import { AuthorizeResponse } from "../response/AuthorizeResponse.js"; | ||
| /** | ||
| * Parses hash string from given string. Returns empty string if no hash symbol is found. | ||
| * @param hashString | ||
| */ | ||
| export declare function stripLeadingHashOrQuery(responseString: string): string; | ||
| /** | ||
| * Returns URL hash as server auth code response object. | ||
| */ | ||
| export declare function getDeserializedResponse(responseString: string): AuthorizeResponse | null; | ||
| /** | ||
| * Utility to create a URL from the params map | ||
| */ | ||
| export declare function mapToQueryString(parameters: Map<string, string>): string; | ||
| /** | ||
| * Normalizes URLs for comparison by removing hash, canonicalizing, | ||
| * and ensuring consistent URL encoding in query parameters. | ||
| * This fixes redirect loops when URLs contain encoded characters like apostrophes (%27). | ||
| * @param url - URL to normalize | ||
| * @returns Normalized URL string for comparison | ||
| */ | ||
| export declare function normalizeUrlForComparison(url: string): string; | ||
| //# sourceMappingURL=UrlUtils.d.ts.map |
| {"version":3,"file":"UrlUtils.d.ts","sourceRoot":"","sources":["../../src/utils/UrlUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAiCrE;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAWtE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACnC,cAAc,EAAE,MAAM,GACvB,iBAAiB,GAAG,IAAI,CA4B1B;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAQxE;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAwB7D"} |
| { | ||
| "main": "../lib/index-browser.cjs", | ||
| "module": "../dist/index-browser.mjs", | ||
| "types": "../lib/types/index-browser.d.ts" | ||
| "types": "../types/index-browser.d.ts" | ||
| } |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { createClientAuthError } from '../error/ClientAuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { createClientAuthError } from '../error/ClientAuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { AuthorityType } from './AuthorityType.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { Authority, formatAuthorityUri } from './Authority.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { UrlString } from '../url/UrlString.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { IMDS_VERSION, HTTP_SUCCESS, RegionDiscoverySources, HTTP_BAD_REQUEST, IMDS_ENDPOINT, IMDS_TIMEOUT } from '../utils/Constants.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { updateAccountTenantProfileData } from '../account/AccountInfo.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { CACHE_KEY_SEPARATOR, CACHE_ACCOUNT_TYPE_GENERIC, CACHE_ACCOUNT_TYPE_ADFS, CACHE_ACCOUNT_TYPE_MSSTS } from '../../utils/Constants.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { extractTokenClaims } from '../../account/AuthToken.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { addClientId, addRedirectUri, addScopes, addResource, addAuthorizationCode, addLibraryInfo, addApplicationTelemetry, addThrottling, addServerTelemetry, addCodeVerifier, addClientSecret, addClientAssertion, addClientAssertionType, addGrantType, addClientInfo, addPopToken, addSshJwk, addCcsUpn, addCcsOid, addBrokerParameters, addExtraParameters, instrumentBrokerParams, addClaims, addPostLogoutRedirectUri, addCorrelationId, addIdTokenHint, addState, addLogoutHint, addInstanceAware } from '../request/RequestParameterBuilder.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { buildClientConfiguration, isOidcProtocolMode } from '../config/ClientConfiguration.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { buildClientConfiguration } from '../config/ClientConfiguration.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { DEFAULT_CRYPTO_IMPLEMENTATION } from '../crypto/ICrypto.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { createClientAuthError } from '../error/ClientAuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { createJoseHeaderError } from '../error/JoseHeaderError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { nowSeconds } from '../utils/TimeUtils.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { cacheErrorUnknown, cacheQuotaExceeded } from './CacheErrorCodes.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { AuthError } from './AuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { AuthError } from './AuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { AuthError } from './AuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { AuthError } from './AuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { AuthError } from './AuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { AuthError } from './AuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { AuthError } from './AuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ export { AuthorizationCodeClient } from './client/AuthorizationCodeClient.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ export { AuthorizationCodeClient } from './client/AuthorizationCodeClient.mjs'; |
| { | ||
| "timestamp": "2026-04-28T21:31:31.634Z", | ||
| "packageVersion": "16.5.2", | ||
| "timestamp": "2026-05-07T19:02:11.060Z", | ||
| "packageVersion": "16.6.0", | ||
| "totalStrings": 96, | ||
@@ -5,0 +5,0 @@ "mappings": { |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { createClientAuthError } from '../error/ClientAuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { THROTTLING_PREFIX, HeaderNames, DEFAULT_THROTTLE_TIME_SECONDS, DEFAULT_MAX_THROTTLE_TIME_SECONDS } from '../utils/Constants.mjs'; |
@@ -1,8 +0,8 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
| /* eslint-disable header/header */ | ||
| const name = "@azure/msal-common"; | ||
| const version = "16.5.2"; | ||
| const version = "16.6.0"; | ||
| export { name, version }; | ||
| //# sourceMappingURL=packageMetadata.mjs.map |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { addClientId, addScopes, addResource, addRedirectUri, addCorrelationId, addResponseMode, addClientInfo, addCliData, addPrompt, addDomainHint, addSid, addLoginHint, addCcsOid, addCcsUpn, addNonce, addState, addBrokerParameters, addClaims, addInstanceAware } from '../request/RequestParameterBuilder.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { CcsCredentialType } from '../account/CcsCredential.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { createClientConfigurationError } from '../error/ClientConfigurationError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { createClientAuthError } from '../error/ClientAuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { OIDC_DEFAULT_SCOPES, ResponseMode, HeaderNames, CLIENT_INFO, ClaimsRequestKeys, PasswordGrantConstants, AuthenticationScheme, X_MS_LIB_CAPABILITY_VALUE } from '../utils/Constants.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { createClientConfigurationError } from '../error/ClientConfigurationError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { updateAccountTenantProfileData, buildTenantProfile } from '../account/AccountInfo.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { getAndFlushLogsFromCache } from '../../logger/Logger.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { PerformanceEventStatus } from './PerformanceEvent.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { CacheOutcome, SERVER_TELEM_CACHE_KEY, CACHE_KEY_SEPARATOR, SERVER_TELEM_SCHEMA_VERSION, SERVER_TELEM_VALUE_SEPARATOR, SERVER_TELEM_CATEGORY_SEPARATOR, SERVER_TELEM_OVERFLOW_TRUE, SERVER_TELEM_OVERFLOW_FALSE, SERVER_TELEM_MAX_CACHED_ERRORS, SERVER_TELEM_UNKNOWN_ERROR, SERVER_TELEM_MAX_LAST_HEADER_BYTES } from '../../utils/Constants.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { createClientConfigurationError } from '../error/ClientConfigurationError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { RESOURCE_DELIM } from './Constants.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { createClientAuthError } from '../error/ClientAuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { createClientAuthError } from '../error/ClientAuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { createClientAuthError } from '../error/ClientAuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { AuthorityType } from './AuthorityType.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { Authority, formatAuthorityUri } from './Authority.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { UrlString } from '../url/UrlString.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { IMDS_VERSION, HTTP_SUCCESS, RegionDiscoverySources, HTTP_BAD_REQUEST, IMDS_ENDPOINT, IMDS_TIMEOUT } from '../utils/Constants.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { updateAccountTenantProfileData } from '../account/AccountInfo.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { CACHE_KEY_SEPARATOR, CACHE_ACCOUNT_TYPE_GENERIC, CACHE_ACCOUNT_TYPE_ADFS, CACHE_ACCOUNT_TYPE_MSSTS } from '../../utils/Constants.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { extractTokenClaims } from '../../account/AuthToken.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { addClientId, addRedirectUri, addScopes, addResource, addAuthorizationCode, addLibraryInfo, addApplicationTelemetry, addThrottling, addServerTelemetry, addCodeVerifier, addClientSecret, addClientAssertion, addClientAssertionType, addGrantType, addClientInfo, addPopToken, addSshJwk, addCcsUpn, addCcsOid, addBrokerParameters, addExtraParameters, instrumentBrokerParams, addClaims, addPostLogoutRedirectUri, addCorrelationId, addIdTokenHint, addState, addLogoutHint, addInstanceAware } from '../request/RequestParameterBuilder.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { buildClientConfiguration, isOidcProtocolMode } from '../config/ClientConfiguration.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { buildClientConfiguration } from '../config/ClientConfiguration.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { DEFAULT_CRYPTO_IMPLEMENTATION } from '../crypto/ICrypto.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { createClientAuthError } from '../error/ClientAuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { createJoseHeaderError } from '../error/JoseHeaderError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { nowSeconds } from '../utils/TimeUtils.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { cacheErrorUnknown, cacheQuotaExceeded } from './CacheErrorCodes.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { AuthError } from './AuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { AuthError } from './AuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { AuthError } from './AuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { AuthError } from './AuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { AuthError } from './AuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { AuthError } from './AuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { AuthError } from './AuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ export { AuthorizationCodeClient } from './client/AuthorizationCodeClient.mjs'; |
+1
-1
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ export { AuthorizationCodeClient } from './client/AuthorizationCodeClient.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { createClientAuthError } from '../error/ClientAuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { THROTTLING_PREFIX, HeaderNames, DEFAULT_THROTTLE_TIME_SECONDS, DEFAULT_MAX_THROTTLE_TIME_SECONDS } from '../utils/Constants.mjs'; |
@@ -1,8 +0,8 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
| /* eslint-disable header/header */ | ||
| const name = "@azure/msal-common"; | ||
| const version = "16.5.2"; | ||
| const version = "16.6.0"; | ||
| export { name, version }; | ||
| //# sourceMappingURL=packageMetadata.mjs.map |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { addClientId, addScopes, addResource, addRedirectUri, addCorrelationId, addResponseMode, addClientInfo, addCliData, addPrompt, addDomainHint, addSid, addLoginHint, addCcsOid, addCcsUpn, addNonce, addState, addBrokerParameters, addClaims, addInstanceAware } from '../request/RequestParameterBuilder.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { CcsCredentialType } from '../account/CcsCredential.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { createClientConfigurationError } from '../error/ClientConfigurationError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { createClientAuthError } from '../error/ClientAuthError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { OIDC_DEFAULT_SCOPES, ResponseMode, HeaderNames, CLIENT_INFO, ClaimsRequestKeys, PasswordGrantConstants, AuthenticationScheme, X_MS_LIB_CAPABILITY_VALUE } from '../utils/Constants.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { createClientConfigurationError } from '../error/ClientConfigurationError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { updateAccountTenantProfileData, buildTenantProfile } from '../account/AccountInfo.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { getAndFlushLogsFromCache } from '../../logger/Logger.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { PerformanceEventStatus } from './PerformanceEvent.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { CacheOutcome, SERVER_TELEM_CACHE_KEY, CACHE_KEY_SEPARATOR, SERVER_TELEM_SCHEMA_VERSION, SERVER_TELEM_VALUE_SEPARATOR, SERVER_TELEM_CATEGORY_SEPARATOR, SERVER_TELEM_OVERFLOW_TRUE, SERVER_TELEM_OVERFLOW_FALSE, SERVER_TELEM_MAX_CACHED_ERRORS, SERVER_TELEM_UNKNOWN_ERROR, SERVER_TELEM_MAX_LAST_HEADER_BYTES } from '../../utils/Constants.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { createClientConfigurationError } from '../error/ClientConfigurationError.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { RESOURCE_DELIM } from './Constants.mjs'; |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
@@ -3,0 +3,0 @@ import { createClientAuthError } from '../error/ClientAuthError.mjs'; |
@@ -1,6 +0,6 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
| 'use strict'; | ||
| var indexNode = require('./index-node-ByMjZ1FK.js'); | ||
| var indexNode = require('./index-node-BtcbvYTx.js'); | ||
@@ -7,0 +7,0 @@ /* |
@@ -1,6 +0,6 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
| 'use strict'; | ||
| var indexNode = require('./index-node-ByMjZ1FK.js'); | ||
| var indexNode = require('./index-node-BtcbvYTx.js'); | ||
@@ -7,0 +7,0 @@ |
+2
-2
@@ -1,6 +0,6 @@ | ||
| /*! @azure/msal-common v16.5.2 2026-04-28 */ | ||
| /*! @azure/msal-common v16.6.0 2026-05-07 */ | ||
| 'use strict'; | ||
| 'use strict'; | ||
| var indexNode = require('./index-node-ByMjZ1FK.js'); | ||
| var indexNode = require('./index-node-BtcbvYTx.js'); | ||
| var indexBrowser = require('./index-browser.cjs'); | ||
@@ -7,0 +7,0 @@ |
| { | ||
| "main": "../lib/index-node.cjs", | ||
| "module": "../dist/index-node.mjs", | ||
| "types": "../lib/types/index-node.d.ts" | ||
| "types": "../types/index-node.d.ts" | ||
| } |
+12
-10
@@ -13,3 +13,3 @@ { | ||
| }, | ||
| "version": "16.5.2", | ||
| "version": "16.6.0", | ||
| "description": "Microsoft Authentication Library for js", | ||
@@ -29,11 +29,11 @@ "keywords": [ | ||
| "module": "./dist/index.mjs", | ||
| "types": "./dist/index.d.ts", | ||
| "types": "./types/index.d.ts", | ||
| "exports": { | ||
| "./browser": { | ||
| "import": { | ||
| "types": "./dist-browser/index-browser.d.ts", | ||
| "types": "./types/index-browser.d.ts", | ||
| "default": "./dist-browser/index-browser.mjs" | ||
| }, | ||
| "require": { | ||
| "types": "./lib/types/index-browser.d.ts", | ||
| "types": "./types/index-browser.d.cts", | ||
| "default": "./lib/index-browser.cjs" | ||
@@ -44,7 +44,7 @@ } | ||
| "import": { | ||
| "types": "./dist/index-node.d.ts", | ||
| "types": "./types/index-node.d.ts", | ||
| "default": "./dist/index-node.mjs" | ||
| }, | ||
| "require": { | ||
| "types": "./lib/types/index-node.d.ts", | ||
| "types": "./types/index-node.d.cts", | ||
| "default": "./lib/index-node.cjs" | ||
@@ -55,7 +55,7 @@ } | ||
| "import": { | ||
| "types": "./dist/index.d.ts", | ||
| "types": "./types/index.d.ts", | ||
| "default": "./dist/index.mjs" | ||
| }, | ||
| "require": { | ||
| "types": "./lib/types/index.d.ts", | ||
| "types": "./types/index.d.cts", | ||
| "default": "./lib/index.cjs" | ||
@@ -75,2 +75,3 @@ } | ||
| "dist-browser", | ||
| "types", | ||
| "lib", | ||
@@ -82,3 +83,3 @@ "src", | ||
| "scripts": { | ||
| "clean": "shx rm -rf dist dist-browser lib", | ||
| "clean": "shx rm -rf dist dist-browser types lib", | ||
| "clean:coverage": "rimraf ../../.nyc_output/*", | ||
@@ -90,3 +91,4 @@ "lint": "eslint src --ext .ts", | ||
| "test:coverage:only": "npm run clean:coverage && npm run test:coverage", | ||
| "build:modules": "rollup -c --strictDeprecations --bundleConfigAsCjs", | ||
| "build:modules": "rollup -c --strictDeprecations --bundleConfigAsCjs && npm run build:types", | ||
| "build:types": "tsc -p tsconfig.build.types.json", | ||
| "build:modules:watch": "rollup -cw --bundleConfigAsCjs", | ||
@@ -93,0 +95,0 @@ "build": "npm run clean && npm run build:modules", |
| /* eslint-disable header/header */ | ||
| export const name = "@azure/msal-common"; | ||
| export const version = "16.5.2"; | ||
| export const version = "16.6.0"; |
| import { TokenClaims } from "./TokenClaims.js"; | ||
| export type DataBoundary = "EU" | "None"; | ||
| /** | ||
| * Account object with the following signature: | ||
| * - homeAccountId - Home account identifier for this account object | ||
| * - environment - Entity which issued the token represented by the domain of the issuer (e.g. login.microsoftonline.com) | ||
| * - tenantId - Full tenant or organizational id that this account belongs to | ||
| * - username - preferred_username claim of the id_token that represents this account | ||
| * - upn - The user's UPN used to populate the account username in cases where preferred_username is not present in the ID token claims. | ||
| * - localAccountId - Local, tenant-specific account identifer for this account object, usually used in legacy cases | ||
| * - name - Full name for the account, including given name and family name | ||
| * - idToken - raw ID token | ||
| * - idTokenClaims - Object contains claims from ID token | ||
| * - nativeAccountId - The user's native account ID | ||
| * - tenantProfiles - Map of tenant profile objects for each tenant that the account has authenticated with in the browser | ||
| * - dataBoundary - Data boundary extracted from clientInfo | ||
| */ | ||
| export type AccountInfo = { | ||
| homeAccountId: string; | ||
| environment: string; | ||
| tenantId: string; | ||
| username: string; | ||
| localAccountId: string; | ||
| loginHint?: string; | ||
| name?: string; | ||
| upn?: string; | ||
| idToken?: string; | ||
| idTokenClaims?: TokenClaims & { | ||
| [key: string]: string | number | string[] | object | undefined | unknown; | ||
| }; | ||
| nativeAccountId?: string; | ||
| authorityType?: string; | ||
| tenantProfiles?: Map<string, TenantProfile>; | ||
| dataBoundary?: DataBoundary; | ||
| }; | ||
| /** | ||
| * Account details that vary across tenants for the same user | ||
| */ | ||
| export type TenantProfile = Pick<AccountInfo, "tenantId" | "localAccountId" | "name" | "username" | "loginHint" | "upn"> & { | ||
| /** | ||
| * - isHomeTenant - True if this is the home tenant profile of the account, false if it's a guest tenant profile | ||
| */ | ||
| isHomeTenant?: boolean; | ||
| }; | ||
| export type ActiveAccountFilters = { | ||
| homeAccountId: string; | ||
| localAccountId: string; | ||
| tenantId?: string; | ||
| }; | ||
| /** | ||
| * Returns true if tenantId matches the utid portion of homeAccountId | ||
| * @param tenantId | ||
| * @param homeAccountId | ||
| * @returns | ||
| */ | ||
| export declare function tenantIdMatchesHomeTenant(tenantId?: string, homeAccountId?: string): boolean; | ||
| /** | ||
| * Build tenant profile | ||
| * @param homeAccountId - Home account identifier for this account object | ||
| * @param localAccountId - Local account identifer for this account object | ||
| * @param tenantId - Full tenant or organizational id that this account belongs to | ||
| * @param idTokenClaims - Claims from the ID token | ||
| * @returns | ||
| */ | ||
| export declare function buildTenantProfile(homeAccountId: string, localAccountId: string, tenantId: string, idTokenClaims?: TokenClaims): TenantProfile; | ||
| /** | ||
| * Replaces account info that varies by tenant profile sourced from the ID token claims passed in with the tenant-specific account info | ||
| * @param baseAccountInfo | ||
| * @param idTokenClaims | ||
| * @returns | ||
| */ | ||
| export declare function updateAccountTenantProfileData(baseAccountInfo: AccountInfo, tenantProfile?: TenantProfile, idTokenClaims?: TokenClaims, idTokenSecret?: string): AccountInfo; | ||
| //# sourceMappingURL=AccountInfo.d.ts.map |
| {"version":3,"file":"AccountInfo.d.ts","sourceRoot":"","sources":["../../src/account/AccountInfo.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,MAAM,CAAC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,WAAW,GAAG;QAC1B,CAAC,GAAG,EAAE,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,EAAE,GACR,MAAM,GACN,SAAS,GACT,OAAO,CAAC;KACjB,CAAC;IACF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAC5C,YAAY,CAAC,EAAE,YAAY,CAAC;CAC/B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,IAAI,CAC5B,WAAW,EACX,UAAU,GAAG,gBAAgB,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,KAAK,CAC5E,GAAG;IACA;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACrC,QAAQ,CAAC,EAAE,MAAM,EACjB,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAMT;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAC9B,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,MAAM,EAChB,aAAa,CAAC,EAAE,WAAW,GAC5B,aAAa,CAuCf;AAED;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAC1C,eAAe,EAAE,WAAW,EAC5B,aAAa,CAAC,EAAE,aAAa,EAC7B,aAAa,CAAC,EAAE,WAAW,EAC3B,aAAa,CAAC,EAAE,MAAM,GACvB,WAAW,CAgCb"} |
| import { TokenClaims } from "./TokenClaims.js"; | ||
| /** | ||
| * Extract token by decoding the rawToken | ||
| * | ||
| * @param encodedToken | ||
| */ | ||
| export declare function extractTokenClaims(encodedToken: string, base64Decode: (input: string) => string): TokenClaims; | ||
| /** | ||
| * Check if the signin_state claim contains "kmsi" | ||
| * @param idTokenClaims | ||
| * @returns | ||
| */ | ||
| export declare function isKmsi(idTokenClaims: TokenClaims): boolean; | ||
| /** | ||
| * decode a JWT | ||
| * | ||
| * @param authToken | ||
| */ | ||
| export declare function getJWSPayload(authToken: string): string; | ||
| /** | ||
| * Determine if the token's max_age has transpired | ||
| */ | ||
| export declare function checkMaxAge(authTime: number, maxAge: number): void; | ||
| //# sourceMappingURL=AuthToken.d.ts.map |
| {"version":3,"file":"AuthToken.d.ts","sourceRoot":"","sources":["../../src/account/AuthToken.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM/C;;;;GAIG;AACH,wBAAgB,kBAAkB,CAC9B,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GACxC,WAAW,CAWb;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,aAAa,EAAE,WAAW,GAAG,OAAO,CAe1D;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAkBvD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAUlE"} |
| export type CcsCredential = { | ||
| credential: string; | ||
| type: CcsCredentialType; | ||
| }; | ||
| export declare const CcsCredentialType: { | ||
| readonly HOME_ACCOUNT_ID: "home_account_id"; | ||
| readonly UPN: "UPN"; | ||
| }; | ||
| export type CcsCredentialType = (typeof CcsCredentialType)[keyof typeof CcsCredentialType]; | ||
| //# sourceMappingURL=CcsCredential.d.ts.map |
| {"version":3,"file":"CcsCredential.d.ts","sourceRoot":"","sources":["../../src/account/CcsCredential.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,aAAa,GAAG;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,iBAAiB,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GACzB,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC"} |
| export type ClientAssertionConfig = { | ||
| clientId: string; | ||
| tokenEndpoint?: string; | ||
| }; | ||
| export type ClientAssertionCallback = (config: ClientAssertionConfig) => Promise<string>; | ||
| /** | ||
| * Client Assertion credential for Confidential Clients | ||
| */ | ||
| export type ClientAssertion = { | ||
| assertion: string | ClientAssertionCallback; | ||
| assertionType: string; | ||
| }; | ||
| /** | ||
| * Client Credentials set for Confidential Clients | ||
| */ | ||
| export type ClientCredentials = { | ||
| clientSecret?: string; | ||
| clientAssertion?: ClientAssertion; | ||
| }; | ||
| //# sourceMappingURL=ClientCredentials.d.ts.map |
| {"version":3,"file":"ClientCredentials.d.ts","sourceRoot":"","sources":["../../src/account/ClientCredentials.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,qBAAqB,GAAG;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAClC,MAAM,EAAE,qBAAqB,KAC5B,OAAO,CAAC,MAAM,CAAC,CAAC;AAErB;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC1B,SAAS,EAAE,MAAM,GAAG,uBAAuB,CAAC;IAC5C,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC,CAAC"} |
| /** | ||
| * Client info object which consists of: | ||
| * uid: user id | ||
| * utid: tenant id | ||
| * xms_tdbr: optional, only for non-US tenants | ||
| */ | ||
| export type ClientInfo = { | ||
| uid: string; | ||
| utid: string; | ||
| xms_tdbr?: string; | ||
| }; | ||
| /** | ||
| * Function to build a client info object from server clientInfo string | ||
| * @param rawClientInfo | ||
| * @param crypto | ||
| */ | ||
| export declare function buildClientInfo(rawClientInfo: string, base64Decode: (input: string) => string): ClientInfo; | ||
| /** | ||
| * Function to build a client info object from cached homeAccountId string | ||
| * @param homeAccountId | ||
| */ | ||
| export declare function buildClientInfoFromHomeAccountId(homeAccountId: string): ClientInfo; | ||
| //# sourceMappingURL=ClientInfo.d.ts.map |
| {"version":3,"file":"ClientInfo.d.ts","sourceRoot":"","sources":["../../src/account/ClientInfo.ts"],"names":[],"mappings":"AAWA;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,eAAe,CAC3B,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GACxC,UAAU,CAaZ;AAED;;;GAGG;AACH,wBAAgB,gCAAgC,CAC5C,aAAa,EAAE,MAAM,GACtB,UAAU,CAcZ"} |
| /** | ||
| * Type which describes Id Token claims known by MSAL. | ||
| */ | ||
| export type TokenClaims = { | ||
| /** | ||
| * Audience | ||
| */ | ||
| aud?: string; | ||
| /** | ||
| * Issuer | ||
| */ | ||
| iss?: string; | ||
| /** | ||
| * Issued at | ||
| */ | ||
| iat?: number; | ||
| /** | ||
| * Not valid before | ||
| */ | ||
| nbf?: number; | ||
| /** | ||
| * Immutable object identifier, this ID uniquely identifies the user across applications | ||
| */ | ||
| oid?: string; | ||
| /** | ||
| * Immutable subject identifier, this is a pairwise identifier - it is unique to a particular application ID | ||
| */ | ||
| sub?: string; | ||
| /** | ||
| * Users' tenant or '9188040d-6c67-4c5b-b112-36a304b66dad' for personal accounts. | ||
| */ | ||
| tid?: string; | ||
| /** | ||
| * Trusted Framework Policy (B2C) The name of the policy that was used to acquire the ID token. | ||
| */ | ||
| tfp?: string; | ||
| /** | ||
| * Authentication Context Class Reference (B2C) Used only with older policies. | ||
| */ | ||
| acr?: string; | ||
| ver?: string; | ||
| upn?: string; | ||
| preferred_username?: string; | ||
| login_hint?: string; | ||
| /** | ||
| * Contains KMSI (Keep Me Signed In) status among other things | ||
| */ | ||
| signin_state?: Array<string>; | ||
| emails?: string[]; | ||
| name?: string; | ||
| nonce?: string; | ||
| /** | ||
| * Expiration | ||
| */ | ||
| exp?: number; | ||
| home_oid?: string; | ||
| sid?: string; | ||
| cloud_instance_host_name?: string; | ||
| cnf?: { | ||
| kid: string; | ||
| }; | ||
| x5c_ca?: string[]; | ||
| ts?: number; | ||
| at?: string; | ||
| u?: string; | ||
| p?: string; | ||
| m?: string; | ||
| roles?: string[]; | ||
| amr?: string[]; | ||
| idp?: string; | ||
| auth_time?: number; | ||
| /** | ||
| * Region of the resource tenant | ||
| */ | ||
| tenant_region_scope?: string; | ||
| tenant_region_sub_scope?: string; | ||
| }; | ||
| /** | ||
| * Gets tenantId from available ID token claims to set as credential realm with the following precedence: | ||
| * 1. tid - if the token is acquired from an Azure AD tenant tid will be present | ||
| * 2. tfp - if the token is acquired from a modern B2C tenant tfp should be present | ||
| * 3. acr - if the token is acquired from a legacy B2C tenant acr should be present | ||
| * Downcased to match the realm case-insensitive comparison requirements | ||
| * @param idTokenClaims | ||
| * @returns | ||
| */ | ||
| export declare function getTenantIdFromIdTokenClaims(idTokenClaims?: TokenClaims): string | null; | ||
| //# sourceMappingURL=TokenClaims.d.ts.map |
| {"version":3,"file":"TokenClaims.d.ts","sourceRoot":"","sources":["../../src/account/TokenClaims.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,GAAG,CAAC,EAAE;QACF,GAAG,EAAE,MAAM,CAAC;KACf,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,uBAAuB,CAAC,EAAE,MAAM,CAAC;CACpC,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,4BAA4B,CACxC,aAAa,CAAC,EAAE,WAAW,GAC5B,MAAM,GAAG,IAAI,CAOf"} |
| import { AuthorityType } from "./AuthorityType.js"; | ||
| import { OpenIdConfigResponse } from "./OpenIdConfigResponse.js"; | ||
| import { IUri } from "../url/IUri.js"; | ||
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { ProtocolMode } from "./ProtocolMode.js"; | ||
| import { ICacheManager } from "../cache/interface/ICacheManager.js"; | ||
| import { AuthorityOptions, StaticAuthorityOptions } from "./AuthorityOptions.js"; | ||
| import { CloudDiscoveryMetadata } from "./CloudDiscoveryMetadata.js"; | ||
| import { RegionDiscoveryMetadata } from "./RegionDiscoveryMetadata.js"; | ||
| import type { AzureCloudOptions } from "../config/ClientConfiguration.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| /** | ||
| * The authority class validates the authority URIs used by the user, and retrieves the OpenID Configuration Data from the | ||
| * endpoint. It will store the pertinent config data in this object for use during token calls. | ||
| * @internal | ||
| */ | ||
| export declare class Authority { | ||
| private _canonicalAuthority; | ||
| private _canonicalAuthorityUrlComponents; | ||
| protected networkInterface: INetworkModule; | ||
| protected cacheManager: ICacheManager; | ||
| private authorityOptions; | ||
| private metadata; | ||
| private regionDiscovery; | ||
| regionDiscoveryMetadata: RegionDiscoveryMetadata; | ||
| private logger; | ||
| protected performanceClient: IPerformanceClient; | ||
| protected correlationId: string; | ||
| private managedIdentity; | ||
| private static reservedTenantDomains; | ||
| constructor(authority: string, networkInterface: INetworkModule, cacheManager: ICacheManager, authorityOptions: AuthorityOptions, logger: Logger, correlationId: string, performanceClient: IPerformanceClient, managedIdentity?: boolean); | ||
| /** | ||
| * Get {@link AuthorityType} | ||
| * @param authorityUri {@link IUri} | ||
| * @private | ||
| */ | ||
| private getAuthorityType; | ||
| get authorityType(): AuthorityType; | ||
| /** | ||
| * ProtocolMode enum representing the way endpoints are constructed. | ||
| */ | ||
| get protocolMode(): ProtocolMode; | ||
| /** | ||
| * Returns authorityOptions which can be used to reinstantiate a new authority instance | ||
| */ | ||
| get options(): AuthorityOptions; | ||
| /** | ||
| * A URL that is the authority set by the developer | ||
| */ | ||
| get canonicalAuthority(): string; | ||
| /** | ||
| * Sets canonical authority. | ||
| */ | ||
| set canonicalAuthority(url: string); | ||
| /** | ||
| * Get authority components. | ||
| */ | ||
| get canonicalAuthorityUrlComponents(): IUri; | ||
| /** | ||
| * Get hostname and port i.e. login.microsoftonline.com | ||
| */ | ||
| get hostnameAndPort(): string; | ||
| /** | ||
| * Get tenant for authority. | ||
| */ | ||
| get tenant(): string; | ||
| /** | ||
| * OAuth /authorize endpoint for requests | ||
| */ | ||
| get authorizationEndpoint(): string; | ||
| /** | ||
| * OAuth /token endpoint for requests | ||
| */ | ||
| get tokenEndpoint(): string; | ||
| get deviceCodeEndpoint(): string; | ||
| /** | ||
| * OAuth logout endpoint for requests | ||
| */ | ||
| get endSessionEndpoint(): string; | ||
| /** | ||
| * OAuth issuer for requests | ||
| */ | ||
| get selfSignedJwtAudience(): string; | ||
| /** | ||
| * Jwks_uri for token signing keys | ||
| */ | ||
| get jwksUri(): string; | ||
| /** | ||
| * Returns a flag indicating that tenant name can be replaced in authority {@link IUri} | ||
| * @param authorityUri {@link IUri} | ||
| * @private | ||
| */ | ||
| private canReplaceTenant; | ||
| /** | ||
| * Replaces tenant in url path with current tenant. Defaults to common. | ||
| * @param urlString | ||
| */ | ||
| private replaceTenant; | ||
| /** | ||
| * Replaces path such as tenant or policy with the current tenant or policy. | ||
| * @param urlString | ||
| */ | ||
| private replacePath; | ||
| /** | ||
| * The default open id configuration endpoint for any canonical authority. | ||
| */ | ||
| protected get defaultOpenIdConfigurationEndpoint(): string; | ||
| /** | ||
| * Boolean that returns whether or not tenant discovery has been completed. | ||
| */ | ||
| discoveryComplete(): boolean; | ||
| /** | ||
| * Perform endpoint discovery to discover aliases, preferred_cache, preferred_network | ||
| * and the /authorize, /token and logout endpoints. | ||
| */ | ||
| resolveEndpointsAsync(): Promise<void>; | ||
| /** | ||
| * Returns metadata entity from cache if it exists, otherwiser returns a new metadata entity built | ||
| * from the configured canonical authority | ||
| * @returns | ||
| */ | ||
| private getCurrentMetadataEntity; | ||
| /** | ||
| * Updates cached metadata based on metadata source and sets the instance's metadata | ||
| * property to the same value | ||
| * @param metadataEntity | ||
| * @param cloudDiscoverySource | ||
| * @param endpointMetadataResult | ||
| */ | ||
| private updateCachedMetadata; | ||
| /** | ||
| * Update AuthorityMetadataEntity with new endpoints and return where the information came from | ||
| * @param metadataEntity | ||
| */ | ||
| private updateEndpointMetadata; | ||
| /** | ||
| * Updates endpoint metadata from local sources and returns where the information was retrieved from and the metadata config | ||
| * response if the source is hardcoded metadata | ||
| * @param metadataEntity | ||
| * @returns | ||
| */ | ||
| private updateEndpointMetadataFromLocalSources; | ||
| /** | ||
| * Compares the number of url components after the domain to determine if the cached | ||
| * authority metadata can be used for the requested authority. Protects against same domain different | ||
| * authority such as login.microsoftonline.com/tenant and login.microsoftonline.com/tfp/tenant/policy | ||
| * @param metadataEntity | ||
| */ | ||
| private isAuthoritySameType; | ||
| /** | ||
| * Parse authorityMetadata config option | ||
| */ | ||
| private getEndpointMetadataFromConfig; | ||
| /** | ||
| * Gets OAuth endpoints from the given OpenID configuration endpoint. | ||
| * | ||
| * @param hasHardcodedMetadata boolean | ||
| */ | ||
| private getEndpointMetadataFromNetwork; | ||
| /** | ||
| * Get OAuth endpoints for common authorities. | ||
| */ | ||
| private getEndpointMetadataFromHardcodedValues; | ||
| /** | ||
| * Update the retrieved metadata with regional information. | ||
| * User selected Azure region will be used if configured. | ||
| */ | ||
| private updateMetadataWithRegionalInformation; | ||
| /** | ||
| * Updates the AuthorityMetadataEntity with new aliases, preferred_network and preferred_cache | ||
| * and returns where the information was retrieved from | ||
| * @param metadataEntity | ||
| * @returns AuthorityMetadataSource | ||
| */ | ||
| private updateCloudDiscoveryMetadata; | ||
| private updateCloudDiscoveryMetadataFromLocalSources; | ||
| /** | ||
| * Parse cloudDiscoveryMetadata config or check knownAuthorities | ||
| */ | ||
| private getCloudDiscoveryMetadataFromConfig; | ||
| /** | ||
| * Called to get metadata from network if CloudDiscoveryMetadata was not populated by config | ||
| * | ||
| * @param hasHardcodedMetadata boolean | ||
| */ | ||
| private getCloudDiscoveryMetadataFromNetwork; | ||
| /** | ||
| * Helper function to determine if this host is included in the knownAuthorities config option | ||
| */ | ||
| private isInKnownAuthorities; | ||
| /** | ||
| * helper function to populate the authority based on azureCloudOptions | ||
| * @param authorityString | ||
| * @param azureCloudOptions | ||
| */ | ||
| static generateAuthority(authorityString: string, azureCloudOptions?: AzureCloudOptions): string; | ||
| /** | ||
| * Creates cloud discovery metadata object from a given host | ||
| * @param host | ||
| */ | ||
| static createCloudDiscoveryMetadataFromHost(host: string): CloudDiscoveryMetadata; | ||
| /** | ||
| * helper function to generate environment from authority object | ||
| */ | ||
| getPreferredCache(): string; | ||
| /** | ||
| * Returns whether or not the provided host is an alias of this authority instance | ||
| * @param host | ||
| */ | ||
| isAlias(host: string): boolean; | ||
| /** | ||
| * Returns whether or not the provided host is an alias of a known Microsoft authority for purposes of endpoint discovery | ||
| * @param host | ||
| */ | ||
| isAliasOfKnownMicrosoftAuthority(host: string): boolean; | ||
| /** | ||
| * Checks whether the provided host is that of a public cloud authority | ||
| * | ||
| * @param authority string | ||
| * @returns bool | ||
| */ | ||
| static isPublicCloudAuthority(host: string): boolean; | ||
| /** | ||
| * Rebuild the authority string with the region | ||
| * | ||
| * @param host string | ||
| * @param region string | ||
| */ | ||
| static buildRegionalAuthorityString(host: string, region: string, queryString?: string): string; | ||
| /** | ||
| * Replace the endpoints in the metadata object with their regional equivalents. | ||
| * | ||
| * @param metadata OpenIdConfigResponse | ||
| * @param azureRegion string | ||
| */ | ||
| static replaceWithRegionalInformation(metadata: OpenIdConfigResponse, azureRegion: string): OpenIdConfigResponse; | ||
| /** | ||
| * Transform CIAM_AUTHORIY as per the below rules: | ||
| * If no path segments found and it is a CIAM authority (hostname ends with .ciamlogin.com), then transform it | ||
| * | ||
| * NOTE: The transformation path should go away once STS supports CIAM with the format: `tenantIdorDomain.ciamlogin.com` | ||
| * `ciamlogin.com` can also change in the future and we should accommodate the same | ||
| * | ||
| * @param authority | ||
| */ | ||
| static transformCIAMAuthority(authority: string): string; | ||
| } | ||
| /** | ||
| * Extract tenantId from authority | ||
| */ | ||
| export declare function getTenantFromAuthorityString(authority: string): string | undefined; | ||
| export declare function formatAuthorityUri(authorityUri: string): string; | ||
| export declare function buildStaticAuthorityOptions(authOptions: Partial<AuthorityOptions>): StaticAuthorityOptions; | ||
| //# sourceMappingURL=Authority.d.ts.map |
| {"version":3,"file":"Authority.d.ts","sourceRoot":"","sources":["../../src/authority/Authority.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mB3D;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CACxC,SAAS,EAAE,MAAM,GAClB,MAAM,GAAG,SAAS,CAsBpB;AAED,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAI/D;AAED,wBAAgB,2BAA2B,CACvC,WAAW,EAAE,OAAO,CAAC,gBAAgB,CAAC,GACvC,sBAAsB,CAoBxB"} |
| import { Authority } from "./Authority.js"; | ||
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { ICacheManager } from "../cache/interface/ICacheManager.js"; | ||
| import { AuthorityOptions } from "./AuthorityOptions.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| /** | ||
| * Create an authority object of the correct type based on the url | ||
| * Performs basic authority validation - checks to see if the authority is of a valid type (i.e. aad, b2c, adfs) | ||
| * | ||
| * Also performs endpoint discovery. | ||
| * | ||
| * @param authorityUri | ||
| * @param networkClient | ||
| * @param cacheManager | ||
| * @param authorityOptions | ||
| * @param logger | ||
| * @param correlationId | ||
| * @param performanceClient | ||
| * @internal | ||
| */ | ||
| export declare function createDiscoveredInstance(authorityUri: string, networkClient: INetworkModule, cacheManager: ICacheManager, authorityOptions: AuthorityOptions, logger: Logger, correlationId: string, performanceClient: IPerformanceClient): Promise<Authority>; | ||
| //# sourceMappingURL=AuthorityFactory.d.ts.map |
| {"version":3,"file":"AuthorityFactory.d.ts","sourceRoot":"","sources":["../../src/authority/AuthorityFactory.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAsB,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAK9D,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAIpF;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,wBAAwB,CAC1C,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,cAAc,EAC7B,YAAY,EAAE,aAAa,EAC3B,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,EACrB,iBAAiB,EAAE,kBAAkB,GACtC,OAAO,CAAC,SAAS,CAAC,CAgCpB"} |
| import { Logger } from "../logger/Logger.js"; | ||
| import { AuthorityMetadataSource } from "../utils/Constants.js"; | ||
| import { StaticAuthorityOptions } from "./AuthorityOptions.js"; | ||
| import { CloudDiscoveryMetadata } from "./CloudDiscoveryMetadata.js"; | ||
| import { CloudInstanceDiscoveryResponse } from "./CloudInstanceDiscoveryResponse.js"; | ||
| import { OpenIdConfigResponse } from "./OpenIdConfigResponse.js"; | ||
| type RawMetadata = { | ||
| endpointMetadata: { | ||
| [key: string]: OpenIdConfigResponse; | ||
| }; | ||
| instanceDiscoveryMetadata: CloudInstanceDiscoveryResponse; | ||
| }; | ||
| export declare const rawMetdataJSON: RawMetadata; | ||
| export declare const EndpointMetadata: { | ||
| [key: string]: OpenIdConfigResponse; | ||
| }; | ||
| export declare const InstanceDiscoveryMetadata: CloudInstanceDiscoveryResponse; | ||
| export declare const InstanceDiscoveryMetadataAliases: Set<String>; | ||
| /** | ||
| * Attempts to get an aliases array from the static authority metadata sources based on the canonical authority host | ||
| * @param staticAuthorityOptions | ||
| * @param logger | ||
| * @returns | ||
| */ | ||
| export declare function getAliasesFromStaticSources(staticAuthorityOptions: StaticAuthorityOptions, logger: Logger, correlationId: string): string[]; | ||
| /** | ||
| * Returns aliases for from the raw cloud discovery metadata passed in | ||
| * @param authorityHost | ||
| * @param rawCloudDiscoveryMetadata | ||
| * @returns | ||
| */ | ||
| export declare function getAliasesFromMetadata(logger: Logger, correlationId: string, authorityHost?: string, cloudDiscoveryMetadata?: CloudDiscoveryMetadata[], source?: AuthorityMetadataSource): string[] | null; | ||
| /** | ||
| * Get cloud discovery metadata for common authorities | ||
| */ | ||
| export declare function getCloudDiscoveryMetadataFromHardcodedValues(authorityHost: string): CloudDiscoveryMetadata | null; | ||
| /** | ||
| * Searches instance discovery network response for the entry that contains the host in the aliases list | ||
| * @param response | ||
| * @param authority | ||
| */ | ||
| export declare function getCloudDiscoveryMetadataFromNetworkResponse(response: CloudDiscoveryMetadata[], authorityHost: string): CloudDiscoveryMetadata | null; | ||
| export {}; | ||
| //# sourceMappingURL=AuthorityMetadata.d.ts.map |
| {"version":3,"file":"AuthorityMetadata.d.ts","sourceRoot":"","sources":["../../src/authority/AuthorityMetadata.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,KAAK,WAAW,GAAG;IACf,gBAAgB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE,CAAC;IAC1D,yBAAyB,EAAE,8BAA8B,CAAC;CAC7D,CAAC;AAkCF,eAAO,MAAM,cAAc,EAAE,WA2D5B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;CAAkC,CAAC;AAChE,eAAO,MAAM,yBAAyB,gCACM,CAAC;AAE7C,eAAO,MAAM,gCAAgC,EAAE,GAAG,CAAC,MAAM,CAAa,CAAC;AASvE;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACvC,sBAAsB,EAAE,sBAAsB,EAC9C,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,GACtB,MAAM,EAAE,CA0BV;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAClC,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,EACrB,aAAa,CAAC,EAAE,MAAM,EACtB,sBAAsB,CAAC,EAAE,sBAAsB,EAAE,EACjD,MAAM,CAAC,EAAE,uBAAuB,GACjC,MAAM,EAAE,GAAG,IAAI,CA0BjB;AAED;;GAEG;AACH,wBAAgB,4CAA4C,CACxD,aAAa,EAAE,MAAM,GACtB,sBAAsB,GAAG,IAAI,CAM/B;AAED;;;;GAIG;AACH,wBAAgB,4CAA4C,CACxD,QAAQ,EAAE,sBAAsB,EAAE,EAClC,aAAa,EAAE,MAAM,GACtB,sBAAsB,GAAG,IAAI,CAS/B"} |
| import { ProtocolMode } from "./ProtocolMode.js"; | ||
| import { OIDCOptions } from "./OIDCOptions.js"; | ||
| import { AzureRegionConfiguration } from "./AzureRegionConfiguration.js"; | ||
| import { CloudInstanceDiscoveryResponse } from "./CloudInstanceDiscoveryResponse.js"; | ||
| export type AuthorityOptions = { | ||
| protocolMode: ProtocolMode; | ||
| OIDCOptions?: OIDCOptions | null; | ||
| knownAuthorities: Array<string>; | ||
| cloudDiscoveryMetadata: string; | ||
| authorityMetadata: string; | ||
| azureRegionConfiguration?: AzureRegionConfiguration; | ||
| authority?: string; | ||
| }; | ||
| export type StaticAuthorityOptions = Partial<Pick<AuthorityOptions, "knownAuthorities">> & { | ||
| canonicalAuthority?: string; | ||
| cloudDiscoveryMetadata?: CloudInstanceDiscoveryResponse; | ||
| }; | ||
| export declare const AzureCloudInstance: { | ||
| readonly None: "none"; | ||
| readonly AzurePublic: "https://login.microsoftonline.com"; | ||
| readonly AzurePpe: "https://login.windows-ppe.net"; | ||
| readonly AzureChina: "https://login.chinacloudapi.cn"; | ||
| readonly AzureGermany: "https://login.microsoftonline.de"; | ||
| readonly AzureUsGovernment: "https://login.microsoftonline.us"; | ||
| }; | ||
| export type AzureCloudInstance = (typeof AzureCloudInstance)[keyof typeof AzureCloudInstance]; | ||
| //# sourceMappingURL=AuthorityOptions.d.ts.map |
| {"version":3,"file":"AuthorityOptions.d.ts","sourceRoot":"","sources":["../../src/authority/AuthorityOptions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,YAAY,EAAE,YAAY,CAAC;IAC3B,WAAW,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACjC,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,OAAO,CACxC,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAC7C,GAAG;IACA,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,sBAAsB,CAAC,EAAE,8BAA8B,CAAC;CAC3D,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;CAkBrB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAC1B,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC"} |
| /** | ||
| * Authority types supported by MSAL. | ||
| */ | ||
| export declare const AuthorityType: { | ||
| readonly Default: 0; | ||
| readonly Adfs: 1; | ||
| readonly Dsts: 2; | ||
| readonly Ciam: 3; | ||
| }; | ||
| export type AuthorityType = (typeof AuthorityType)[keyof typeof AuthorityType]; | ||
| //# sourceMappingURL=AuthorityType.d.ts.map |
| {"version":3,"file":"AuthorityType.d.ts","sourceRoot":"","sources":["../../src/authority/AuthorityType.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC"} |
| export type AzureRegion = string; | ||
| //# sourceMappingURL=AzureRegion.d.ts.map |
| {"version":3,"file":"AzureRegion.d.ts","sourceRoot":"","sources":["../../src/authority/AzureRegion.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC"} |
| import { AzureRegion } from "./AzureRegion.js"; | ||
| export type AzureRegionConfiguration = { | ||
| azureRegion?: AzureRegion; | ||
| environmentRegion: string | undefined; | ||
| }; | ||
| //# sourceMappingURL=AzureRegionConfiguration.d.ts.map |
| {"version":3,"file":"AzureRegionConfiguration.d.ts","sourceRoot":"","sources":["../../src/authority/AzureRegionConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAO/C,MAAM,MAAM,wBAAwB,GAAG;IACnC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC,CAAC"} |
| export type CloudDiscoveryMetadata = { | ||
| preferred_network: string; | ||
| preferred_cache: string; | ||
| aliases: Array<string>; | ||
| }; | ||
| //# sourceMappingURL=CloudDiscoveryMetadata.d.ts.map |
| {"version":3,"file":"CloudDiscoveryMetadata.d.ts","sourceRoot":"","sources":["../../src/authority/CloudDiscoveryMetadata.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,sBAAsB,GAAG;IACjC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B,CAAC"} |
| /** | ||
| * The OpenID Configuration Endpoint Response type. Used by the authority class to get relevant OAuth endpoints. | ||
| */ | ||
| export type CloudInstanceDiscoveryErrorResponse = { | ||
| error: String; | ||
| error_description: String; | ||
| error_codes?: Array<Number>; | ||
| timestamp?: String; | ||
| trace_id?: String; | ||
| correlation_id?: String; | ||
| error_uri?: String; | ||
| }; | ||
| export declare function isCloudInstanceDiscoveryErrorResponse(response: object): boolean; | ||
| //# sourceMappingURL=CloudInstanceDiscoveryErrorResponse.d.ts.map |
| {"version":3,"file":"CloudInstanceDiscoveryErrorResponse.d.ts","sourceRoot":"","sources":["../../src/authority/CloudInstanceDiscoveryErrorResponse.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,qCAAqC,CACjD,QAAQ,EAAE,MAAM,GACjB,OAAO,CAKT"} |
| import { CloudDiscoveryMetadata } from "./CloudDiscoveryMetadata.js"; | ||
| /** | ||
| * The OpenID Configuration Endpoint Response type. Used by the authority class to get relevant OAuth endpoints. | ||
| */ | ||
| export type CloudInstanceDiscoveryResponse = { | ||
| tenant_discovery_endpoint: string; | ||
| metadata: Array<CloudDiscoveryMetadata>; | ||
| }; | ||
| export declare function isCloudInstanceDiscoveryResponse(response: object): boolean; | ||
| //# sourceMappingURL=CloudInstanceDiscoveryResponse.d.ts.map |
| {"version":3,"file":"CloudInstanceDiscoveryResponse.d.ts","sourceRoot":"","sources":["../../src/authority/CloudInstanceDiscoveryResponse.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG;IACzC,yBAAyB,EAAE,MAAM,CAAC;IAClC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;CAC3C,CAAC;AAEF,wBAAgB,gCAAgC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAK1E"} |
| export type ImdsOptions = { | ||
| headers?: { | ||
| Metadata: string; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=ImdsOptions.d.ts.map |
| {"version":3,"file":"ImdsOptions.d.ts","sourceRoot":"","sources":["../../src/authority/ImdsOptions.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,WAAW,GAAG;IACtB,OAAO,CAAC,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC;KACpB,CAAC;CACL,CAAC"} |
| import { ResponseMode } from "../utils/Constants.js"; | ||
| /** | ||
| * Options for the OIDC protocol mode. | ||
| */ | ||
| export type OIDCOptions = { | ||
| responseMode?: ResponseMode; | ||
| defaultScopes?: Array<string>; | ||
| }; | ||
| //# sourceMappingURL=OIDCOptions.d.ts.map |
| {"version":3,"file":"OIDCOptions.d.ts","sourceRoot":"","sources":["../../src/authority/OIDCOptions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACjC,CAAC"} |
| /** | ||
| * Tenant Discovery Response which contains the relevant OAuth endpoints and data needed for authentication and authorization. | ||
| */ | ||
| export type OpenIdConfigResponse = { | ||
| authorization_endpoint: string; | ||
| token_endpoint: string; | ||
| end_session_endpoint?: string; | ||
| issuer: string; | ||
| jwks_uri: string; | ||
| }; | ||
| export declare function isOpenIdConfigResponse(response: object): boolean; | ||
| //# sourceMappingURL=OpenIdConfigResponse.d.ts.map |
| {"version":3,"file":"OpenIdConfigResponse.d.ts","sourceRoot":"","sources":["../../src/authority/OpenIdConfigResponse.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAOhE"} |
| /** | ||
| * Protocol modes supported by MSAL. | ||
| */ | ||
| export declare const ProtocolMode: { | ||
| /** | ||
| * Auth Code + PKCE with Entra ID (formerly AAD) specific optimizations and features | ||
| */ | ||
| readonly AAD: "AAD"; | ||
| /** | ||
| * Auth Code + PKCE without Entra ID specific optimizations and features. For use only with non-Microsoft owned authorities. | ||
| * Support is limited for this mode. | ||
| */ | ||
| readonly OIDC: "OIDC"; | ||
| /** | ||
| * Encrypted Authorize Response (EAR) with Entra ID specific optimizations and features | ||
| */ | ||
| readonly EAR: "EAR"; | ||
| }; | ||
| export type ProtocolMode = (typeof ProtocolMode)[keyof typeof ProtocolMode]; | ||
| //# sourceMappingURL=ProtocolMode.d.ts.map |
| {"version":3,"file":"ProtocolMode.d.ts","sourceRoot":"","sources":["../../src/authority/ProtocolMode.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,YAAY;IACrB;;OAEG;;IAEH;;;OAGG;;IAEH;;OAEG;;CAEG,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"} |
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { RegionDiscoveryMetadata } from "./RegionDiscoveryMetadata.js"; | ||
| import { ImdsOptions } from "./ImdsOptions.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| export declare class RegionDiscovery { | ||
| protected networkInterface: INetworkModule; | ||
| private logger; | ||
| protected performanceClient: IPerformanceClient; | ||
| protected correlationId: string; | ||
| protected static IMDS_OPTIONS: ImdsOptions; | ||
| constructor(networkInterface: INetworkModule, logger: Logger, performanceClient: IPerformanceClient, correlationId: string); | ||
| /** | ||
| * Detect the region from the application's environment. | ||
| * | ||
| * @returns Promise<string | null> | ||
| */ | ||
| detectRegion(environmentRegion: string | undefined, regionDiscoveryMetadata: RegionDiscoveryMetadata): Promise<string | null>; | ||
| /** | ||
| * Make the call to the IMDS endpoint | ||
| * | ||
| * @param imdsEndpointUrl | ||
| * @returns Promise<NetworkResponse<string>> | ||
| */ | ||
| private getRegionFromIMDS; | ||
| /** | ||
| * Get the most recent version of the IMDS endpoint available | ||
| * | ||
| * @returns Promise<string | null> | ||
| */ | ||
| private getCurrentVersion; | ||
| } | ||
| //# sourceMappingURL=RegionDiscovery.d.ts.map |
| {"version":3,"file":"RegionDiscovery.d.ts","sourceRoot":"","sources":["../../src/authority/RegionDiscovery.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAI9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAGpF,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,qBAAa,eAAe;IAExB,SAAS,CAAC,gBAAgB,EAAE,cAAc,CAAC;IAE3C,OAAO,CAAC,MAAM,CAAS;IAEvB,SAAS,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;IAEhD,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC;IAEhC,SAAS,CAAC,MAAM,CAAC,YAAY,EAAE,WAAW,CAIxC;gBAGE,gBAAgB,EAAE,cAAc,EAChC,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,kBAAkB,EACrC,aAAa,EAAE,MAAM;IAQzB;;;;OAIG;IACU,YAAY,CACrB,iBAAiB,EAAE,MAAM,GAAG,SAAS,EACrC,uBAAuB,EAAE,uBAAuB,GACjD,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IA8EzB;;;;;OAKG;YACW,iBAAiB;IAW/B;;;;OAIG;YACW,iBAAiB;CAyBlC"} |
| import { RegionDiscoveryOutcomes, RegionDiscoverySources } from "../utils/Constants.js"; | ||
| export type RegionDiscoveryMetadata = { | ||
| region_used?: string; | ||
| region_source?: RegionDiscoverySources; | ||
| region_outcome?: RegionDiscoveryOutcomes; | ||
| }; | ||
| //# sourceMappingURL=RegionDiscoveryMetadata.d.ts.map |
| {"version":3,"file":"RegionDiscoveryMetadata.d.ts","sourceRoot":"","sources":["../../src/authority/RegionDiscoveryMetadata.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,uBAAuB,EACvB,sBAAsB,EACzB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,uBAAuB,GAAG;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC,cAAc,CAAC,EAAE,uBAAuB,CAAC;CAC5C,CAAC"} |
| /// <reference types="node" resolution-mode="require"/> | ||
| /// <reference types="node" resolution-mode="require"/> | ||
| import { AccountInfo } from "../../account/AccountInfo.js"; | ||
| import { LoggerOptions } from "../../config/ClientConfiguration.js"; | ||
| import { NativeRequest } from "../../request/NativeRequest.js"; | ||
| import { NativeSignOutRequest } from "../../request/NativeSignOutRequest.js"; | ||
| import { AuthenticationResult } from "../../response/AuthenticationResult.js"; | ||
| export interface INativeBrokerPlugin { | ||
| isBrokerAvailable: boolean; | ||
| setLogger(loggerOptions: LoggerOptions): void; | ||
| getAccountById(accountId: string, correlationId: string): Promise<AccountInfo>; | ||
| getAllAccounts(clientId: string, correlationId: string): Promise<AccountInfo[]>; | ||
| acquireTokenSilent(request: NativeRequest): Promise<AuthenticationResult>; | ||
| acquireTokenInteractive(request: NativeRequest, windowHandle?: Buffer): Promise<AuthenticationResult>; | ||
| signOut(request: NativeSignOutRequest): Promise<void>; | ||
| } | ||
| //# sourceMappingURL=INativeBrokerPlugin.d.ts.map |
| {"version":3,"file":"INativeBrokerPlugin.d.ts","sourceRoot":"","sources":["../../../src/broker/nativeBroker/INativeBrokerPlugin.ts"],"names":[],"mappings":";;AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAE9E,MAAM,WAAW,mBAAmB;IAChC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IAC9C,cAAc,CACV,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,WAAW,CAAC,CAAC;IACxB,cAAc,CACV,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAC1B,kBAAkB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAC1E,uBAAuB,CACnB,OAAO,EAAE,aAAa,EACtB,YAAY,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACjC,OAAO,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzD"} |
| import { AccountInfo } from "../account/AccountInfo.js"; | ||
| import { StaticAuthorityOptions } from "../authority/AuthorityOptions.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| import { StoreInCache } from "../request/StoreInCache.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { AccessTokenEntity } from "./entities/AccessTokenEntity.js"; | ||
| import { AccountEntity } from "./entities/AccountEntity.js"; | ||
| import { AppMetadataEntity } from "./entities/AppMetadataEntity.js"; | ||
| import { AuthorityMetadataEntity } from "./entities/AuthorityMetadataEntity.js"; | ||
| import { CacheRecord } from "./entities/CacheRecord.js"; | ||
| import { CredentialEntity } from "./entities/CredentialEntity.js"; | ||
| import { IdTokenEntity } from "./entities/IdTokenEntity.js"; | ||
| import { RefreshTokenEntity } from "./entities/RefreshTokenEntity.js"; | ||
| import { ServerTelemetryEntity } from "./entities/ServerTelemetryEntity.js"; | ||
| import { ThrottlingEntity } from "./entities/ThrottlingEntity.js"; | ||
| import { ICacheManager } from "./interface/ICacheManager.js"; | ||
| import { AccountFilter, AppMetadataCache, AppMetadataFilter, CredentialFilter, TokenKeys, ValidCredentialType } from "./utils/CacheTypes.js"; | ||
| /** | ||
| * Interface class which implement cache storage functions used by MSAL to perform validity checks, and store tokens. | ||
| * @internal | ||
| */ | ||
| export declare abstract class CacheManager implements ICacheManager { | ||
| protected clientId: string; | ||
| protected cryptoImpl: ICrypto; | ||
| private commonLogger; | ||
| private staticAuthorityOptions?; | ||
| protected performanceClient: IPerformanceClient; | ||
| constructor(clientId: string, cryptoImpl: ICrypto, logger: Logger, performanceClient: IPerformanceClient, staticAuthorityOptions?: StaticAuthorityOptions); | ||
| /** | ||
| * fetch the account entity from the platform cache | ||
| * @param accountKey | ||
| */ | ||
| abstract getAccount(accountKey: string, correlationId: string): AccountEntity | null; | ||
| /** | ||
| * set account entity in the platform cache | ||
| * @param account | ||
| * @param correlationId | ||
| */ | ||
| abstract setAccount(account: AccountEntity, correlationId: string, kmsi: boolean, apiId: number): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param idTokenKey | ||
| */ | ||
| abstract getIdTokenCredential(idTokenKey: string, correlationId: string): IdTokenEntity | null; | ||
| /** | ||
| * set idToken entity to the platform cache | ||
| * @param idToken | ||
| * @param correlationId | ||
| */ | ||
| abstract setIdTokenCredential(idToken: IdTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param accessTokenKey | ||
| */ | ||
| abstract getAccessTokenCredential(accessTokenKey: string, correlationId: string): AccessTokenEntity | null; | ||
| /** | ||
| * set accessToken entity to the platform cache | ||
| * @param accessToken | ||
| * @param correlationId | ||
| */ | ||
| abstract setAccessTokenCredential(accessToken: AccessTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param refreshTokenKey | ||
| */ | ||
| abstract getRefreshTokenCredential(refreshTokenKey: string, correlationId: string): RefreshTokenEntity | null; | ||
| /** | ||
| * set refreshToken entity to the platform cache | ||
| * @param refreshToken | ||
| * @param correlationId | ||
| */ | ||
| abstract setRefreshTokenCredential(refreshToken: RefreshTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch appMetadata entity from the platform cache | ||
| * @param appMetadataKey | ||
| * @param correlationId | ||
| */ | ||
| abstract getAppMetadata(appMetadataKey: string, correlationId: string): AppMetadataEntity | null; | ||
| /** | ||
| * set appMetadata entity to the platform cache | ||
| * @param appMetadata | ||
| */ | ||
| abstract setAppMetadata(appMetadata: AppMetadataEntity, correlationId: string): void; | ||
| /** | ||
| * fetch server telemetry entity from the platform cache | ||
| * @param serverTelemetryKey | ||
| * @param correlationId | ||
| */ | ||
| abstract getServerTelemetry(serverTelemetryKey: string, correlationId: string): ServerTelemetryEntity | null; | ||
| /** | ||
| * set server telemetry entity to the platform cache | ||
| * @param serverTelemetryKey | ||
| * @param serverTelemetry | ||
| * @param correlationId | ||
| */ | ||
| abstract setServerTelemetry(serverTelemetryKey: string, serverTelemetry: ServerTelemetryEntity, correlationId: string): void; | ||
| /** | ||
| * fetch cloud discovery metadata entity from the platform cache | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| abstract getAuthorityMetadata(key: string, correlationId: string): AuthorityMetadataEntity | null; | ||
| /** | ||
| * | ||
| */ | ||
| abstract getAuthorityMetadataKeys(): Array<string>; | ||
| /** | ||
| * set cloud discovery metadata entity to the platform cache | ||
| * @param key | ||
| * @param value | ||
| * @param correlationId | ||
| */ | ||
| abstract setAuthorityMetadata(key: string, value: AuthorityMetadataEntity, correlationId: string): void; | ||
| /** | ||
| * fetch throttling entity from the platform cache | ||
| * @param throttlingCacheKey | ||
| * @param correlationId | ||
| */ | ||
| abstract getThrottlingCache(throttlingCacheKey: string, correlationId: string): ThrottlingEntity | null; | ||
| /** | ||
| * set throttling entity to the platform cache | ||
| * @param throttlingCacheKey | ||
| * @param throttlingCache | ||
| */ | ||
| abstract setThrottlingCache(throttlingCacheKey: string, throttlingCache: ThrottlingEntity, correlationId: string): void; | ||
| /** | ||
| * Function to remove an item from cache given its key. | ||
| * @param key | ||
| */ | ||
| abstract removeItem(key: string, correlationId: string): void; | ||
| /** | ||
| * Function which retrieves all current keys from the cache. | ||
| */ | ||
| abstract getKeys(): string[]; | ||
| /** | ||
| * Function which retrieves all account keys from the cache | ||
| */ | ||
| abstract getAccountKeys(): string[]; | ||
| /** | ||
| * Function which retrieves all token keys from the cache | ||
| */ | ||
| abstract getTokenKeys(): TokenKeys; | ||
| /** | ||
| * Returns credential cache key from the entity | ||
| * @param credential | ||
| */ | ||
| abstract generateCredentialKey(credential: CredentialEntity): string; | ||
| /** | ||
| * Returns the account cache key from the account info | ||
| * @param account | ||
| */ | ||
| abstract generateAccountKey(account: AccountInfo): string; | ||
| /** | ||
| * Returns all the accounts in the cache that match the optional filter. If no filter is provided, all accounts are returned. | ||
| * @param accountFilter - (Optional) filter to narrow down the accounts returned | ||
| * @returns Array of AccountInfo objects in cache | ||
| */ | ||
| getAllAccounts(accountFilter: AccountFilter | undefined, correlationId: string): AccountInfo[]; | ||
| /** | ||
| * Gets first tenanted AccountInfo object found based on provided filters | ||
| */ | ||
| getAccountInfoFilteredBy(accountFilter: AccountFilter, correlationId: string): AccountInfo | null; | ||
| /** | ||
| * Returns a single matching | ||
| * @param accountFilter | ||
| * @returns | ||
| */ | ||
| getBaseAccountInfo(accountFilter: AccountFilter, correlationId: string): AccountInfo | null; | ||
| /** | ||
| * Matches filtered account entities with cached ID tokens that match the tenant profile-specific account filters | ||
| * and builds the account info objects from the matching ID token's claims | ||
| * @param cachedAccounts | ||
| * @param accountFilter | ||
| * @returns Array of AccountInfo objects that match account and tenant profile filters | ||
| */ | ||
| private buildTenantProfiles; | ||
| private getTenantedAccountInfoByFilter; | ||
| private getTenantProfilesFromAccountEntity; | ||
| private tenantProfileMatchesFilter; | ||
| private idTokenClaimsMatchTenantProfileFilter; | ||
| /** | ||
| * saves a cache record | ||
| * @param cacheRecord {CacheRecord} | ||
| * @param storeInCache {?StoreInCache} | ||
| * @param correlationId {?string} correlation id | ||
| */ | ||
| saveCacheRecord(cacheRecord: CacheRecord, correlationId: string, kmsi: boolean, apiId: number, storeInCache?: StoreInCache): Promise<void>; | ||
| /** | ||
| * saves access token credential | ||
| * @param credential | ||
| */ | ||
| private saveAccessToken; | ||
| /** | ||
| * Retrieve account entities matching all provided tenant-agnostic filters; if no filter is set, get all account entities in the cache | ||
| * Not checking for casing as keys are all generated in lower case, remember to convert to lower case if object properties are compared | ||
| * @param accountFilter - An object containing Account properties to filter by | ||
| */ | ||
| getAccountsFilteredBy(accountFilter: AccountFilter, correlationId: string): AccountEntity[]; | ||
| /** | ||
| * Returns whether or not the given credential entity matches the filter | ||
| * @param entity | ||
| * @param filter | ||
| * @param correlationId | ||
| * @returns | ||
| */ | ||
| credentialMatchesFilter(entity: ValidCredentialType, filter: CredentialFilter, correlationId: string): boolean; | ||
| /** | ||
| * retrieve appMetadata matching all provided filters; if no filter is set, get all appMetadata | ||
| * @param filter | ||
| * @param correlationId | ||
| */ | ||
| getAppMetadataFilteredBy(filter: AppMetadataFilter, correlationId: string): AppMetadataCache; | ||
| /** | ||
| * retrieve authorityMetadata that contains a matching alias | ||
| * @param host | ||
| * @param correlationId | ||
| */ | ||
| getAuthorityMetadataByAlias(host: string, correlationId: string): AuthorityMetadataEntity | null; | ||
| /** | ||
| * Removes all accounts and related tokens from cache. | ||
| */ | ||
| removeAllAccounts(correlationId: string): void; | ||
| /** | ||
| * Removes the account and related tokens for a given account key | ||
| * @param account | ||
| */ | ||
| removeAccount(account: AccountInfo, correlationId: string): void; | ||
| /** | ||
| * Removes credentials associated with the provided account | ||
| * @param account | ||
| */ | ||
| removeAccountContext(account: AccountInfo, correlationId: string): void; | ||
| /** | ||
| * returns a boolean if the given credential is removed | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| removeAccessToken(key: string, correlationId: string): void; | ||
| /** | ||
| * Removes all app metadata objects from cache. | ||
| */ | ||
| removeAppMetadata(correlationId: string): boolean; | ||
| /** | ||
| * Retrieve IdTokenEntity from cache | ||
| * @param account {AccountInfo} | ||
| * @param tokenKeys {?TokenKeys} | ||
| * @param targetRealm {?string} | ||
| * @param performanceClient {?IPerformanceClient} | ||
| * @param correlationId {?string} | ||
| */ | ||
| getIdToken(account: AccountInfo, correlationId: string, tokenKeys?: TokenKeys, targetRealm?: string): IdTokenEntity | null; | ||
| /** | ||
| * Gets all idTokens matching the given filter | ||
| * @param filter | ||
| * @returns | ||
| */ | ||
| getIdTokensByFilter(filter: CredentialFilter, correlationId: string, tokenKeys?: TokenKeys): Map<string, IdTokenEntity>; | ||
| /** | ||
| * Validate the cache key against filter before retrieving and parsing cache value | ||
| * @param key | ||
| * @param filter | ||
| * @returns | ||
| */ | ||
| idTokenKeyMatchesFilter(inputKey: string, filter: CredentialFilter): boolean; | ||
| /** | ||
| * Removes idToken from the cache | ||
| * @param key | ||
| */ | ||
| removeIdToken(key: string, correlationId: string): void; | ||
| /** | ||
| * Removes refresh token from the cache | ||
| * @param key | ||
| */ | ||
| removeRefreshToken(key: string, correlationId: string): void; | ||
| /** | ||
| * Retrieve AccessTokenEntity from cache | ||
| * @param account {AccountInfo} | ||
| * @param request {BaseAuthRequest} | ||
| * @param tokenKeys {?TokenKeys} | ||
| * @param performanceClient {?IPerformanceClient} | ||
| */ | ||
| getAccessToken(account: AccountInfo, request: BaseAuthRequest, tokenKeys?: TokenKeys, targetRealm?: string): AccessTokenEntity | null; | ||
| /** | ||
| * Validate the cache key against filter before retrieving and parsing cache value | ||
| * @param key | ||
| * @param filter | ||
| * @param keyMustContainAllScopes | ||
| * @returns | ||
| */ | ||
| accessTokenKeyMatchesFilter(inputKey: string, filter: CredentialFilter, keyMustContainAllScopes: boolean): boolean; | ||
| /** | ||
| * Gets all access tokens matching the filter | ||
| * @param filter | ||
| * @returns | ||
| */ | ||
| getAccessTokensByFilter(filter: CredentialFilter, correlationId: string): AccessTokenEntity[]; | ||
| /** | ||
| * Helper to retrieve the appropriate refresh token from cache | ||
| * @param account {AccountInfo} | ||
| * @param familyRT {boolean} | ||
| * @param tokenKeys {?TokenKeys} | ||
| * @param performanceClient {?IPerformanceClient} | ||
| * @param correlationId {?string} | ||
| */ | ||
| getRefreshToken(account: AccountInfo, familyRT: boolean, correlationId: string, tokenKeys?: TokenKeys): RefreshTokenEntity | null; | ||
| /** | ||
| * Validate the cache key against filter before retrieving and parsing cache value | ||
| * @param key | ||
| * @param filter | ||
| */ | ||
| refreshTokenKeyMatchesFilter(inputKey: string, filter: CredentialFilter): boolean; | ||
| /** | ||
| * Retrieve AppMetadataEntity from cache | ||
| */ | ||
| readAppMetadataFromCache(environment: string, correlationId: string): AppMetadataEntity | null; | ||
| /** | ||
| * Return the family_id value associated with FOCI | ||
| * @param environment | ||
| * @param clientId | ||
| */ | ||
| isAppMetadataFOCI(environment: string, correlationId: string): boolean; | ||
| /** | ||
| * helper to match account ids | ||
| * @param value | ||
| * @param homeAccountId | ||
| */ | ||
| private matchHomeAccountId; | ||
| /** | ||
| * helper to match account ids | ||
| * @param entity | ||
| * @param localAccountId | ||
| * @returns | ||
| */ | ||
| private matchLocalAccountIdFromTokenClaims; | ||
| private matchLocalAccountIdFromTenantProfile; | ||
| /** | ||
| * helper to match names | ||
| * @param entity | ||
| * @param name | ||
| * @returns true if the downcased name properties are present and match in the filter and the entity | ||
| */ | ||
| private matchName; | ||
| /** | ||
| * helper to match usernames | ||
| * @param entity | ||
| * @param username | ||
| * @returns | ||
| */ | ||
| private matchUsername; | ||
| /** | ||
| * helper to match loginhints | ||
| * @param entity | ||
| * @param loginHint | ||
| * @returns | ||
| */ | ||
| private matchLoginHintWithTenantProfile; | ||
| /** | ||
| * helper to match assertion | ||
| * @param value | ||
| * @param oboAssertion | ||
| */ | ||
| private matchUserAssertionHash; | ||
| /** | ||
| * helper to match environment | ||
| * @param value | ||
| * @param environment | ||
| */ | ||
| private matchEnvironment; | ||
| /** | ||
| * helper to match credential type | ||
| * @param entity | ||
| * @param credentialType | ||
| */ | ||
| private matchCredentialType; | ||
| /** | ||
| * helper to match client ids | ||
| * @param entity | ||
| * @param clientId | ||
| */ | ||
| private matchClientId; | ||
| /** | ||
| * helper to match family ids | ||
| * @param entity | ||
| * @param familyId | ||
| */ | ||
| private matchFamilyId; | ||
| /** | ||
| * helper to match realm | ||
| * @param entity | ||
| * @param realm | ||
| */ | ||
| private matchRealm; | ||
| /** | ||
| * helper to match nativeAccountId | ||
| * @param entity | ||
| * @param nativeAccountId | ||
| * @returns boolean indicating the match result | ||
| */ | ||
| private matchNativeAccountId; | ||
| /** | ||
| * helper to match loginHint which can be either: | ||
| * 1. login_hint ID token claim | ||
| * 2. username in cached account object | ||
| * 3. upn in ID token claims | ||
| * @param entity | ||
| * @param loginHint | ||
| * @returns | ||
| */ | ||
| private matchLoginHintFromTokenClaims; | ||
| /** | ||
| * Helper to match sid | ||
| * @param entity | ||
| * @param sid | ||
| * @returns true if the sid claim is present and matches the filter | ||
| */ | ||
| private matchSid; | ||
| private matchAuthorityType; | ||
| /** | ||
| * Returns true if the target scopes are a subset of the current entity's scopes, false otherwise. | ||
| * @param entity | ||
| * @param target | ||
| */ | ||
| private matchTarget; | ||
| /** | ||
| * Returns true if the credential's tokenType or Authentication Scheme matches the one in the request, false otherwise | ||
| * @param entity | ||
| * @param tokenType | ||
| */ | ||
| private matchTokenType; | ||
| /** | ||
| * Returns true if the credential's keyId matches the one in the request, false otherwise | ||
| * @param entity | ||
| * @param keyId | ||
| */ | ||
| private matchKeyId; | ||
| /** | ||
| * returns if a given cache entity is of the type appmetadata | ||
| * @param key | ||
| */ | ||
| private isAppMetadata; | ||
| /** | ||
| * returns if a given cache entity is of the type authoritymetadata | ||
| * @param key | ||
| */ | ||
| protected isAuthorityMetadata(key: string): boolean; | ||
| /** | ||
| * returns cache key used for cloud instance metadata | ||
| */ | ||
| generateAuthorityMetadataCacheKey(authority: string): string; | ||
| /** | ||
| * Helper to convert serialized data to object | ||
| * @param obj | ||
| * @param json | ||
| */ | ||
| static toObject<T>(obj: T, json: object): T; | ||
| } | ||
| /** @internal */ | ||
| export declare class DefaultStorageClass extends CacheManager { | ||
| setAccount(): Promise<void>; | ||
| getAccount(): AccountEntity; | ||
| setIdTokenCredential(): Promise<void>; | ||
| getIdTokenCredential(): IdTokenEntity; | ||
| setAccessTokenCredential(): Promise<void>; | ||
| getAccessTokenCredential(): AccessTokenEntity; | ||
| setRefreshTokenCredential(): Promise<void>; | ||
| getRefreshTokenCredential(): RefreshTokenEntity; | ||
| setAppMetadata(): void; | ||
| getAppMetadata(): AppMetadataEntity; | ||
| setServerTelemetry(): void; | ||
| getServerTelemetry(): ServerTelemetryEntity; | ||
| setAuthorityMetadata(): void; | ||
| getAuthorityMetadata(): AuthorityMetadataEntity | null; | ||
| getAuthorityMetadataKeys(): Array<string>; | ||
| setThrottlingCache(): void; | ||
| getThrottlingCache(): ThrottlingEntity; | ||
| removeItem(): boolean; | ||
| getKeys(): string[]; | ||
| getAccountKeys(): string[]; | ||
| getTokenKeys(): TokenKeys; | ||
| generateCredentialKey(): string; | ||
| generateAccountKey(): string; | ||
| } | ||
| //# sourceMappingURL=CacheManager.d.ts.map |
| {"version":3,"file":"CacheManager.d.ts","sourceRoot":"","sources":["../../src/cache/CacheManager.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,WAAW,EAGd,MAAM,2BAA2B,CAAC;AAInC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAO/C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,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iB;IAGnC,kBAAkB,IAAI,IAAI;IAG1B,kBAAkB,IAAI,qBAAqB;IAG3C,oBAAoB,IAAI,IAAI;IAG5B,oBAAoB,IAAI,uBAAuB,GAAG,IAAI;IAGtD,wBAAwB,IAAI,KAAK,CAAC,MAAM,CAAC;IAGzC,kBAAkB,IAAI,IAAI;IAG1B,kBAAkB,IAAI,gBAAgB;IAGtC,UAAU,IAAI,OAAO;IAGrB,OAAO,IAAI,MAAM,EAAE;IAGnB,cAAc,IAAI,MAAM,EAAE;IAG1B,YAAY,IAAI,SAAS;IAGzB,qBAAqB,IAAI,MAAM;IAG/B,kBAAkB,IAAI,MAAM;CAG/B"} |
| import { CredentialEntity } from "./CredentialEntity.js"; | ||
| import { AuthenticationScheme } from "../../utils/Constants.js"; | ||
| /** | ||
| * Access token cache type | ||
| */ | ||
| export type AccessTokenEntity = CredentialEntity & { | ||
| /** Full tenant or organizational identifier that the account belongs to */ | ||
| realm: string; | ||
| /** Permissions that are included in the token, or for refresh tokens, the resource identifier. */ | ||
| target: string; | ||
| /** Absolute device time when entry was created in the cache. */ | ||
| cachedAt: string; | ||
| /** Token expiry time, calculated based on current UTC time in seconds. Represented as a string. */ | ||
| expiresOn: string; | ||
| /** Additional extended expiry time until when token is valid in case of server-side outage. Represented as string in UTC seconds. */ | ||
| extendedExpiresOn?: string; | ||
| /** Used for proactive refresh */ | ||
| refreshOn?: string; | ||
| /** Matches the authentication scheme for which the token was issued (i.e. Bearer or pop) */ | ||
| tokenType?: AuthenticationScheme; | ||
| /** Matches the resource passed into the request for MCP flows */ | ||
| resource?: string; | ||
| }; | ||
| //# sourceMappingURL=AccessTokenEntity.d.ts.map |
| {"version":3,"file":"AccessTokenEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/AccessTokenEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,GAAG;IAC/C,2EAA2E;IAC3E,KAAK,EAAE,MAAM,CAAC;IACd,kGAAkG;IAClG,MAAM,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,QAAQ,EAAE,MAAM,CAAC;IACjB,mGAAmG;IACnG,SAAS,EAAE,MAAM,CAAC;IAClB,qIAAqI;IACrI,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4FAA4F;IAC5F,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"} |
| import { TenantProfile, DataBoundary } from "../../account/AccountInfo.js"; | ||
| /** | ||
| * Type that defines required and optional parameters for an Account field (based on universal cache schema implemented by all MSALs). | ||
| * | ||
| * Key : Value Schema | ||
| * | ||
| * Key: <home_account_id>-<environment>-<realm*> | ||
| * | ||
| * Value Schema: | ||
| * { | ||
| * homeAccountId: home account identifier for the auth scheme, | ||
| * environment: entity that issued the token, represented as a full host | ||
| * realm: Full tenant or organizational identifier that the account belongs to | ||
| * localAccountId: Original tenant-specific accountID, usually used for legacy cases | ||
| * username: primary username that represents the user, usually corresponds to preferred_username in the v2 endpt | ||
| * authorityType: Accounts authority type as a string | ||
| * name: Full name for the account, including given name and family name, | ||
| * lastModificationTime: last time this entity was modified in the cache | ||
| * lastModificationApp: | ||
| * nativeAccountId: Account identifier on the native device | ||
| * tenantProfiles: Array of tenant profile objects for each tenant that the account has authenticated with in the browser | ||
| * } | ||
| * @internal | ||
| */ | ||
| export type AccountEntity = { | ||
| homeAccountId: string; | ||
| environment: string; | ||
| realm: string; | ||
| localAccountId: string; | ||
| username: string; | ||
| authorityType: string; | ||
| loginHint?: string; | ||
| clientInfo?: string; | ||
| name?: string; | ||
| lastModificationTime?: string; | ||
| lastModificationApp?: string; | ||
| cloudGraphHostName?: string; | ||
| msGraphHost?: string; | ||
| nativeAccountId?: string; | ||
| tenantProfiles?: Array<TenantProfile>; | ||
| /** Timestamp when the entry was last updated */ | ||
| lastUpdatedAt: string; | ||
| dataBoundary?: DataBoundary; | ||
| /** API identifier for telemetry to indicate which API cached this account */ | ||
| cachedByApiId?: number; | ||
| }; | ||
| //# sourceMappingURL=AccountEntity.d.ts.map |
| {"version":3,"file":"AccountEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/AccountEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,aAAa,GAAG;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IACtC,gDAAgD;IAChD,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,6EAA6E;IAC7E,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC"} |
| /** | ||
| * App Metadata Cache Type | ||
| */ | ||
| export type AppMetadataEntity = { | ||
| /** clientId of the application */ | ||
| clientId: string; | ||
| /** entity that issued the token, represented as a full host */ | ||
| environment: string; | ||
| /** Family identifier, '1' represents Microsoft Family */ | ||
| familyId?: string; | ||
| }; | ||
| //# sourceMappingURL=AppMetadataEntity.d.ts.map |
| {"version":3,"file":"AppMetadataEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/AppMetadataEntity.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,kCAAkC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,+DAA+D;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"} |
| /** @internal */ | ||
| export type AuthorityMetadataEntity = { | ||
| aliases: Array<string>; | ||
| preferred_cache: string; | ||
| preferred_network: string; | ||
| canonical_authority: string; | ||
| authorization_endpoint: string; | ||
| token_endpoint: string; | ||
| end_session_endpoint?: string; | ||
| issuer: string; | ||
| aliasesFromNetwork: boolean; | ||
| endpointsFromNetwork: boolean; | ||
| expiresAt: number; | ||
| jwks_uri: string; | ||
| }; | ||
| //# sourceMappingURL=AuthorityMetadataEntity.d.ts.map |
| {"version":3,"file":"AuthorityMetadataEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/AuthorityMetadataEntity.ts"],"names":[],"mappings":"AAKA,gBAAgB;AAChB,MAAM,MAAM,uBAAuB,GAAG;IAClC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,OAAO,CAAC;IAC5B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"} |
| import { IdTokenEntity } from "./IdTokenEntity.js"; | ||
| import { AccessTokenEntity } from "./AccessTokenEntity.js"; | ||
| import { RefreshTokenEntity } from "./RefreshTokenEntity.js"; | ||
| import { AccountEntity } from "./AccountEntity.js"; | ||
| import { AppMetadataEntity } from "./AppMetadataEntity.js"; | ||
| /** @internal */ | ||
| export type CacheRecord = { | ||
| account?: AccountEntity | null; | ||
| idToken?: IdTokenEntity | null; | ||
| accessToken?: AccessTokenEntity | null; | ||
| refreshToken?: RefreshTokenEntity | null; | ||
| appMetadata?: AppMetadataEntity | null; | ||
| }; | ||
| //# sourceMappingURL=CacheRecord.d.ts.map |
| {"version":3,"file":"CacheRecord.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/CacheRecord.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,gBAAgB;AAChB,MAAM,MAAM,WAAW,GAAG;IACtB,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAC/B,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAC/B,WAAW,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACvC,YAAY,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACzC,WAAW,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;CAC1C,CAAC"} |
| import { CredentialType, AuthenticationScheme } from "../../utils/Constants.js"; | ||
| /** | ||
| * Credential Cache Type | ||
| */ | ||
| export type CredentialEntity = { | ||
| /** Identifier for the user in their home tenant*/ | ||
| homeAccountId: string; | ||
| /** Entity that issued the token, represented as a full host */ | ||
| environment: string; | ||
| /** Type of credential */ | ||
| credentialType: CredentialType; | ||
| /** Client ID of the application */ | ||
| clientId: string; | ||
| /** Actual credential as a string */ | ||
| secret: string; | ||
| /** Family ID identifier, usually only used for refresh tokens */ | ||
| familyId?: string; | ||
| /** Full tenant or organizational identifier that the account belongs to */ | ||
| realm?: string; | ||
| /** Permissions that are included in the token, or for refresh tokens, the resource identifier. */ | ||
| target?: string; | ||
| /** Matches the SHA 256 hash of the obo_assertion for the OBO flow */ | ||
| userAssertionHash?: string; | ||
| /** Matches the authentication scheme for which the token was issued (i.e. Bearer or pop) */ | ||
| tokenType?: AuthenticationScheme; | ||
| /** KeyId for PoP and SSH tokens stored in the kid claim */ | ||
| keyId?: string; | ||
| /** Timestamp when the entry was last updated */ | ||
| lastUpdatedAt: string; | ||
| }; | ||
| //# sourceMappingURL=CredentialEntity.d.ts.map |
| {"version":3,"file":"CredentialEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/CredentialEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC3B,kDAAkD;IAClD,aAAa,EAAE,MAAM,CAAC;IACtB,+DAA+D;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB,yBAAyB;IACzB,cAAc,EAAE,cAAc,CAAC;IAC/B,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,oCAAoC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kGAAkG;IAClG,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,4FAA4F;IAC5F,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC"} |
| import { CredentialEntity } from "./CredentialEntity.js"; | ||
| /** | ||
| * Id Token Cache Type | ||
| */ | ||
| export type IdTokenEntity = CredentialEntity & { | ||
| /** Full tenant or organizational identifier that the account belongs to */ | ||
| realm: string; | ||
| }; | ||
| //# sourceMappingURL=IdTokenEntity.d.ts.map |
| {"version":3,"file":"IdTokenEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/IdTokenEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,gBAAgB,GAAG;IAC3C,4EAA4E;IAC5E,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC"} |
| import { CredentialEntity } from "./CredentialEntity.js"; | ||
| /** | ||
| * Refresh Token Cache Type | ||
| */ | ||
| export type RefreshTokenEntity = CredentialEntity & { | ||
| expiresOn?: string; | ||
| }; | ||
| //# sourceMappingURL=RefreshTokenEntity.d.ts.map |
| {"version":3,"file":"RefreshTokenEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/RefreshTokenEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"} |
| export type ServerTelemetryEntity = { | ||
| failedRequests: Array<string | number>; | ||
| errors: string[]; | ||
| cacheHits: number; | ||
| nativeBrokerErrorCode?: string; | ||
| }; | ||
| //# sourceMappingURL=ServerTelemetryEntity.d.ts.map |
| {"version":3,"file":"ServerTelemetryEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/ServerTelemetryEntity.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,qBAAqB,GAAG;IAChC,cAAc,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACvC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAClC,CAAC"} |
| export type ThrottlingEntity = { | ||
| throttleTime: number; | ||
| error?: string; | ||
| errorCodes?: Array<string>; | ||
| errorMessage?: string; | ||
| subError?: string; | ||
| }; | ||
| //# sourceMappingURL=ThrottlingEntity.d.ts.map |
| {"version":3,"file":"ThrottlingEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/ThrottlingEntity.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,gBAAgB,GAAG;IAE3B,YAAY,EAAE,MAAM,CAAC;IAErB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"} |
| import { AccountFilter } from "../utils/CacheTypes.js"; | ||
| import { CacheRecord } from "../entities/CacheRecord.js"; | ||
| import { AccountEntity } from "../entities/AccountEntity.js"; | ||
| import { AccountInfo } from "../../account/AccountInfo.js"; | ||
| import { AppMetadataEntity } from "../entities/AppMetadataEntity.js"; | ||
| import { ServerTelemetryEntity } from "../entities/ServerTelemetryEntity.js"; | ||
| import { ThrottlingEntity } from "../entities/ThrottlingEntity.js"; | ||
| import { IdTokenEntity } from "../entities/IdTokenEntity.js"; | ||
| import { AccessTokenEntity } from "../entities/AccessTokenEntity.js"; | ||
| import { RefreshTokenEntity } from "../entities/RefreshTokenEntity.js"; | ||
| import { AuthorityMetadataEntity } from "../entities/AuthorityMetadataEntity.js"; | ||
| import { StoreInCache } from "../../request/StoreInCache.js"; | ||
| export interface ICacheManager { | ||
| /** | ||
| * fetch the account entity from the platform cache | ||
| * @param accountKey | ||
| * @param correlationId | ||
| */ | ||
| getAccount(accountKey: string, correlationId: string): AccountEntity | null; | ||
| /** | ||
| * set account entity in the platform cache | ||
| * @param account | ||
| * @param correlationId | ||
| */ | ||
| setAccount(account: AccountEntity, correlationId: string, kmsi: boolean, apiId: number): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param idTokenKey | ||
| * @param correlationId | ||
| */ | ||
| getIdTokenCredential(idTokenKey: string, correlationId: string): IdTokenEntity | null; | ||
| /** | ||
| * set idToken entity to the platform cache | ||
| * @param idToken | ||
| * @param correlationId | ||
| */ | ||
| setIdTokenCredential(idToken: IdTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param accessTokenKey | ||
| * @param correlationId | ||
| */ | ||
| getAccessTokenCredential(accessTokenKey: string, correlationId: string): AccessTokenEntity | null; | ||
| /** | ||
| * set idToken entity to the platform cache | ||
| * @param accessToken | ||
| * @param correlationId | ||
| */ | ||
| setAccessTokenCredential(accessToken: AccessTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param refreshTokenKey | ||
| * @param correlationId | ||
| */ | ||
| getRefreshTokenCredential(refreshTokenKey: string, correlationId: string): RefreshTokenEntity | null; | ||
| /** | ||
| * set idToken entity to the platform cache | ||
| * @param refreshToken | ||
| * @param correlationId | ||
| */ | ||
| setRefreshTokenCredential(refreshToken: RefreshTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch appMetadata entity from the platform cache | ||
| * @param appMetadataKey | ||
| * @param correlationId | ||
| */ | ||
| getAppMetadata(appMetadataKey: string, correlationId: string): AppMetadataEntity | null; | ||
| /** | ||
| * set appMetadata entity to the platform cache | ||
| * @param appMetadata | ||
| * @param correlationId | ||
| */ | ||
| setAppMetadata(appMetadata: AppMetadataEntity, correlationId: string): void; | ||
| /** | ||
| * fetch server telemetry entity from the platform cache | ||
| * @param serverTelemetryKey | ||
| * @param correlationId | ||
| */ | ||
| getServerTelemetry(serverTelemetryKey: string, correlationId: string): ServerTelemetryEntity | null; | ||
| /** | ||
| * set server telemetry entity to the platform cache | ||
| * @param serverTelemetryKey | ||
| * @param serverTelemetry | ||
| * @param correlationId | ||
| */ | ||
| setServerTelemetry(serverTelemetryKey: string, serverTelemetry: ServerTelemetryEntity, correlationId: string): void; | ||
| /** | ||
| * fetch cloud discovery metadata entity from the platform cache | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| getAuthorityMetadata(key: string, correlationId: string): AuthorityMetadataEntity | null; | ||
| /** | ||
| * Get cache keys for authority metadata | ||
| * @param correlationId | ||
| */ | ||
| getAuthorityMetadataKeys(correlationId: string): Array<string>; | ||
| /** | ||
| * set cloud discovery metadata entity to the platform cache | ||
| * @param key | ||
| * @param value | ||
| * @param correlationId | ||
| */ | ||
| setAuthorityMetadata(key: string, value: AuthorityMetadataEntity, correlationId: string): void; | ||
| /** | ||
| * Provide an alias to find a matching AuthorityMetadataEntity in cache | ||
| * @param host | ||
| * @param correlationId | ||
| */ | ||
| getAuthorityMetadataByAlias(host: string, correlationId: string): AuthorityMetadataEntity | null; | ||
| /** | ||
| * given an authority generates the cache key for authorityMetadata | ||
| * @param authority | ||
| * @param correlationId | ||
| */ | ||
| generateAuthorityMetadataCacheKey(authority: string, correlationId: string): string; | ||
| /** | ||
| * fetch throttling entity from the platform cache | ||
| * @param throttlingCacheKey | ||
| * @param correlationId | ||
| */ | ||
| getThrottlingCache(throttlingCacheKey: string, correlationId: string): ThrottlingEntity | null; | ||
| /** | ||
| * set throttling entity to the platform cache | ||
| * @param throttlingCacheKey | ||
| * @param throttlingCache | ||
| * @param correlationId | ||
| */ | ||
| setThrottlingCache(throttlingCacheKey: string, throttlingCache: ThrottlingEntity, correlationId: string): void; | ||
| /** | ||
| * Returns all accounts in cache | ||
| * @param filter | ||
| * @param correlationId | ||
| */ | ||
| getAllAccounts(filter: AccountFilter, correlationId: string): AccountInfo[]; | ||
| /** | ||
| * saves a cache record | ||
| * @param cacheRecord | ||
| * @param correlationId | ||
| * @param storeInCache | ||
| */ | ||
| saveCacheRecord(cacheRecord: CacheRecord, correlationId: string, kmsi: boolean, apiId: number, storeInCache?: StoreInCache): Promise<void>; | ||
| /** | ||
| * retrieve accounts matching all provided filters; if no filter is set, get all accounts | ||
| * @param filter | ||
| * @param correlationId | ||
| */ | ||
| getAccountsFilteredBy(filter: AccountFilter, correlationId: string): AccountEntity[]; | ||
| /** | ||
| * Get AccountInfo object based on provided filters | ||
| * @param filter | ||
| * @param correlationId | ||
| */ | ||
| getAccountInfoFilteredBy(filter: AccountFilter, correlationId: string): AccountInfo | null; | ||
| /** | ||
| * Removes all accounts and related tokens from cache. | ||
| * @param correlationId | ||
| */ | ||
| removeAllAccounts(correlationId: string): void; | ||
| /** | ||
| * returns a boolean if the given account is removed | ||
| * @param account | ||
| * @param correlationId | ||
| */ | ||
| removeAccount(account: AccountInfo, correlationId: string): void; | ||
| /** | ||
| * returns a boolean if the given account is removed | ||
| * @param account | ||
| * @param correlationId | ||
| */ | ||
| removeAccountContext(account: AccountInfo, correlationId: string): void; | ||
| /** | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| removeIdToken(key: string, correlationId: string): void; | ||
| /** | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| removeAccessToken(key: string, correlationId: string): void; | ||
| /** | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| removeRefreshToken(key: string, correlationId: string): void; | ||
| } | ||
| //# sourceMappingURL=ICacheManager.d.ts.map |
| {"version":3,"file":"ICacheManager.d.ts","sourceRoot":"","sources":["../../../src/cache/interface/ICacheManager.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,WAAW,EAA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a,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5D;;;OAGG;IACH,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAChE"} |
| import { TokenCacheContext } from "../persistence/TokenCacheContext.js"; | ||
| export interface ICachePlugin { | ||
| beforeCacheAccess: (tokenCacheContext: TokenCacheContext) => Promise<void>; | ||
| afterCacheAccess: (tokenCacheContext: TokenCacheContext) => Promise<void>; | ||
| } | ||
| //# sourceMappingURL=ICachePlugin.d.ts.map |
| {"version":3,"file":"ICachePlugin.d.ts","sourceRoot":"","sources":["../../../src/cache/interface/ICachePlugin.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,MAAM,WAAW,YAAY;IACzB,iBAAiB,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3E,gBAAgB,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7E"} |
| export interface ISerializableTokenCache { | ||
| deserialize: (cache: string) => void; | ||
| serialize: () => string; | ||
| } | ||
| //# sourceMappingURL=ISerializableTokenCache.d.ts.map |
| {"version":3,"file":"ISerializableTokenCache.d.ts","sourceRoot":"","sources":["../../../src/cache/interface/ISerializableTokenCache.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,uBAAuB;IACpC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,SAAS,EAAE,MAAM,MAAM,CAAC;CAC3B"} |
| import { ISerializableTokenCache } from "../interface/ISerializableTokenCache.js"; | ||
| /** | ||
| * This class instance helps track the memory changes facilitating | ||
| * decisions to read from and write to the persistent cache | ||
| */ export declare class TokenCacheContext { | ||
| /** | ||
| * boolean indicating cache change | ||
| */ | ||
| hasChanged: boolean; | ||
| /** | ||
| * serializable token cache interface | ||
| */ | ||
| cache: ISerializableTokenCache; | ||
| constructor(tokenCache: ISerializableTokenCache, hasChanged: boolean); | ||
| /** | ||
| * boolean which indicates the changes in cache | ||
| */ | ||
| get cacheHasChanged(): boolean; | ||
| /** | ||
| * function to retrieve the token cache | ||
| */ | ||
| get tokenCache(): ISerializableTokenCache; | ||
| } | ||
| //# sourceMappingURL=TokenCacheContext.d.ts.map |
| {"version":3,"file":"TokenCacheContext.d.ts","sourceRoot":"","sources":["../../../src/cache/persistence/TokenCacheContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAElF;;;GAGG,CAAC,qBAAa,iBAAiB;IAC9B;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,uBAAuB,CAAC;gBAEnB,UAAU,EAAE,uBAAuB,EAAE,UAAU,EAAE,OAAO;IAKpE;;OAEG;IACH,IAAI,eAAe,IAAI,OAAO,CAE7B;IAED;;OAEG;IACH,IAAI,UAAU,IAAI,uBAAuB,CAExC;CACJ"} |
| import { Authority } from "../../authority/Authority.js"; | ||
| import { ICrypto } from "../../crypto/ICrypto.js"; | ||
| import { AccountInfo, TenantProfile } from "../../account/AccountInfo.js"; | ||
| import { AuthorityType } from "../../authority/AuthorityType.js"; | ||
| import { Logger } from "../../logger/Logger.js"; | ||
| import { TokenClaims } from "../../account/TokenClaims.js"; | ||
| import { AccountEntity } from "../entities/AccountEntity.js"; | ||
| /** | ||
| * Generate Account Id key component as per the schema: <home_account_id>-<environment> | ||
| */ | ||
| export declare function generateAccountId(accountEntity: AccountEntity): string; | ||
| /** | ||
| * Returns the AccountInfo interface for this account. | ||
| */ | ||
| export declare function getAccountInfo(accountEntity: AccountEntity): AccountInfo; | ||
| /** | ||
| * Returns true if the account entity is in single tenant format (outdated), false otherwise | ||
| */ | ||
| export declare function isSingleTenant(accountEntity: AccountEntity): boolean; | ||
| /** | ||
| * Build Account cache from IdToken, clientInfo and authority/policy. Associated with AAD. | ||
| * @param accountDetails | ||
| */ | ||
| export declare function createAccountEntity(accountDetails: { | ||
| homeAccountId: string; | ||
| idTokenClaims?: TokenClaims; | ||
| clientInfo?: string; | ||
| cloudGraphHostName?: string; | ||
| msGraphHost?: string; | ||
| environment?: string; | ||
| nativeAccountId?: string; | ||
| tenantProfiles?: Array<TenantProfile>; | ||
| }, authority: Authority, base64Decode?: (input: string) => string): AccountEntity; | ||
| /** | ||
| * Creates an AccountEntity object from AccountInfo | ||
| * @param accountInfo | ||
| * @param cloudGraphHostName | ||
| * @param msGraphHost | ||
| * @returns | ||
| */ | ||
| export declare function createAccountEntityFromAccountInfo(accountInfo: AccountInfo, cloudGraphHostName?: string, msGraphHost?: string): AccountEntity; | ||
| /** | ||
| * Generate HomeAccountId from server response | ||
| * @param serverClientInfo | ||
| * @param authType | ||
| */ | ||
| export declare function generateHomeAccountId(serverClientInfo: string, authType: AuthorityType, logger: Logger, cryptoObj: ICrypto, correlationId: string, idTokenClaims?: TokenClaims): string; | ||
| /** | ||
| * Validates an entity: checks for all expected params | ||
| * @param entity | ||
| */ | ||
| export declare function isAccountEntity(entity: object): entity is AccountEntity; | ||
| //# sourceMappingURL=AccountEntityUtils.d.ts.map |
| {"version":3,"file":"AccountEntityUtils.d.ts","sourceRoot":"","sources":["../../../src/cache/utils/AccountEntityUtils.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,OAAO,EACH,WAAW,EACX,aAAa,EAGhB,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EACH,WAAW,EAEd,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAMtE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,aAAa,EAAE,aAAa,GAAG,WAAW,CAkCxE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,aAAa,EAAE,aAAa,GAAG,OAAO,CAEpE;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAC/B,cAAc,EAAE;IACZ,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,WAAW,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CACzC,EACD,SAAS,EAAE,SAAS,EACpB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GACzC,aAAa,CAuFf;AAED;;;;;;GAMG;AACH,wBAAgB,kCAAkC,CAC9C,WAAW,EAAE,WAAW,EACxB,kBAAkB,CAAC,EAAE,MAAM,EAC3B,WAAW,CAAC,EAAE,MAAM,GACrB,aAAa,CAoCf;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACjC,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,aAAa,EACvB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,OAAO,EAClB,aAAa,EAAE,MAAM,EACrB,aAAa,CAAC,EAAE,WAAW,GAC5B,MAAM,CAoBR;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,aAAa,CAavE"} |
| import { CloudDiscoveryMetadata } from "../../authority/CloudDiscoveryMetadata.js"; | ||
| import { OpenIdConfigResponse } from "../../authority/OpenIdConfigResponse.js"; | ||
| import * as Constants from "../../utils/Constants.js"; | ||
| import { AccessTokenEntity } from "../entities/AccessTokenEntity.js"; | ||
| import { AppMetadataEntity } from "../entities/AppMetadataEntity.js"; | ||
| import { AuthorityMetadataEntity } from "../entities/AuthorityMetadataEntity.js"; | ||
| import { CredentialEntity } from "../entities/CredentialEntity.js"; | ||
| import { IdTokenEntity } from "../entities/IdTokenEntity.js"; | ||
| import { RefreshTokenEntity } from "../entities/RefreshTokenEntity.js"; | ||
| /** | ||
| * Create IdTokenEntity | ||
| * @param homeAccountId | ||
| * @param authenticationResult | ||
| * @param clientId | ||
| * @param authority | ||
| */ | ||
| export declare function createIdTokenEntity(homeAccountId: string, environment: string, idToken: string, clientId: string, tenantId: string): IdTokenEntity; | ||
| /** | ||
| * Create AccessTokenEntity | ||
| * @param homeAccountId | ||
| * @param environment | ||
| * @param accessToken | ||
| * @param clientId | ||
| * @param tenantId | ||
| * @param scopes | ||
| * @param expiresOn | ||
| * @param extExpiresOn | ||
| */ | ||
| export declare function createAccessTokenEntity(homeAccountId: string, environment: string, accessToken: string, clientId: string, tenantId: string, scopes: string, expiresOn: number, extExpiresOn: number, base64Decode: (input: string) => string, refreshOn?: number, tokenType?: Constants.AuthenticationScheme, userAssertionHash?: string, keyId?: string): AccessTokenEntity; | ||
| /** | ||
| * Create RefreshTokenEntity | ||
| * @param homeAccountId | ||
| * @param authenticationResult | ||
| * @param clientId | ||
| * @param authority | ||
| */ | ||
| export declare function createRefreshTokenEntity(homeAccountId: string, environment: string, refreshToken: string, clientId: string, familyId?: string, userAssertionHash?: string, expiresOn?: number): RefreshTokenEntity; | ||
| export declare function isCredentialEntity(entity: object): entity is CredentialEntity; | ||
| /** | ||
| * Validates an entity: checks for all expected params | ||
| * @param entity | ||
| */ | ||
| export declare function isAccessTokenEntity(entity: object): entity is AccessTokenEntity; | ||
| /** | ||
| * Validates an entity: checks for all expected params | ||
| * @param entity | ||
| */ | ||
| export declare function isIdTokenEntity(entity: object): entity is IdTokenEntity; | ||
| /** | ||
| * Validates an entity: checks for all expected params | ||
| * @param entity | ||
| */ | ||
| export declare function isRefreshTokenEntity(entity: object): entity is RefreshTokenEntity; | ||
| /** | ||
| * validates if a given cache entry is "Telemetry", parses <key,value> | ||
| * @param key | ||
| * @param entity | ||
| */ | ||
| export declare function isServerTelemetryEntity(key: string, entity?: object): boolean; | ||
| /** | ||
| * validates if a given cache entry is "Throttling", parses <key,value> | ||
| * @param key | ||
| * @param entity | ||
| */ | ||
| export declare function isThrottlingEntity(key: string, entity?: object): boolean; | ||
| /** | ||
| * Generate AppMetadata Cache Key as per the schema: appmetadata-<environment>-<client_id> | ||
| */ | ||
| export declare function generateAppMetadataKey({ environment, clientId, }: AppMetadataEntity): string; | ||
| export declare function isAppMetadataEntity(key: string, entity: object): boolean; | ||
| /** | ||
| * Validates an entity: checks for all expected params | ||
| * @param entity | ||
| */ | ||
| export declare function isAuthorityMetadataEntity(key: string, entity: object): boolean; | ||
| /** | ||
| * Reset the exiresAt value | ||
| */ | ||
| export declare function generateAuthorityMetadataExpiresAt(): number; | ||
| export declare function updateAuthorityEndpointMetadata(authorityMetadata: AuthorityMetadataEntity, updatedValues: OpenIdConfigResponse, fromNetwork: boolean): void; | ||
| export declare function updateCloudDiscoveryMetadata(authorityMetadata: AuthorityMetadataEntity, updatedValues: CloudDiscoveryMetadata, fromNetwork: boolean): void; | ||
| /** | ||
| * Returns whether or not the data needs to be refreshed | ||
| */ | ||
| export declare function isAuthorityMetadataExpired(metadata: AuthorityMetadataEntity): boolean; | ||
| //# sourceMappingURL=CacheHelpers.d.ts.map |
| {"version":3,"file":"CacheHelpers.d.ts","sourceRoot":"","sources":["../../../src/cache/utils/CacheHelpers.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAK/E,OAAO,KAAK,SAAS,MAAM,0BAA0B,CAAC;AAEtD,OAAO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; | ||
| import { IdTokenEntity } from "../entities/IdTokenEntity.js"; | ||
| import { AccessTokenEntity } from "../entities/AccessTokenEntity.js"; | ||
| import { RefreshTokenEntity } from "../entities/RefreshTokenEntity.js"; | ||
| import { AppMetadataEntity } from "../entities/AppMetadataEntity.js"; | ||
| import { ServerTelemetryEntity } from "../entities/ServerTelemetryEntity.js"; | ||
| import { ThrottlingEntity } from "../entities/ThrottlingEntity.js"; | ||
| import { AuthorityMetadataEntity } from "../entities/AuthorityMetadataEntity.js"; | ||
| import { AuthenticationScheme } from "../../utils/Constants.js"; | ||
| import { ScopeSet } from "../../request/ScopeSet.js"; | ||
| import { AccountInfo } from "../../account/AccountInfo.js"; | ||
| /** @internal */ | ||
| export type AccountCache = Record<string, AccountEntity>; | ||
| /** @internal */ | ||
| export type IdTokenCache = Record<string, IdTokenEntity>; | ||
| /** @internal */ | ||
| export type AccessTokenCache = Record<string, AccessTokenEntity>; | ||
| /** @internal */ | ||
| export type RefreshTokenCache = Record<string, RefreshTokenEntity>; | ||
| /** @internal */ | ||
| export type AppMetadataCache = Record<string, AppMetadataEntity>; | ||
| /** | ||
| * Object type of all accepted cache types | ||
| * @internal | ||
| */ | ||
| export type ValidCacheType = AccountEntity | IdTokenEntity | AccessTokenEntity | RefreshTokenEntity | AppMetadataEntity | AuthorityMetadataEntity | ServerTelemetryEntity | ThrottlingEntity | string; | ||
| /** | ||
| * Object type of all credential types | ||
| * @internal | ||
| */ | ||
| export type ValidCredentialType = IdTokenEntity | AccessTokenEntity | RefreshTokenEntity; | ||
| /** | ||
| * Account: <home_account_id>-<environment>-<realm*> | ||
| */ | ||
| export type AccountFilter = Omit<Partial<AccountInfo>, "idToken" | "idTokenClaims"> & { | ||
| realm?: string; | ||
| loginHint?: string; | ||
| sid?: string; | ||
| isHomeTenant?: boolean; | ||
| }; | ||
| export type TenantProfileFilter = Pick<AccountFilter, "localAccountId" | "loginHint" | "name" | "sid" | "isHomeTenant" | "username" | "upn">; | ||
| /** | ||
| * Credential: <home_account_id*>-<environment>-<credential_type>-<client_id>-<realm*>-<target*>-<scheme*> | ||
| */ | ||
| export type CredentialFilter = { | ||
| homeAccountId?: string; | ||
| environment?: string; | ||
| credentialType?: string; | ||
| clientId?: string; | ||
| familyId?: string; | ||
| realm?: string; | ||
| target?: ScopeSet; | ||
| userAssertionHash?: string; | ||
| tokenType?: AuthenticationScheme; | ||
| keyId?: string; | ||
| }; | ||
| /** | ||
| * AppMetadata: appmetadata-<environment>-<client_id> | ||
| */ | ||
| export type AppMetadataFilter = { | ||
| environment?: string; | ||
| clientId?: string; | ||
| }; | ||
| export type TokenKeys = { | ||
| idToken: string[]; | ||
| accessToken: string[]; | ||
| refreshToken: string[]; | ||
| }; | ||
| //# sourceMappingURL=CacheTypes.d.ts.map |
| {"version":3,"file":"CacheTypes.d.ts","sourceRoot":"","sources":["../../../src/cache/utils/CacheTypes.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,gBAAgB;AAChB,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;A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,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,EAAE,MAAM,EAAE,CAAC;CAC1B,CAAC"} |
| import { CommonAuthorizationCodeRequest } from "../request/CommonAuthorizationCodeRequest.js"; | ||
| import { Authority } from "../authority/Authority.js"; | ||
| import { ClientConfiguration, CommonClientConfiguration } from "../config/ClientConfiguration.js"; | ||
| import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
| import { CommonEndSessionRequest } from "../request/CommonEndSessionRequest.js"; | ||
| import { AuthorizationCodePayload } from "../response/AuthorizationCodePayload.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| /** | ||
| * Oauth2.0 Authorization Code client | ||
| * @internal | ||
| */ | ||
| export declare class AuthorizationCodeClient { | ||
| protected includeRedirectUri: boolean; | ||
| private oidcDefaultScopes; | ||
| logger: Logger; | ||
| protected config: CommonClientConfiguration; | ||
| protected cryptoUtils: ICrypto; | ||
| protected cacheManager: CacheManager; | ||
| protected networkClient: INetworkModule; | ||
| protected serverTelemetryManager: ServerTelemetryManager | null; | ||
| authority: Authority; | ||
| protected performanceClient: IPerformanceClient; | ||
| constructor(configuration: ClientConfiguration, performanceClient: IPerformanceClient); | ||
| /** | ||
| * API to acquire a token in exchange of 'authorization_code` acquired by the user in the first leg of the | ||
| * authorization_code_grant | ||
| * @param request | ||
| */ | ||
| acquireToken(request: CommonAuthorizationCodeRequest, apiId: number, authCodePayload?: AuthorizationCodePayload): Promise<AuthenticationResult>; | ||
| /** | ||
| * Used to log out the current user, and redirect the user to the postLogoutRedirectUri. | ||
| * Default behaviour is to redirect the user to `window.location.href`. | ||
| * @param authorityUri | ||
| */ | ||
| getLogoutUri(logoutRequest: CommonEndSessionRequest): string; | ||
| /** | ||
| * Executes POST request to token endpoint | ||
| * @param authority | ||
| * @param request | ||
| */ | ||
| private executeTokenRequest; | ||
| /** | ||
| * Generates a map for all the params to be sent to the service | ||
| * @param request | ||
| */ | ||
| private createTokenRequestBody; | ||
| /** | ||
| * This API validates the `EndSessionRequest` and creates a URL | ||
| * @param request | ||
| */ | ||
| private createLogoutUrlQueryString; | ||
| /** | ||
| * Updates the authority to the cloud instance provided in the authorization response | ||
| * @param cloudInstanceHostName - cloud instance host name from authorization code payload | ||
| * @param correlationId - request correlation id | ||
| */ | ||
| private updateTokenEndpointAuthority; | ||
| } | ||
| //# sourceMappingURL=AuthorizationCodeClient.d.ts.map |
| {"version":3,"file":"AuthorizationCodeClient.d.ts","sourceRoot":"","sources":["../../src/client/AuthorizationCodeClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,8BAA8B,EAAE,MAAM,8CAA8C,CAAC;AAC9F,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAKtD,OAAO,EAEH,mBAAmB,EACnB,yBAAyB,EAE5B,MAAM,kCAAkC,CAAC;AAI1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAM3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC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4BAA4B;CAgB7C"} |
| import { ClientConfiguration, CommonClientConfiguration } from "../config/ClientConfiguration.js"; | ||
| import { CommonRefreshTokenRequest } from "../request/CommonRefreshTokenRequest.js"; | ||
| import { Authority } from "../authority/Authority.js"; | ||
| import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
| import { CommonSilentFlowRequest } from "../request/CommonSilentFlowRequest.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| /** | ||
| * OAuth2.0 refresh token client | ||
| * @internal | ||
| */ | ||
| export declare class RefreshTokenClient { | ||
| logger: Logger; | ||
| protected config: CommonClientConfiguration; | ||
| protected cryptoUtils: ICrypto; | ||
| protected cacheManager: CacheManager; | ||
| protected networkClient: INetworkModule; | ||
| protected serverTelemetryManager: ServerTelemetryManager | null; | ||
| authority: Authority; | ||
| protected performanceClient: IPerformanceClient; | ||
| constructor(configuration: ClientConfiguration, performanceClient: IPerformanceClient); | ||
| acquireToken(request: CommonRefreshTokenRequest, apiId: number): Promise<AuthenticationResult>; | ||
| /** | ||
| * Gets cached refresh token and attaches to request, then calls acquireToken API | ||
| * @param request | ||
| */ | ||
| acquireTokenByRefreshToken(request: CommonSilentFlowRequest, apiId: number): Promise<AuthenticationResult>; | ||
| /** | ||
| * makes a network call to acquire tokens by exchanging RefreshToken available in userCache; throws if refresh token is not cached | ||
| * @param request | ||
| */ | ||
| private acquireTokenWithCachedRefreshToken; | ||
| /** | ||
| * Constructs the network message and makes a NW call to the underlying secure token service | ||
| * @param request | ||
| * @param authority | ||
| */ | ||
| private executeTokenRequest; | ||
| /** | ||
| * Helper function to create the token request body | ||
| * @param request | ||
| */ | ||
| private createTokenRequestBody; | ||
| } | ||
| //# sourceMappingURL=RefreshTokenClient.d.ts.map |
| {"version":3,"file":"RefreshTokenClient.d.ts","sourceRoot":"","sources":["../../src/client/RefreshTokenClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,mBAAmB,EACnB,yBAAyB,EAE5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAOtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAG3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAoBhF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAUpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAK7C;;;GAGG;AACH,qBAAa,kBAAkB;IAEpB,MAAM,EAAE,MAAM,CAAC;IAGtB,SAAS,CAAC,MAAM,EAAE,yBAAyB,CAAC;IAG5C,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC;IAG/B,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAGrC,SAAS,CAAC,aAAa,EAAE,cAAc,CAAC;IAGxC,SAAS,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAGzD,SAAS,EAAE,SAAS,CAAC;IAG5B,SAAS,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;gBAG5C,aAAa,EAAE,mBAAmB,EAClC,iBAAiB,EAAE,kBAAkB;IA0B5B,YAAY,CACrB,OAAO,EAAE,yBAAyB,EAClC,KAAK,EAAE,MAAM,GACd,OAAO,CAAC,oBAAoB,CAAC;IA+ChC;;;OAGG;IACU,0BAA0B,CACnC,OAAO,EAAE,uBAAuB,EAChC,KAAK,EAAE,MAAM,GACd,OAAO,CAAC,oBAAoB,CAAC;IAiEhC;;;OAGG;YACW,kCAAkC;IAiFhD;;;;OAIG;YACW,mBAAmB;IAqDjC;;;OAGG;YACW,sBAAsB;CAgLvC"} |
| import { ClientConfiguration, CommonClientConfiguration } from "../config/ClientConfiguration.js"; | ||
| import { CommonSilentFlowRequest } from "../request/CommonSilentFlowRequest.js"; | ||
| import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
| import { CacheOutcome } from "../utils/Constants.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { Authority } from "../authority/Authority.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| /** @internal */ | ||
| export declare class SilentFlowClient { | ||
| logger: Logger; | ||
| protected config: CommonClientConfiguration; | ||
| protected cryptoUtils: ICrypto; | ||
| protected cacheManager: CacheManager; | ||
| protected networkClient: INetworkModule; | ||
| protected serverTelemetryManager: ServerTelemetryManager | null; | ||
| authority: Authority; | ||
| protected performanceClient: IPerformanceClient; | ||
| constructor(configuration: ClientConfiguration, performanceClient: IPerformanceClient); | ||
| /** | ||
| * Retrieves token from cache or throws an error if it must be refreshed. | ||
| * @param request | ||
| */ | ||
| acquireCachedToken(request: CommonSilentFlowRequest): Promise<[AuthenticationResult, CacheOutcome]>; | ||
| private setCacheOutcome; | ||
| /** | ||
| * Helper function to build response object from the CacheRecord | ||
| * @param cacheRecord | ||
| */ | ||
| private generateResultFromCacheRecord; | ||
| } | ||
| //# sourceMappingURL=SilentFlowClient.d.ts.map |
| {"version":3,"file":"Sil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eAAe;IAmBvB;;;OAGG;YACW,6BAA6B;CAkC9C"} |
| /** | ||
| * Extensibility interface, which allows the app developer to return a token, based on the passed-in parameters, instead of fetching tokens from | ||
| * the Identity Provider (AAD). | ||
| * Developers need to construct and return an AppTokenProviderResult object back to MSAL. MSAL will cache the token response | ||
| * in the same way it would do if the result were comming from AAD. | ||
| * This extensibility point is only defined for the client_credential flow, i.e. acquireTokenByClientCredential and | ||
| * meant for Azure SDK to enhance Managed Identity support. | ||
| */ | ||
| export interface IAppTokenProvider { | ||
| (appTokenProviderParameters: AppTokenProviderParameters): Promise<AppTokenProviderResult>; | ||
| } | ||
| /** | ||
| * Input object for the IAppTokenProvider extensiblity. MSAL will create this object, which can be used | ||
| * to help create an AppTokenProviderResult. | ||
| * | ||
| * - correlationId - the correlation Id associated with the request | ||
| * - tenantId - the tenant Id for which the token must be provided | ||
| * - scopes - the scopes for which the token must be provided | ||
| * - claims - any extra claims that the token must satisfy | ||
| */ | ||
| export type AppTokenProviderParameters = { | ||
| readonly correlationId?: string; | ||
| readonly tenantId: string; | ||
| readonly scopes: Array<string>; | ||
| readonly claims?: string; | ||
| }; | ||
| /** | ||
| * Output object for IAppTokenProvider extensiblity. | ||
| * | ||
| * - accessToken - the actual access token, typically in JWT format, that satisfies the request data AppTokenProviderParameters | ||
| * - expiresInSeconds - how long the tokens has before expiry, in seconds. Similar to the "expires_in" field in an AAD token response. | ||
| * - refreshInSeconds - how long the token has before it should be proactively refreshed. Similar to the "refresh_in" field in an AAD token response. | ||
| */ | ||
| export type AppTokenProviderResult = { | ||
| accessToken: string; | ||
| expiresInSeconds: number; | ||
| refreshInSeconds?: number; | ||
| }; | ||
| //# sourceMappingURL=AppTokenProvider.d.ts.map |
| {"version":3,"file":"AppTokenProvider.d.ts","sourceRoot":"","sources":["../../src/config/AppTokenProvider.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAC9B,CACI,0BAA0B,EAAE,0BAA0B,GACvD,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACtC;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACrC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC"} |
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { ILoggerCallback, LogLevel } from "../logger/Logger.js"; | ||
| import type { Authority } from "../authority/Authority.js"; | ||
| import { AzureCloudInstance } from "../authority/AuthorityOptions.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| import { ICachePlugin } from "../cache/interface/ICachePlugin.js"; | ||
| import { ISerializableTokenCache } from "../cache/interface/ISerializableTokenCache.js"; | ||
| import { ClientCredentials } from "../account/ClientCredentials.js"; | ||
| /** | ||
| * Use the configuration object to configure MSAL Modules and initialize the base interfaces for MSAL. | ||
| * | ||
| * This object allows you to configure important elements of MSAL functionality: | ||
| * - authOptions - Authentication for application | ||
| * - cryptoInterface - Implementation of crypto functions | ||
| * - libraryInfo - Library metadata | ||
| * - telemetry - Telemetry options and data | ||
| * - loggerOptions - Logging for application | ||
| * - networkInterface - Network implementation | ||
| * - storageInterface - Storage implementation | ||
| * - systemOptions - Additional library options | ||
| * - clientCredentials - Credentials options for confidential clients | ||
| * @internal | ||
| */ | ||
| export type ClientConfiguration = { | ||
| authOptions: AuthOptions; | ||
| systemOptions?: SystemOptions; | ||
| loggerOptions?: LoggerOptions; | ||
| storageInterface?: CacheManager; | ||
| networkInterface?: INetworkModule; | ||
| cryptoInterface?: ICrypto; | ||
| clientCredentials?: ClientCredentials; | ||
| libraryInfo?: LibraryInfo; | ||
| telemetry?: TelemetryOptions; | ||
| serverTelemetryManager?: ServerTelemetryManager | null; | ||
| persistencePlugin?: ICachePlugin | null; | ||
| serializableCache?: ISerializableTokenCache | null; | ||
| }; | ||
| export type CommonClientConfiguration = { | ||
| authOptions: Required<AuthOptions>; | ||
| systemOptions: Required<SystemOptions>; | ||
| loggerOptions: Required<LoggerOptions>; | ||
| storageInterface: CacheManager; | ||
| networkInterface: INetworkModule; | ||
| cryptoInterface: Required<ICrypto>; | ||
| libraryInfo: LibraryInfo; | ||
| telemetry: Required<TelemetryOptions>; | ||
| serverTelemetryManager: ServerTelemetryManager | null; | ||
| clientCredentials: ClientCredentials; | ||
| persistencePlugin: ICachePlugin | null; | ||
| serializableCache: ISerializableTokenCache | null; | ||
| }; | ||
| /** | ||
| * Use this to configure the auth options in the ClientConfiguration object | ||
| * | ||
| * - clientId - Client ID of your app registered with our Application registration portal : https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredAppsPreview in Microsoft Identity Platform | ||
| * - authority - You can configure a specific authority, defaults to " " or "https://login.microsoftonline.com/common" | ||
| * - knownAuthorities - An array of URIs that are known to be valid. Used in B2C scenarios. | ||
| * - cloudDiscoveryMetadata - A string containing the cloud discovery response. Used in AAD scenarios. | ||
| * - clientCapabilities - Array of capabilities which will be added to the claims.access_token.xms_cc request property on every network request. | ||
| * - instanceAware - A flag of whether the STS will send back additional parameters to specify where the tokens should be retrieved from. | ||
| * - redirectUri - 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. | ||
| * - isMcp - A flag of whether the application is an MCP application, which requires a resource parameter to be sent in token requests. | ||
| * @internal | ||
| */ | ||
| export type AuthOptions = { | ||
| clientId: string; | ||
| authority: Authority; | ||
| redirectUri: string; | ||
| clientCapabilities?: Array<string>; | ||
| azureCloudOptions?: AzureCloudOptions; | ||
| instanceAware?: boolean; | ||
| isMcp?: boolean; | ||
| }; | ||
| /** | ||
| * Use this to configure token renewal info in the Configuration object | ||
| * | ||
| * - tokenRenewalOffsetSeconds - Sets the window of offset needed to renew the token before expiry | ||
| * - protocolMode - Enum that represents the protocol that msal follows. Used for configuring proper endpoints. | ||
| */ | ||
| export type SystemOptions = { | ||
| tokenRenewalOffsetSeconds?: number; | ||
| preventCorsPreflight?: boolean; | ||
| }; | ||
| /** | ||
| * Use this to configure the logging that MSAL does, by configuring logger options in the Configuration object | ||
| * | ||
| * - loggerCallback - Callback for logger | ||
| * - piiLoggingEnabled - Sets whether pii logging is enabled | ||
| * - logLevel - Sets the level at which logging happens | ||
| * - correlationId - Sets the correlationId printed by the logger | ||
| */ | ||
| export type LoggerOptions = { | ||
| loggerCallback?: ILoggerCallback; | ||
| piiLoggingEnabled?: boolean; | ||
| logLevel?: LogLevel; | ||
| correlationId?: string; | ||
| }; | ||
| /** | ||
| * Library-specific options | ||
| */ | ||
| export type LibraryInfo = { | ||
| sku: string; | ||
| version: string; | ||
| cpu: string; | ||
| os: string; | ||
| }; | ||
| /** | ||
| * AzureCloudInstance specific options | ||
| * | ||
| * - azureCloudInstance - string enum providing short notation for soverign and public cloud authorities | ||
| * - tenant - provision to provide the tenant info | ||
| */ | ||
| export type AzureCloudOptions = { | ||
| azureCloudInstance: AzureCloudInstance; | ||
| tenant?: string; | ||
| }; | ||
| export type TelemetryOptions = { | ||
| application: ApplicationTelemetry; | ||
| }; | ||
| /** | ||
| * Telemetry information sent on request | ||
| * - appName: Unique string name of an application | ||
| * - appVersion: Version of the application using MSAL | ||
| */ | ||
| export type ApplicationTelemetry = { | ||
| appName: string; | ||
| appVersion: string; | ||
| }; | ||
| export declare const DEFAULT_SYSTEM_OPTIONS: Required<SystemOptions>; | ||
| /** | ||
| * Function that sets the default options when not explicitly configured from app developer | ||
| * | ||
| * @param Configuration | ||
| * | ||
| * @returns Configuration | ||
| */ | ||
| export declare function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions: userSystemOptions, loggerOptions: userLoggerOption, storageInterface: storageImplementation, networkInterface: networkImplementation, cryptoInterface: cryptoImplementation, clientCredentials: clientCredentials, libraryInfo: libraryInfo, telemetry: telemetry, serverTelemetryManager: serverTelemetryManager, persistencePlugin: persistencePlugin, serializableCache: serializableCache, }: ClientConfiguration): CommonClientConfiguration; | ||
| /** | ||
| * Returns true if config has protocolMode set to ProtocolMode.OIDC, false otherwise | ||
| * @param ClientConfiguration | ||
| */ | ||
| export declare function isOidcProtocolMode(config: ClientConfiguration): boolean; | ||
| //# sourceMappingURL=ClientConfiguration.d.ts.map |
| {"version":3,"file":"ClientConfiguration.d.ts","sourceRoot":"","sources":["../../src/config/ClientConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAiC,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAU,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAOxE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAuB,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAQpE;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAC9B,WAAW,EAAE,WAAW,CAAC;IACzB,aAAa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e,EAAE,oBAAoB,EACrC,iBAAiB,EAAE,iBAAiB,EACpC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,SAAS,EACpB,sBAAsB,EAAE,sBAAsB,EAC9C,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,iBAAiB,GACvC,EAAE,mBAAmB,GAAG,yBAAyB,CA4BjD;AAgBD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAIvE"} |
| export declare const CLIENT_ID = "client_id"; | ||
| export declare const REDIRECT_URI = "redirect_uri"; | ||
| export declare const RESPONSE_TYPE = "response_type"; | ||
| export declare const RESPONSE_MODE = "response_mode"; | ||
| export declare const GRANT_TYPE = "grant_type"; | ||
| export declare const CLAIMS = "claims"; | ||
| export declare const SCOPE = "scope"; | ||
| export declare const ERROR = "error"; | ||
| export declare const ERROR_DESCRIPTION = "error_description"; | ||
| export declare const ACCESS_TOKEN = "access_token"; | ||
| export declare const ID_TOKEN = "id_token"; | ||
| export declare const REFRESH_TOKEN = "refresh_token"; | ||
| export declare const EXPIRES_IN = "expires_in"; | ||
| export declare const REFRESH_TOKEN_EXPIRES_IN = "refresh_token_expires_in"; | ||
| export declare const STATE = "state"; | ||
| export declare const NONCE = "nonce"; | ||
| export declare const PROMPT = "prompt"; | ||
| export declare const SESSION_STATE = "session_state"; | ||
| export declare const CLIENT_INFO = "client_info"; | ||
| export declare const CODE = "code"; | ||
| export declare const CODE_CHALLENGE = "code_challenge"; | ||
| export declare const CODE_CHALLENGE_METHOD = "code_challenge_method"; | ||
| export declare const CODE_VERIFIER = "code_verifier"; | ||
| export declare const CLIENT_REQUEST_ID = "client-request-id"; | ||
| export declare const X_CLIENT_SKU = "x-client-SKU"; | ||
| export declare const X_CLIENT_VER = "x-client-VER"; | ||
| export declare const X_CLIENT_OS = "x-client-OS"; | ||
| export declare const X_CLIENT_CPU = "x-client-CPU"; | ||
| export declare const X_CLIENT_CURR_TELEM = "x-client-current-telemetry"; | ||
| export declare const X_CLIENT_LAST_TELEM = "x-client-last-telemetry"; | ||
| export declare const X_MS_LIB_CAPABILITY = "x-ms-lib-capability"; | ||
| export declare const X_APP_NAME = "x-app-name"; | ||
| export declare const X_APP_VER = "x-app-ver"; | ||
| export declare const POST_LOGOUT_URI = "post_logout_redirect_uri"; | ||
| export declare const ID_TOKEN_HINT = "id_token_hint"; | ||
| export declare const DEVICE_CODE = "device_code"; | ||
| export declare const CLIENT_SECRET = "client_secret"; | ||
| export declare const CLIENT_ASSERTION = "client_assertion"; | ||
| export declare const CLIENT_ASSERTION_TYPE = "client_assertion_type"; | ||
| export declare const TOKEN_TYPE = "token_type"; | ||
| export declare const REQ_CNF = "req_cnf"; | ||
| export declare const OBO_ASSERTION = "assertion"; | ||
| export declare const REQUESTED_TOKEN_USE = "requested_token_use"; | ||
| export declare const ON_BEHALF_OF = "on_behalf_of"; | ||
| export declare const FOCI = "foci"; | ||
| export declare const CCS_HEADER = "X-AnchorMailbox"; | ||
| export declare const RETURN_SPA_CODE = "return_spa_code"; | ||
| export declare const NATIVE_BROKER = "nativebroker"; | ||
| export declare const LOGOUT_HINT = "logout_hint"; | ||
| export declare const SID = "sid"; | ||
| export declare const LOGIN_HINT = "login_hint"; | ||
| export declare const DOMAIN_HINT = "domain_hint"; | ||
| export declare const X_CLIENT_EXTRA_SKU = "x-client-xtra-sku"; | ||
| export declare const BROKER_CLIENT_ID = "brk_client_id"; | ||
| export declare const BROKER_REDIRECT_URI = "brk_redirect_uri"; | ||
| export declare const INSTANCE_AWARE = "instance_aware"; | ||
| export declare const EAR_JWK = "ear_jwk"; | ||
| export declare const EAR_JWE_CRYPTO = "ear_jwe_crypto"; | ||
| export declare const RESOURCE = "resource"; | ||
| export declare const CLI_DATA = "clidata"; | ||
| //# sourceMappingURL=AADServerParamKeys.d.ts.map |
| {"version":3,"file":"AADServerParamKeys.d.ts","sourceRoot":"","sources":["../../src/constants/AADServerParamKeys.ts"],"names":[],"mappings":"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,eAAe,CAAC;AACvC,eAAO,MAAM,SAAS,cAAc,CAAC;AACrC,eAAO,MAAM,eAAe,6BAA6B,CAAC;AAC1D,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAC7D,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,aAAa,cAAc,CAAC;AACzC,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,IAAI,SAAS,CAAC;AAC3B,eAAO,MAAM,UAAU,oBAAoB,CAAC;AAC5C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,aAAa,iBAAiB,CAAC;AAC5C,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,GAAG,QAAQ,CAAC;AACzB,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AACtD,eAAO,MAAM,gBAAgB,kBAAkB,CAAC;AAChD,eAAO,MAAM,mBAAmB,qBAAqB,CAAC;AACtD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,QAAQ,aAAa,CAAC;AACnC,eAAO,MAAM,QAAQ,YAAY,CAAC"} |
| import type { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| import type { ShrOptions, SignedHttpRequest } from "./SignedHttpRequest.js"; | ||
| /** | ||
| * The PkceCodes type describes the structure | ||
| * of objects that contain PKCE code | ||
| * challenge and verifier pairs | ||
| */ | ||
| export type PkceCodes = { | ||
| verifier: string; | ||
| challenge: string; | ||
| }; | ||
| export type SignedHttpRequestParameters = Pick<BaseAuthRequest, "resourceRequestMethod" | "resourceRequestUri" | "shrClaims" | "shrNonce" | "shrOptions"> & { | ||
| correlationId: string; | ||
| }; | ||
| /** | ||
| * Interface for crypto functions used by library | ||
| */ | ||
| export interface ICrypto { | ||
| /** | ||
| * Creates a guid randomly. | ||
| */ | ||
| createNewGuid(): string; | ||
| /** | ||
| * base64 Encode string | ||
| * @param input | ||
| */ | ||
| base64Encode(input: string): string; | ||
| /** | ||
| * base64 decode string | ||
| * @param input | ||
| */ | ||
| base64Decode(input: string): string; | ||
| /** | ||
| * base64 URL safe encoded string | ||
| */ | ||
| base64UrlEncode(input: string): string; | ||
| /** | ||
| * Stringifies and base64Url encodes input public key | ||
| * @param inputKid | ||
| * @returns Base64Url encoded public key | ||
| */ | ||
| encodeKid(inputKid: string): string; | ||
| /** | ||
| * Generates an JWK RSA S256 Thumbprint | ||
| * @param request | ||
| */ | ||
| getPublicKeyThumbprint(request: SignedHttpRequestParameters): Promise<string>; | ||
| /** | ||
| * Removes cryptographic keypair from key store matching the keyId passed in | ||
| * @param kid | ||
| * @param correlationId | ||
| */ | ||
| removeTokenBindingKey(kid: string, correlationId: string): Promise<void>; | ||
| /** | ||
| * Removes all cryptographic keys from IndexedDB storage | ||
| * @param correlationId | ||
| */ | ||
| clearKeystore(correlationId: string): Promise<boolean>; | ||
| /** | ||
| * Returns a signed proof-of-possession token with a given acces token that contains a cnf claim with the required kid. | ||
| * @param accessToken | ||
| */ | ||
| signJwt(payload: SignedHttpRequest, kid: string, shrOptions?: ShrOptions, correlationId?: string): Promise<string>; | ||
| /** | ||
| * Returns the SHA-256 hash of an input string | ||
| * @param plainText | ||
| */ | ||
| hashString(plainText: string): Promise<string>; | ||
| } | ||
| export declare const DEFAULT_CRYPTO_IMPLEMENTATION: ICrypto; | ||
| //#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X,UAAU,CAAC,EAAE,UAAU,EACvB,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,MAAM,CAAC,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAClD;AAED,eAAO,MAAM,6BAA6B,EAAE,OA+B3C,CAAC"} |
| export interface IGuidGenerator { | ||
| generateGuid(): string; | ||
| isGuid(guid: string): boolean; | ||
| } | ||
| //# sourceMappingURL=IGuidGenerator.d.ts.map |
| {"version":3,"file":"IGuidGenerator.d.ts","sourceRoot":"","sources":["../../src/crypto/IGuidGenerator.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,cAAc;IAC3B,YAAY,IAAI,MAAM,CAAC;IACvB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACjC"} |
| import { JsonWebTokenTypes } from "../utils/Constants.js"; | ||
| export type JoseHeaderOptions = { | ||
| typ?: JsonWebTokenTypes; | ||
| alg?: string; | ||
| kid?: string; | ||
| }; | ||
| /** @internal */ | ||
| export declare class JoseHeader { | ||
| typ?: JsonWebTokenTypes; | ||
| alg?: string; | ||
| kid?: string; | ||
| constructor(options: JoseHeaderOptions); | ||
| /** | ||
| * Builds SignedHttpRequest formatted JOSE Header from the | ||
| * JOSE Header options provided or previously set on the object and returns | ||
| * the stringified header object. | ||
| * Throws if keyId or algorithm aren't provided since they are required for Access Token Binding. | ||
| * @param shrHeaderOptions | ||
| * @returns | ||
| */ | ||
| static getShrHeaderString(shrHeaderOptions: JoseHeaderOptions): string; | ||
| } | ||
| //# sourceMappingURL=JoseHeader.d.ts.map |
| {"version":3,"file":"JoseHeader.d.ts","sourceRoot":"","sources":["../../src/crypto/JoseHeader.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,MAAM,iBAAiB,GAAG;IAC5B,GAAG,CAAC,EAAE,iBAAiB,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,qBAAa,UAAU;IACZ,GAAG,CAAC,EAAE,iBAAiB,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;gBAER,OAAO,EAAE,iBAAiB;IAMtC;;;;;;;OAOG;IACH,MAAM,CAAC,kBAAkB,CAAC,gBAAgB,EAAE,iBAAiB,GAAG,MAAM;CAoBzE"} |
| import { ICrypto, SignedHttpRequestParameters } from "./ICrypto.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| /** | ||
| * See eSTS docs for more info. | ||
| * - A kid element, with the value containing an RFC 7638-compliant JWK thumbprint that is base64 encoded. | ||
| * - xms_ksl element, representing the storage location of the key's secret component on the client device. One of two values: | ||
| * - sw: software storage | ||
| * - uhw: hardware storage | ||
| */ | ||
| type ReqCnf = { | ||
| kid: string; | ||
| xms_ksl: KeyLocation; | ||
| }; | ||
| export type ReqCnfData = { | ||
| kid: string; | ||
| reqCnfString: string; | ||
| }; | ||
| declare const KeyLocation: { | ||
| readonly SW: "sw"; | ||
| readonly UHW: "uhw"; | ||
| }; | ||
| export type KeyLocation = (typeof KeyLocation)[keyof typeof KeyLocation]; | ||
| /** @internal */ | ||
| export declare class PopTokenGenerator { | ||
| private cryptoUtils; | ||
| private performanceClient; | ||
| constructor(cryptoUtils: ICrypto, performanceClient: IPerformanceClient); | ||
| /** | ||
| * Generates the req_cnf validated at the RP in the POP protocol for SHR parameters | ||
| * and returns an object containing the keyid, the full req_cnf string and the req_cnf string hash | ||
| * @param request | ||
| * @returns | ||
| */ | ||
| generateCnf(request: SignedHttpRequestParameters, logger: Logger): Promise<ReqCnfData>; | ||
| /** | ||
| * Generates key_id for a SHR token request | ||
| * @param request | ||
| * @returns | ||
| */ | ||
| generateKid(request: SignedHttpRequestParameters): Promise<ReqCnf>; | ||
| /** | ||
| * Signs the POP access_token with the local generated key-pair | ||
| * @param accessToken | ||
| * @param request | ||
| * @returns | ||
| */ | ||
| signPopToken(accessToken: string, keyId: string, request: SignedHttpRequestParameters): Promise<string>; | ||
| /** | ||
| * Utility function to generate the signed JWT for an access_token | ||
| * @param payload | ||
| * @param kid | ||
| * @param request | ||
| * @param claims | ||
| * @returns | ||
| */ | ||
| signPayload(payload: string, keyId: string, request: SignedHttpRequestParameters, claims?: object): Promise<string>; | ||
| } | ||
| export {}; | ||
| //# sourceMappingURL=PopTokenGenerator.d.ts.map |
| {"version":3,"file":"PopTokenGenerator.d.ts","sourceRoot":"","sources":["../../src/crypto/PopTokenGenerator.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAGpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAGpF,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C;;;;;;GAMG;AACH,KAAK,MAAM,GAAG;IACV,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,WAAW,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,WAAW;;;CAGP,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEzE,gBAAgB;AAChB,qBAAa,iBAAiB;IAC1B,OAAO,CAAC,WAAW,CAAU;IAC7B,OAAO,CAAC,iBAAiB,CAAqB;gBAElC,WAAW,EAAE,OAAO,EAAE,iBAAiB,EAAE,kBAAkB;IAKvE;;;;;OAKG;IACG,WAAW,CACb,OAAO,EAAE,2BAA2B,EACpC,MAAM,EAAE,MAAM,GACf,OAAO,CAAC,UAAU,CAAC;IAkBtB;;;;OAIG;IACG,WAAW,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,MAAM,CAAC;IAWxE;;;;;OAKG;IACG,YAAY,CACd,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,2BAA2B,GACrC,OAAO,CAAC,MAAM,CAAC;IAIlB;;;;;;;OAOG;IACG,WAAW,CACb,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,2BAA2B,EACpC,MAAM,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,MAAM,CAAC;CAiCrB"} |
| import { JoseHeaderOptions } from "./JoseHeader.js"; | ||
| export type SignedHttpRequest = { | ||
| at?: string; | ||
| cnf?: object; | ||
| m?: string; | ||
| u?: string; | ||
| p?: string; | ||
| q?: [Array<string>, string]; | ||
| ts?: number; | ||
| nonce?: string; | ||
| client_claims?: string; | ||
| }; | ||
| export type ShrOptions = { | ||
| header: JoseHeaderOptions; | ||
| }; | ||
| //# sourceMappingURL=SignedHttpRequest.d.ts.map |
| {"version":3,"file":"SignedHttpRequest.d.ts","sourceRoot":"","sources":["../../src/crypto/SignedHttpRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GAAG;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACrB,MAAM,EAAE,iBAAiB,CAAC;CAC7B,CAAC"} |
| import * as AuthErrorCodes from "./AuthErrorCodes.js"; | ||
| import type { PlatformBrokerError } from "./PlatformBrokerError.js"; | ||
| export { AuthErrorCodes }; | ||
| export declare function getDefaultErrorMessage(code: string): string; | ||
| /** | ||
| * General error class thrown by the MSAL.js library. | ||
| */ | ||
| export declare class AuthError extends Error { | ||
| /** | ||
| * Short string denoting error | ||
| */ | ||
| errorCode: string; | ||
| /** | ||
| * Detailed description of error | ||
| */ | ||
| errorMessage: string; | ||
| /** | ||
| * Describes the subclass of an error | ||
| */ | ||
| subError: string; | ||
| /** | ||
| * CorrelationId associated with the error | ||
| */ | ||
| correlationId: string; | ||
| /** | ||
| * Default PlatformBrokerError from MsalNodeRuntime when broker is enabled | ||
| */ | ||
| platformBrokerError?: PlatformBrokerError; | ||
| constructor(errorCode?: string, errorMessage?: string, suberror?: string); | ||
| setCorrelationId(correlationId: string): void; | ||
| } | ||
| export declare function createAuthError(code: string, additionalMessage?: string): AuthError; | ||
| //# sourceMappingURL=AuthError.d.ts.map |
| {"version":3,"file":"AuthError.d.ts","sourceRoot":"","sources":["../../src/error/AuthError.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,KAAK;IAChC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;gBAE9B,SAAS,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM;IAcxE,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI;CAGhD;AAED,wBAAgB,eAAe,CAC3B,IAAI,EAAE,MAAM,EACZ,iBAAiB,CAAC,EAAE,MAAM,GAC3B,SAAS,CAKX"} |
| /** | ||
| * AuthErrorMessage class containing string constants used by error codes and messages. | ||
| */ | ||
| export declare const unexpectedError = "unexpected_error"; | ||
| export declare const postRequestFailed = "post_request_failed"; | ||
| //# sourceMappingURL=AuthErrorCodes.d.ts.map |
| {"version":3,"file":"AuthErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/AuthErrorCodes.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,iBAAiB,wBAAwB,CAAC"} |
| import * as CacheErrorCodes from "./CacheErrorCodes.js"; | ||
| export { CacheErrorCodes }; | ||
| /** | ||
| * Error thrown when there is an error with the cache | ||
| */ | ||
| export declare class CacheError extends Error { | ||
| /** | ||
| * Short string denoting error | ||
| */ | ||
| errorCode: string; | ||
| /** | ||
| * Detailed description of error | ||
| */ | ||
| errorMessage: string; | ||
| constructor(errorCode: string, errorMessage?: string); | ||
| } | ||
| /** | ||
| * Helper function to wrap browser errors in a CacheError object | ||
| * @param e | ||
| * @returns | ||
| */ | ||
| export declare function createCacheError(e: unknown): CacheError; | ||
| //# sourceMappingURL=CacheError.d.ts.map |
| {"version":3,"file":"CacheError.d.ts","sourceRoot":"","sources":["../../src/error/CacheError.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAC;AAExD,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B;;GAEG;AACH,qBAAa,UAAW,SAAQ,KAAK;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;gBAET,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;CASvD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,OAAO,GAAG,UAAU,CAcvD"} |
| export declare const cacheQuotaExceeded = "cache_quota_exceeded"; | ||
| export declare const cacheErrorUnknown = "cache_error_unknown"; | ||
| //# sourceMappingURL=CacheErrorCodes.d.ts.map |
| {"version":3,"file":"CacheErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/CacheErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,iBAAiB,wBAAwB,CAAC"} |
| import { AuthError } from "./AuthError.js"; | ||
| import * as ClientAuthErrorCodes from "./ClientAuthErrorCodes.js"; | ||
| export { ClientAuthErrorCodes }; | ||
| /** | ||
| * ClientAuthErrorMessage class containing string constants used by error codes and messages. | ||
| */ | ||
| /** | ||
| * Error thrown when there is an error in the client code running on the browser. | ||
| */ | ||
| export declare class ClientAuthError extends AuthError { | ||
| constructor(errorCode: string, additionalMessage?: string); | ||
| } | ||
| export declare function createClientAuthError(errorCode: string, additionalMessage?: string): ClientAuthError; | ||
| //# sourceMappingURL=ClientAuthError.d.ts.map |
| {"version":3,"file":"ClientAuthError.d.ts","sourceRoot":"","sources":["../../src/error/ClientAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC;;GAEG;AAEH;;GAEG;AACH,qBAAa,eAAgB,SAAQ,SAAS;gBAC9B,SAAS,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,MAAM;CAM5D;AAED,wBAAgB,qBAAqB,CACjC,SAAS,EAAE,MAAM,EACjB,iBAAiB,CAAC,EAAE,MAAM,GAC3B,eAAe,CAEjB"} |
| export declare const clientInfoDecodingError = "client_info_decoding_error"; | ||
| export declare const clientInfoEmptyError = "client_info_empty_error"; | ||
| export declare const tokenParsingError = "token_parsing_error"; | ||
| export declare const nullOrEmptyToken = "null_or_empty_token"; | ||
| export declare const endpointResolutionError = "endpoints_resolution_error"; | ||
| export declare const networkError = "network_error"; | ||
| export declare const openIdConfigError = "openid_config_error"; | ||
| export declare const hashNotDeserialized = "hash_not_deserialized"; | ||
| export declare const invalidState = "invalid_state"; | ||
| export declare const stateMismatch = "state_mismatch"; | ||
| export declare const stateNotFound = "state_not_found"; | ||
| export declare const nonceMismatch = "nonce_mismatch"; | ||
| export declare const authTimeNotFound = "auth_time_not_found"; | ||
| export declare const maxAgeTranspired = "max_age_transpired"; | ||
| export declare const multipleMatchingTokens = "multiple_matching_tokens"; | ||
| export declare const multipleMatchingAppMetadata = "multiple_matching_appMetadata"; | ||
| export declare const requestCannotBeMade = "request_cannot_be_made"; | ||
| export declare const cannotRemoveEmptyScope = "cannot_remove_empty_scope"; | ||
| export declare const cannotAppendScopeSet = "cannot_append_scopeset"; | ||
| export declare const emptyInputScopeSet = "empty_input_scopeset"; | ||
| export declare const noAccountInSilentRequest = "no_account_in_silent_request"; | ||
| export declare const invalidCacheRecord = "invalid_cache_record"; | ||
| export declare const invalidCacheEnvironment = "invalid_cache_environment"; | ||
| export declare const noAccountFound = "no_account_found"; | ||
| export declare const noCryptoObject = "no_crypto_object"; | ||
| export declare const unexpectedCredentialType = "unexpected_credential_type"; | ||
| export declare const tokenRefreshRequired = "token_refresh_required"; | ||
| export declare const tokenClaimsCnfRequiredForSignedJwt = "token_claims_cnf_required_for_signedjwt"; | ||
| export declare const authorizationCodeMissingFromServerResponse = "authorization_code_missing_from_server_response"; | ||
| export declare const bindingKeyNotRemoved = "binding_key_not_removed"; | ||
| export declare const endSessionEndpointNotSupported = "end_session_endpoint_not_supported"; | ||
| export declare const keyIdMissing = "key_id_missing"; | ||
| export declare const noNetworkConnectivity = "no_network_connectivity"; | ||
| export declare const userCanceled = "user_canceled"; | ||
| export declare const methodNotImplemented = "method_not_implemented"; | ||
| export declare const nestedAppAuthBridgeDisabled = "nested_app_auth_bridge_disabled"; | ||
| export declare const platformBrokerError = "platform_broker_error"; | ||
| export declare const resourceParameterRequired = "resource_parameter_required"; | ||
| export declare const misplacedResourceParam = "misplaced_resource_parameter"; | ||
| //# sourceMappingURL=ClientAuthErrorCodes.d.ts.map |
| {"version":3,"file":"ClientAuthErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/ClientAuthErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB,+BAA+B,CAAC;AACpE,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AACtD,eAAO,MAAM,uBAAuB,+BAA+B,CAAC;AACpE,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAC5C,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAC3D,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAC5C,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AACtD,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,eAAO,MAAM,sBAAsB,6BAA6B,CAAC;AACjE,eAAO,MAAM,2BAA2B,kCAAkC,CAAC;AAC3E,eAAO,MAAM,mBAAmB,2BAA2B,CAAC;AAC5D,eAAO,MAAM,sBAAsB,8BAA8B,CAAC;AAClE,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,wBAAwB,iCAAiC,CAAC;AACvE,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,uBAAuB,8BAA8B,CAAC;AACnE,eAAO,MAAM,cAAc,qBAAqB,CAAC;AACjD,eAAO,MAAM,cAAc,qBAAqB,CAAC;AACjD,eAAO,MAAM,wBAAwB,+BAA+B,CAAC;AACrE,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,kCAAkC,4CACF,CAAC;AAC9C,eAAO,MAAM,0CAA0C,oDACF,CAAC;AACtD,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,8BAA8B,uCACH,CAAC;AACzC,eAAO,MAAM,YAAY,mBAAmB,CAAC;AAC7C,eAAO,MAAM,qBAAqB,4BAA4B,CAAC;AAC/D,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAC5C,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,2BAA2B,oCAAoC,CAAC;AAC7E,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAC3D,eAAO,MAAM,yBAAyB,gCAAgC,CAAC;AACvE,eAAO,MAAM,sBAAsB,iCAAiC,CAAC"} |
| import { AuthError } from "./AuthError.js"; | ||
| import * as ClientConfigurationErrorCodes from "./ClientConfigurationErrorCodes.js"; | ||
| export { ClientConfigurationErrorCodes }; | ||
| /** | ||
| * Error thrown when there is an error in configuration of the MSAL.js library. | ||
| */ | ||
| export declare class ClientConfigurationError extends AuthError { | ||
| constructor(errorCode: string); | ||
| } | ||
| export declare function createClientConfigurationError(errorCode: string): ClientConfigurationError; | ||
| //# sourceMappingURL=ClientConfigurationError.d.ts.map |
| {"version":3,"file":"ClientConfigurationError.d.ts","sourceRoot":"","sources":["../../src/error/ClientConfigurationError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,6BAA6B,MAAM,oCAAoC,CAAC;AACpF,OAAO,EAAE,6BAA6B,EAAE,CAAC;AAEzC;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,SAAS;gBACvC,SAAS,EAAE,MAAM;CAKhC;AAED,wBAAgB,8BAA8B,CAC1C,SAAS,EAAE,MAAM,GAClB,wBAAwB,CAE1B"} |
| export declare const redirectUriEmpty = "redirect_uri_empty"; | ||
| export declare const claimsRequestParsingError = "claims_request_parsing_error"; | ||
| export declare const authorityUriInsecure = "authority_uri_insecure"; | ||
| export declare const urlParseError = "url_parse_error"; | ||
| export declare const urlEmptyError = "empty_url_error"; | ||
| export declare const emptyInputScopesError = "empty_input_scopes_error"; | ||
| export declare const invalidClaims = "invalid_claims"; | ||
| export declare const tokenRequestEmpty = "token_request_empty"; | ||
| export declare const logoutRequestEmpty = "logout_request_empty"; | ||
| export declare const invalidCodeChallengeMethod = "invalid_code_challenge_method"; | ||
| export declare const pkceParamsMissing = "pkce_params_missing"; | ||
| export declare const invalidCloudDiscoveryMetadata = "invalid_cloud_discovery_metadata"; | ||
| export declare const invalidAuthorityMetadata = "invalid_authority_metadata"; | ||
| export declare const untrustedAuthority = "untrusted_authority"; | ||
| export declare const missingSshJwk = "missing_ssh_jwk"; | ||
| export declare const missingSshKid = "missing_ssh_kid"; | ||
| export declare const missingNonceAuthenticationHeader = "missing_nonce_authentication_header"; | ||
| export declare const invalidAuthenticationHeader = "invalid_authentication_header"; | ||
| export declare const cannotSetOIDCOptions = "cannot_set_OIDCOptions"; | ||
| export declare const cannotAllowPlatformBroker = "cannot_allow_platform_broker"; | ||
| export declare const authorityMismatch = "authority_mismatch"; | ||
| export declare const invalidRequestMethodForEAR = "invalid_request_method_for_EAR"; | ||
| //# sourceMappingURL=ClientConfigurationErrorCodes.d.ts.map |
| {"version":3,"file":"ClientConfigurationErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/ClientConfigurationErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,eAAO,MAAM,yBAAyB,iCAAiC,CAAC;AACxE,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,qBAAqB,6BAA6B,CAAC;AAChE,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,0BAA0B,kCAAkC,CAAC;AAC1E,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,6BAA6B,qCAAqC,CAAC;AAChF,eAAO,MAAM,wBAAwB,+BAA+B,CAAC;AACrE,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AACxD,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,gCAAgC,wCACJ,CAAC;AAC1C,eAAO,MAAM,2BAA2B,kCAAkC,CAAC;AAC3E,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,yBAAyB,iCAAiC,CAAC;AACxE,eAAO,MAAM,iBAAiB,uBAAuB,CAAC;AACtD,eAAO,MAAM,0BAA0B,mCAAmC,CAAC"} |
| import { AuthError } from "./AuthError.js"; | ||
| import * as InteractionRequiredAuthErrorCodes from "./InteractionRequiredAuthErrorCodes.js"; | ||
| export { InteractionRequiredAuthErrorCodes }; | ||
| /** | ||
| * InteractionRequiredServerErrorMessage contains string constants used by error codes and messages returned by the server indicating interaction is required | ||
| */ | ||
| export declare const InteractionRequiredServerErrorMessage: string[]; | ||
| export declare const InteractionRequiredAuthSubErrorMessage: string[]; | ||
| /** | ||
| * Error thrown when user interaction is required. | ||
| */ | ||
| export declare class InteractionRequiredAuthError extends AuthError { | ||
| /** | ||
| * The time the error occured at | ||
| */ | ||
| timestamp: string; | ||
| /** | ||
| * TraceId associated with the error | ||
| */ | ||
| traceId: string; | ||
| /** | ||
| * https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-common/docs/claims-challenge.md | ||
| * | ||
| * A string with extra claims needed for the token request to succeed | ||
| * web site: redirect the user to the authorization page and set the extra claims | ||
| * web api: include the claims in the WWW-Authenticate header that are sent back to the client so that it knows to request a token with the extra claims | ||
| * desktop application or browser context: include the claims when acquiring the token interactively | ||
| * app to app context (client_credentials): include the claims in the AcquireTokenByClientCredential request | ||
| */ | ||
| claims: string; | ||
| /** | ||
| * Server error number; | ||
| */ | ||
| readonly errorNo?: string; | ||
| constructor(errorCode?: string, errorMessage?: string, subError?: string, timestamp?: string, traceId?: string, correlationId?: string, claims?: string, errorNo?: string); | ||
| } | ||
| /** | ||
| * Helper function used to determine if an error thrown by the server requires interaction to resolve | ||
| * @param errorCode | ||
| * @param errorString | ||
| * @param subError | ||
| */ | ||
| export declare function isInteractionRequiredError(errorCode?: string, errorString?: string, subError?: string): boolean; | ||
| /** | ||
| * Creates an InteractionRequiredAuthError | ||
| */ | ||
| export declare function createInteractionRequiredAuthError(errorCode: string, errorMessage?: string): InteractionRequiredAuthError; | ||
| //# sourceMappingURL=InteractionRequiredAuthError.d.ts.map |
| {"version":3,"file":"InteractionRequiredAuthError.d.ts","sourceRoot":"","sources":["../../src/error/InteractionRequiredAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,iCAAiC,MAAM,wCAAwC,CAAC;AAC5F,OAAO,EAAE,iCAAiC,EAAE,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,qCAAqC,UAOjD,CAAC;AAEF,eAAO,MAAM,sCAAsC,UASlD,CAAC;AAEF;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,SAAS;IACvD;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;;;OAQG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;gBAGtB,SAAS,CAAC,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,MAAM,EACrB,QAAQ,CAAC,EAAE,MAAM,EACjB,SAAS,CAAC,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,EAChB,aAAa,CAAC,EAAE,MAAM,EACtB,MAAM,CAAC,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,MAAM;CAYvB;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACtC,SAAS,CAAC,EAAE,MAAM,EAClB,WAAW,CAAC,EAAE,MAAM,EACpB,QAAQ,CAAC,EAAE,MAAM,GAClB,OAAO,CAkBT;AAED;;GAEG;AACH,wBAAgB,kCAAkC,CAC9C,SAAS,EAAE,MAAM,EACjB,YAAY,CAAC,EAAE,MAAM,GACtB,4BAA4B,CAE9B"} |
| /** | ||
| * MSAL-defined interaction required error code indicating no tokens are found in cache. | ||
| * @public | ||
| */ | ||
| export declare const noTokensFound = "no_tokens_found"; | ||
| /** | ||
| * MSAL-defined error code indicating a native account is unavailable on the platform. | ||
| * @public | ||
| */ | ||
| export declare const nativeAccountUnavailable = "native_account_unavailable"; | ||
| /** | ||
| * MSAL-defined error code indicating the refresh token has expired and user interaction is needed. | ||
| * @public | ||
| */ | ||
| export declare const refreshTokenExpired = "refresh_token_expired"; | ||
| /** | ||
| * MSAL-defined error code indicating UI/UX is not allowed (e.g., blocked by policy), requiring alternate interaction. | ||
| * @public | ||
| */ | ||
| export declare const uxNotAllowed = "ux_not_allowed"; | ||
| /** | ||
| * Server-originated error code indicating interaction is required to complete the request. | ||
| * @public | ||
| */ | ||
| export declare const interactionRequired = "interaction_required"; | ||
| /** | ||
| * Server-originated error code indicating user consent is required. | ||
| * @public | ||
| */ | ||
| export declare const consentRequired = "consent_required"; | ||
| /** | ||
| * Server-originated error code indicating user login is required. | ||
| * @public | ||
| */ | ||
| export declare const loginRequired = "login_required"; | ||
| /** | ||
| * Server-originated error code indicating the token is invalid or corrupted. | ||
| * @public | ||
| */ | ||
| export declare const badToken = "bad_token"; | ||
| /** | ||
| * Server-originated error code indicating the user is in an interrupted state and interaction is required. | ||
| * @public | ||
| */ | ||
| export declare const interruptedUser = "interrupted_user"; | ||
| //# sourceMappingURL=InteractionRequiredAuthErrorCodes.d.ts.map |
| {"version":3,"file":"InteractionRequiredAuthErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/InteractionRequiredAuthErrorCodes.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C;;;GAGG;AACH,eAAO,MAAM,wBAAwB,+BAA+B,CAAC;AACrE;;;GAGG;AACH,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAC3D;;;GAGG;AACH,eAAO,MAAM,YAAY,mBAAmB,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,mBAAmB,yBAAyB,CAAC;AAC1D;;;GAGG;AACH,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD;;;GAGG;AACH,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C;;;GAGG;AACH,eAAO,MAAM,QAAQ,cAAc,CAAC;AACpC;;;GAGG;AACH,eAAO,MAAM,eAAe,qBAAqB,CAAC"} |
| import { AuthError } from "./AuthError.js"; | ||
| import * as JoseHeaderErrorCodes from "./JoseHeaderErrorCodes.js"; | ||
| export { JoseHeaderErrorCodes }; | ||
| /** | ||
| * Error thrown when there is an error in the client code running on the browser. | ||
| */ | ||
| export declare class JoseHeaderError extends AuthError { | ||
| constructor(errorCode: string, errorMessage?: string); | ||
| } | ||
| /** Returns JoseHeaderError object */ | ||
| export declare function createJoseHeaderError(code: string): JoseHeaderError; | ||
| //# sourceMappingURL=JoseHeaderError.d.ts.map |
| {"version":3,"file":"JoseHeaderError.d.ts","sourceRoot":"","sources":["../../src/error/JoseHeaderError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC;;GAEG;AACH,qBAAa,eAAgB,SAAQ,SAAS;gBAC9B,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;CAMvD;AAED,qCAAqC;AACrC,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAEnE"} |
| export declare const missingKidError = "missing_kid_error"; | ||
| export declare const missingAlgError = "missing_alg_error"; | ||
| //# sourceMappingURL=JoseHeaderErrorCodes.d.ts.map |
| {"version":3,"file":"JoseHeaderErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/JoseHeaderErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe,sBAAsB,CAAC;AACnD,eAAO,MAAM,eAAe,sBAAsB,CAAC"} |
| import { AuthError } from "./AuthError.js"; | ||
| /** | ||
| * Represents network related errors | ||
| */ | ||
| export declare class NetworkError extends AuthError { | ||
| error: AuthError; | ||
| httpStatus?: number; | ||
| responseHeaders?: Record<string, string>; | ||
| constructor(error: AuthError, httpStatus?: number, responseHeaders?: Record<string, string>); | ||
| } | ||
| /** | ||
| * Creates NetworkError object for a failed network request | ||
| * @param error - Error to be thrown back to the caller | ||
| * @param httpStatus - Status code of the network request | ||
| * @param responseHeaders - Response headers of the network request, when available | ||
| * @returns NetworkError object | ||
| */ | ||
| export declare function createNetworkError(error: AuthError, httpStatus?: number, responseHeaders?: Record<string, string>, additionalError?: Error): NetworkError; | ||
| //# sourceMappingURL=NetworkError.d.ts.map |
| {"version":3,"file":"NetworkError.d.ts","sourceRoot":"","sources":["../../src/error/NetworkError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;GAEG;AACH,qBAAa,YAAa,SAAQ,SAAS;IACvC,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;gBAGrC,KAAK,EAAE,SAAS,EAChB,UAAU,CAAC,EAAE,MAAM,EACnB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAU/C;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAC9B,KAAK,EAAE,SAAS,EAChB,UAAU,CAAC,EAAE,MAAM,EACnB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACxC,eAAe,CAAC,EAAE,KAAK,GACxB,YAAY,CAGd"} |
| import { AuthError } from "./AuthError.js"; | ||
| /** | ||
| * Error class for MSAL Runtime errors that preserves detailed broker information | ||
| */ | ||
| export declare class PlatformBrokerError extends AuthError { | ||
| /** | ||
| * Numeric error code from MSAL Runtime | ||
| */ | ||
| statusCode: number; | ||
| /** | ||
| * Error tag from MSAL Runtime | ||
| */ | ||
| tag: string; | ||
| constructor(errorStatus: string, errorContext: string, errorCode: number, errorTag: number); | ||
| } | ||
| //# sourceMappingURL=PlatformBrokerError.d.ts.map |
| {"version":3,"file":"PlatformBrokerError.d.ts","sourceRoot":"","sources":["../../src/error/PlatformBrokerError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AA8B3C;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,SAAS;IAC9C;;OAEG;IACI,UAAU,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACI,GAAG,EAAE,MAAM,CAAC;gBAGf,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM;CAavB"} |
| import { AuthError } from "./AuthError.js"; | ||
| /** | ||
| * Error thrown when there is an error with the server code, for example, unavailability. | ||
| */ | ||
| export declare class ServerError extends AuthError { | ||
| /** | ||
| * Server error number; | ||
| */ | ||
| readonly errorNo?: string; | ||
| /** | ||
| * Http status number; | ||
| */ | ||
| readonly status?: number; | ||
| constructor(errorCode?: string, errorMessage?: string, subError?: string, errorNo?: string, status?: number); | ||
| } | ||
| //# sourceMappingURL=ServerError.d.ts.map |
| {"version":3,"file":"ServerError.d.ts","sourceRoot":"","sources":["../../src/error/ServerError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;GAEG;AACH,qBAAa,WAAY,SAAQ,SAAS;IACtC;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;gBAGrB,SAAS,CAAC,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,MAAM,EACrB,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,MAAM;CAStB"} |
| export { SignedHttpRequest, ShrOptions } from "./crypto/SignedHttpRequest.js"; | ||
| export { JoseHeader } from "./crypto/JoseHeader.js"; | ||
| export { ExternalTokenResponse } from "./response/ExternalTokenResponse.js"; | ||
| export { IPerformanceClient, PerformanceCallbackFunction, InProgressPerformanceEvent, } from "./telemetry/performance/IPerformanceClient.js"; | ||
| export { IntFields, PerformanceEvent, PerformanceEventStatus, SubMeasurement, } from "./telemetry/performance/PerformanceEvent.js"; | ||
| export * as PerformanceEvents from "./telemetry/performance/PerformanceEvents.js"; | ||
| export { IPerformanceMeasurement } from "./telemetry/performance/IPerformanceMeasurement.js"; | ||
| export { PerformanceClient } from "./telemetry/performance/PerformanceClient.js"; | ||
| export { StubPerformanceClient } from "./telemetry/performance/StubPerformanceClient.js"; | ||
| export { PopTokenGenerator } from "./crypto/PopTokenGenerator.js"; | ||
| //# sourceMappingURL=exports-browser-only.d.ts.map |
| {"version":3,"file":"exports-browser-only.d.ts","sourceRoot":"","sources":["../src/exports-browser-only.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EACH,kBAAkB,EAClB,2BAA2B,EAC3B,0BAA0B,GAC7B,MAAM,+CAA+C,CAAC;AACvD,OAAO,EACH,SAAS,EACT,gBAAgB,EAChB,sBAAsB,EACtB,cAAc,GACjB,MAAM,6CAA6C,CAAC;AACrD,OAAO,KAAK,iBAAiB,MAAM,8CAA8C,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,oDAAoD,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AAEzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC"} |
| import * as AuthToken from "./account/AuthToken.js"; | ||
| import * as AuthorityFactory from "./authority/AuthorityFactory.js"; | ||
| import * as CacheHelpers from "./cache/utils/CacheHelpers.js"; | ||
| import * as TimeUtils from "./utils/TimeUtils.js"; | ||
| import * as UrlUtils from "./utils/UrlUtils.js"; | ||
| import * as AADServerParamKeys from "./constants/AADServerParamKeys.js"; | ||
| import * as AccountEntityUtils from "./cache/utils/AccountEntityUtils.js"; | ||
| export { AuthToken }; | ||
| export { AuthorityFactory }; | ||
| export { CacheHelpers }; | ||
| export { TimeUtils }; | ||
| export { UrlUtils }; | ||
| export { AADServerParamKeys }; | ||
| export { AccountEntityUtils }; | ||
| export { AuthorizationCodeClient } from "./client/AuthorizationCodeClient.js"; | ||
| export { RefreshTokenClient } from "./client/RefreshTokenClient.js"; | ||
| export { SilentFlowClient } from "./client/SilentFlowClient.js"; | ||
| export { AuthOptions, SystemOptions, LoggerOptions, DEFAULT_SYSTEM_OPTIONS, AzureCloudOptions, ApplicationTelemetry, } from "./config/ClientConfiguration.js"; | ||
| export { ClientConfiguration } from "./config/ClientConfiguration.js"; | ||
| export { AccountInfo, ActiveAccountFilters, TenantProfile, updateAccountTenantProfileData, tenantIdMatchesHomeTenant, buildTenantProfile, } from "./account/AccountInfo.js"; | ||
| export { TokenClaims, getTenantIdFromIdTokenClaims, } from "./account/TokenClaims.js"; | ||
| export { TokenClaims as IdTokenClaims } from "./account/TokenClaims.js"; | ||
| export { CcsCredential, CcsCredentialType } from "./account/CcsCredential.js"; | ||
| export { ClientInfo, buildClientInfo, buildClientInfoFromHomeAccountId, } from "./account/ClientInfo.js"; | ||
| export { Authority, formatAuthorityUri, buildStaticAuthorityOptions, } from "./authority/Authority.js"; | ||
| export { AuthorityOptions, AzureCloudInstance, StaticAuthorityOptions, } from "./authority/AuthorityOptions.js"; | ||
| export { AuthorityType } from "./authority/AuthorityType.js"; | ||
| export { ProtocolMode } from "./authority/ProtocolMode.js"; | ||
| export { OIDCOptions } from "./authority/OIDCOptions.js"; | ||
| export { CacheManager, DefaultStorageClass } from "./cache/CacheManager.js"; | ||
| export { AccountCache, AccountFilter, AccessTokenCache, IdTokenCache, RefreshTokenCache, AppMetadataCache, CredentialFilter, ValidCacheType, ValidCredentialType, TokenKeys, } from "./cache/utils/CacheTypes.js"; | ||
| export { CacheRecord } from "./cache/entities/CacheRecord.js"; | ||
| export { CredentialEntity } from "./cache/entities/CredentialEntity.js"; | ||
| export { AppMetadataEntity } from "./cache/entities/AppMetadataEntity.js"; | ||
| export { AccountEntity } from "./cache/entities/AccountEntity.js"; | ||
| export { IdTokenEntity } from "./cache/entities/IdTokenEntity.js"; | ||
| export { AccessTokenEntity } from "./cache/entities/AccessTokenEntity.js"; | ||
| export { RefreshTokenEntity } from "./cache/entities/RefreshTokenEntity.js"; | ||
| export { ServerTelemetryEntity } from "./cache/entities/ServerTelemetryEntity.js"; | ||
| export { AuthorityMetadataEntity } from "./cache/entities/AuthorityMetadataEntity.js"; | ||
| export { ThrottlingEntity } from "./cache/entities/ThrottlingEntity.js"; | ||
| export { INetworkModule, NetworkRequestOptions, StubbedNetworkModule, } from "./network/INetworkModule.js"; | ||
| export { NetworkResponse } from "./network/NetworkResponse.js"; | ||
| export { ThrottlingUtils } from "./network/ThrottlingUtils.js"; | ||
| export { RequestThumbprint, getRequestThumbprint, } from "./network/RequestThumbprint.js"; | ||
| export { IUri } from "./url/IUri.js"; | ||
| export { UrlString } from "./url/UrlString.js"; | ||
| export { ICrypto, PkceCodes, DEFAULT_CRYPTO_IMPLEMENTATION, SignedHttpRequestParameters, } from "./crypto/ICrypto.js"; | ||
| export * as AuthorizeProtocol from "./protocol/Authorize.js"; | ||
| export * as TokenProtocol from "./protocol/Token.js"; | ||
| export { BaseAuthRequest, enforceResourceParameter, } from "./request/BaseAuthRequest.js"; | ||
| export { CommonAuthorizationUrlRequest } from "./request/CommonAuthorizationUrlRequest.js"; | ||
| export { CommonAuthorizationCodeRequest } from "./request/CommonAuthorizationCodeRequest.js"; | ||
| export { CommonRefreshTokenRequest } from "./request/CommonRefreshTokenRequest.js"; | ||
| export { CommonSilentFlowRequest } from "./request/CommonSilentFlowRequest.js"; | ||
| export { CommonEndSessionRequest } from "./request/CommonEndSessionRequest.js"; | ||
| export * as RequestParameterBuilder from "./request/RequestParameterBuilder.js"; | ||
| export { StoreInCache } from "./request/StoreInCache.js"; | ||
| export { AzureRegion } from "./authority/AzureRegion.js"; | ||
| export { AzureRegionConfiguration } from "./authority/AzureRegionConfiguration.js"; | ||
| export { AuthenticationResult } from "./response/AuthenticationResult.js"; | ||
| export { AuthorizationCodePayload } from "./response/AuthorizationCodePayload.js"; | ||
| export { AuthorizeResponse } from "./response/AuthorizeResponse.js"; | ||
| export { ServerAuthorizationTokenResponse } from "./response/ServerAuthorizationTokenResponse.js"; | ||
| export { ResponseHandler, buildAccountToCache, } from "./response/ResponseHandler.js"; | ||
| export { ScopeSet } from "./request/ScopeSet.js"; | ||
| export { AuthenticationHeaderParser } from "./request/AuthenticationHeaderParser.js"; | ||
| export { ILoggerCallback, LogLevel, Logger } from "./logger/Logger.js"; | ||
| export { InteractionRequiredAuthError, InteractionRequiredAuthErrorCodes, createInteractionRequiredAuthError, } from "./error/InteractionRequiredAuthError.js"; | ||
| export { AuthError, AuthErrorCodes, createAuthError, } from "./error/AuthError.js"; | ||
| export { PlatformBrokerError } from "./error/PlatformBrokerError.js"; | ||
| export { ServerError } from "./error/ServerError.js"; | ||
| export { NetworkError, createNetworkError } from "./error/NetworkError.js"; | ||
| export { CacheError, CacheErrorCodes, createCacheError, } from "./error/CacheError.js"; | ||
| export { ClientAuthError, ClientAuthErrorCodes, createClientAuthError, } from "./error/ClientAuthError.js"; | ||
| export { ClientConfigurationError, ClientConfigurationErrorCodes, createClientConfigurationError, } from "./error/ClientConfigurationError.js"; | ||
| export * as Constants from "./utils/Constants.js"; | ||
| export { StringUtils } from "./utils/StringUtils.js"; | ||
| export { StringDict } from "./utils/MsalTypes.js"; | ||
| export { RequestStateObject, LibraryStateObject } from "./utils/StateTypes.js"; | ||
| export * as ProtocolUtils from "./utils/ProtocolUtils.js"; | ||
| export * from "./utils/FunctionWrappers.js"; | ||
| export { ServerTelemetryManager } from "./telemetry/server/ServerTelemetryManager.js"; | ||
| export { ServerTelemetryRequest } from "./telemetry/server/ServerTelemetryRequest.js"; | ||
| export { version } from "./packageMetadata.js"; | ||
| //# sourceMappingURL=exports-common.d.ts.map |
| {"version":3,"file":"exports-common.d.ts","sourceRoot":"","sources":["../src/exports-common.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,gBAAgB,MAAM,iCAAiC,CAAC;AACpE,OAAO,KAAK,YAAY,MAAM,+BAA+B,CAAC;AAC9D,OAAO,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QAAQ,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EACH,4BAA4B,EAC5B,iCAAiC,EACjC,kCAAkC,GACrC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACH,SAAS,EACT,cAAc,EACd,eAAe,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EACH,UAAU,EACV,eAAe,EACf,gBAAgB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACH,eAAe,EACf,oBAAoB,EACpB,qBAAqB,GACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,wBAAwB,EACxB,6BAA6B,EAC7B,8BAA8B,GACjC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC"} |
| import * as ClientAssertionUtils from "./utils/ClientAssertionUtils.js"; | ||
| export { ClientAssertionUtils }; | ||
| export { IAppTokenProvider, AppTokenProviderParameters, AppTokenProviderResult, } from "./config/AppTokenProvider.js"; | ||
| export { INativeBrokerPlugin } from "./broker/nativeBroker/INativeBrokerPlugin.js"; | ||
| export { ICachePlugin } from "./cache/interface/ICachePlugin.js"; | ||
| export { TokenCacheContext } from "./cache/persistence/TokenCacheContext.js"; | ||
| export { ISerializableTokenCache } from "./cache/interface/ISerializableTokenCache.js"; | ||
| export { NativeRequest } from "./request/NativeRequest.js"; | ||
| export { NativeSignOutRequest } from "./request/NativeSignOutRequest.js"; | ||
| export { ClientAssertion, ClientAssertionConfig, ClientAssertionCallback, } from "./account/ClientCredentials.js"; | ||
| export { DeviceCodeResponse, ServerDeviceCodeResponse, } from "./response/DeviceCodeResponse.js"; | ||
| export { getClientAssertion } from "./utils/ClientAssertionUtils.js"; | ||
| export { IGuidGenerator } from "./crypto/IGuidGenerator.js"; | ||
| export { StubPerformanceClient } from "./telemetry/performance/StubPerformanceClient.js"; | ||
| export { buildClientConfiguration, CommonClientConfiguration, } from "./config/ClientConfiguration.js"; | ||
| //# sourceMappingURL=exports-node-only.d.ts.map |
| {"version":3,"file":"exports-node-only.d.ts","sourceRoot":"","sources":["../src/exports-node-only.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,oBAAoB,MAAM,iCAAiC,CAAC;AAExE,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC,OAAO,EACH,iBAAiB,EACjB,0BAA0B,EAC1B,sBAAsB,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EACH,eAAe,EACf,qBAAqB,EACrB,uBAAuB,GAC1B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACH,kBAAkB,EAClB,wBAAwB,GAC3B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AACzF,OAAO,EACH,wBAAwB,EACxB,yBAAyB,GAC5B,MAAM,iCAAiC,CAAC"} |
| /** | ||
| * This file is the entrypoint when importing with the browser subpath e.g. "import { someExport } from @azure/msal-common/browser" | ||
| * Additional exports should be added to the applicable exports-*.ts files | ||
| */ | ||
| export * from "./exports-common.js"; | ||
| export * from "./exports-browser-only.js"; | ||
| //# sourceMappingURL=index-browser.d.ts.map |
| {"version":3,"file":"index-browser.d.ts","sourceRoot":"","sources":["../src/index-browser.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC"} |
| /** | ||
| * This file is the entrypoint when importing with the node subpath e.g. "import { someExport } from @azure/msal-common/node" | ||
| * Additional exports should be added to the applicable exports-*.ts files | ||
| */ | ||
| export * from "./exports-common.js"; | ||
| export * from "./exports-node-only.js"; | ||
| //# sourceMappingURL=index-node.d.ts.map |
| {"version":3,"file":"index-node.d.ts","sourceRoot":"","sources":["../src/index-node.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC"} |
| /** | ||
| * @packageDocumentation | ||
| * @module @azure/msal-common | ||
| */ | ||
| /** | ||
| * This file is the entrypoint when importing without a specific subpath e.g. "import { someExport } from @azure/msal-common" | ||
| * Additional exports should be added to the applicable exports-*.ts files | ||
| */ | ||
| export * from "./exports-common.js"; | ||
| export * from "./exports-browser-only.js"; | ||
| export * from "./exports-node-only.js"; | ||
| //# sourceMappingURL=index.d.ts.map |
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA;;;GAGG;AAEH;;;GAGG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC"} |
| import type { LoggerOptions } from "../config/ClientConfiguration.js"; | ||
| /** | ||
| * Options for logger messages. | ||
| */ | ||
| export type LoggerMessageOptions = { | ||
| logLevel: LogLevel; | ||
| containsPii?: boolean; | ||
| context?: string; | ||
| correlationId: string; | ||
| }; | ||
| /** | ||
| * Log message level. | ||
| */ | ||
| export declare enum LogLevel { | ||
| Error = 0, | ||
| Warning = 1, | ||
| Info = 2, | ||
| Verbose = 3, | ||
| Trace = 4 | ||
| } | ||
| /** | ||
| * Callback to send the messages to. | ||
| */ | ||
| export interface ILoggerCallback { | ||
| (level: LogLevel, message: string, containsPii: boolean): void; | ||
| } | ||
| /** | ||
| * Represents a single logged message with metadata | ||
| */ | ||
| export interface LoggedMessage { | ||
| hash: string; | ||
| level: LogLevel; | ||
| containsPii: boolean; | ||
| milliseconds: number; | ||
| } | ||
| /** | ||
| * Get all logs for specific correlation ID | ||
| * @param correlationId | ||
| */ | ||
| export declare function getLogsFromCache(correlationId: string): LoggedMessage[]; | ||
| /** | ||
| * Get logs for correlation ID and flush them from cache | ||
| * Attaches logs with empty correlation id to the requested correlation logs | ||
| * @param correlationId | ||
| */ | ||
| export declare function getAndFlushLogsFromCache(correlationId: string): LoggedMessage[]; | ||
| /** | ||
| * Get all correlation IDs that have logs | ||
| */ | ||
| export declare function getCachedCorrelationIds(): string[]; | ||
| /** | ||
| * Class which facilitates logging of messages to a specific place. | ||
| */ | ||
| export declare class Logger { | ||
| private level; | ||
| private piiLoggingEnabled; | ||
| private localCallback; | ||
| private packageName; | ||
| private packageVersion; | ||
| constructor(loggerOptions: LoggerOptions, packageName?: string, packageVersion?: string); | ||
| private static createDefaultLoggerOptions; | ||
| /** | ||
| * Create new Logger with existing configurations. | ||
| */ | ||
| clone(packageName: string, packageVersion: string): Logger; | ||
| /** | ||
| * Log message with required options. | ||
| */ | ||
| private logMessage; | ||
| /** | ||
| * Execute callback with message. | ||
| */ | ||
| executeCallback(level: LogLevel, message: string, containsPii: boolean): void; | ||
| /** | ||
| * Logs error messages. | ||
| */ | ||
| error(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs error messages with PII. | ||
| */ | ||
| errorPii(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs warning messages. | ||
| */ | ||
| warning(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs warning messages with PII. | ||
| */ | ||
| warningPii(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs info messages. | ||
| */ | ||
| info(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs info messages with PII. | ||
| */ | ||
| infoPii(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs verbose messages. | ||
| */ | ||
| verbose(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs verbose messages with PII. | ||
| */ | ||
| verbosePii(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs trace messages. | ||
| */ | ||
| trace(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs trace messages with PII. | ||
| */ | ||
| tracePii(message: string, correlationId: string): void; | ||
| /** | ||
| * Returns whether PII Logging is enabled or not. | ||
| */ | ||
| isPiiLoggingEnabled(): boolean; | ||
| } | ||
| //# sourceMappingURL=Logger.d.ts.map |
| {"version":3,"file":"Logger.d.ts","sourceRoot":"","sources":["../../src/logger/Logger.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,oBAAY,QAAQ;IAChB,KAAK,IAAA;IACL,OAAO,IAAA;IACP,IAAI,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AAQ,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQtD;;OAEG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQrD;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQxD;;OAEG;IACH,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQlD;;OAEG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQrD;;OAEG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQrD;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQxD;;OAEG;IACH,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQnD;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQtD;;OAEG;IACH,mBAAmB,IAAI,OAAO;CAGjC"} |
| import { NetworkResponse } from "./NetworkResponse.js"; | ||
| /** | ||
| * Options allowed by network request APIs. | ||
| */ | ||
| export type NetworkRequestOptions = { | ||
| headers?: Record<string, string>; | ||
| body?: string; | ||
| }; | ||
| /** | ||
| * Client network interface to send backend requests. | ||
| * @interface | ||
| */ | ||
| export interface INetworkModule { | ||
| /** | ||
| * Interface function for async network "GET" requests. Based on the Fetch standard: https://fetch.spec.whatwg.org/ | ||
| * @param url | ||
| * @param options - Headers and/or body to include on the request | ||
| * @param timeout | ||
| */ | ||
| sendGetRequestAsync<T>(url: string, options?: NetworkRequestOptions, timeout?: number): Promise<NetworkResponse<T>>; | ||
| /** | ||
| * Interface function for async network "POST" requests. Based on the Fetch standard: https://fetch.spec.whatwg.org/ | ||
| * @param url | ||
| * @param options - Headers and/or body to include on the request | ||
| */ | ||
| sendPostRequestAsync<T>(url: string, options?: NetworkRequestOptions): Promise<NetworkResponse<T>>; | ||
| } | ||
| export declare const StubbedNetworkModule: INetworkModule; | ||
| //# sourceMappingURL=INetworkModule.d.ts.map |
| {"version":3,"file":"INetworkModule.d.ts","sourceRoot":"","sources":["../../src/network/INetworkModule.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;;OAKG;IACH,mBAAmB,CAAC,CAAC,EACjB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,EAC/B,OAAO,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IAE/B;;;;OAIG;IACH,oBAAoB,CAAC,CAAC,EAClB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,GAChC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;CAClC;AAED,eAAO,MAAM,oBAAoB,EAAE,cAWlC,CAAC"} |
| export type NetworkResponse<T> = { | ||
| headers: Record<string, string>; | ||
| body: T; | ||
| status: number; | ||
| }; | ||
| //# sourceMappingURL=NetworkResponse.d.ts.map |
| {"version":3,"file":"NetworkResponse.d.ts","sourceRoot":"","sources":["../../src/network/NetworkResponse.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI;IAC7B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,CAAC,CAAC;IACR,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC"} |
| import { ShrOptions } from "../crypto/SignedHttpRequest.js"; | ||
| import { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| import { AuthenticationScheme } from "../utils/Constants.js"; | ||
| /** | ||
| * Type representing a unique request thumbprint. | ||
| */ | ||
| export type RequestThumbprint = { | ||
| clientId: string; | ||
| authority: string; | ||
| scopes: Array<string>; | ||
| homeAccountIdentifier?: string; | ||
| claims?: string; | ||
| authenticationScheme?: AuthenticationScheme; | ||
| resourceRequestMethod?: string; | ||
| resourceRequestUri?: string; | ||
| shrClaims?: string; | ||
| sshKid?: string; | ||
| shrOptions?: ShrOptions; | ||
| embeddedClientId?: string; | ||
| }; | ||
| export declare function getRequestThumbprint(clientId: string, request: BaseAuthRequest, homeAccountId?: string): RequestThumbprint; | ||
| //# sourceMappingURL=RequestThumbprint.d.ts.map |
| {"version":3,"file":"RequestThumbprint.d.ts","sourceRoot":"","sources":["../../src/network/RequestThumbprint.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,wBAAgB,oBAAoB,CAChC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,eAAe,EACxB,aAAa,CAAC,EAAE,MAAM,GACvB,iBAAiB,CAenB"} |
| import { NetworkResponse } from "./NetworkResponse.js"; | ||
| import { ServerAuthorizationTokenResponse } from "../response/ServerAuthorizationTokenResponse.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { RequestThumbprint } from "./RequestThumbprint.js"; | ||
| import { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| /** @internal */ | ||
| export declare class ThrottlingUtils { | ||
| /** | ||
| * Prepares a RequestThumbprint to be stored as a key. | ||
| * @param thumbprint | ||
| */ | ||
| static generateThrottlingStorageKey(thumbprint: RequestThumbprint): string; | ||
| /** | ||
| * Performs necessary throttling checks before a network request. | ||
| * @param cacheManager | ||
| * @param thumbprint | ||
| */ | ||
| static preProcess(cacheManager: CacheManager, thumbprint: RequestThumbprint, correlationId: string): void; | ||
| /** | ||
| * Performs necessary throttling checks after a network request. | ||
| * @param cacheManager | ||
| * @param thumbprint | ||
| * @param response | ||
| */ | ||
| static postProcess(cacheManager: CacheManager, thumbprint: RequestThumbprint, response: NetworkResponse<ServerAuthorizationTokenResponse>, correlationId: string): void; | ||
| /** | ||
| * Checks a NetworkResponse object's status codes against 429 or 5xx | ||
| * @param response | ||
| */ | ||
| static checkResponseStatus(response: NetworkResponse<ServerAuthorizationTokenResponse>): boolean; | ||
| /** | ||
| * Checks a NetworkResponse object's RetryAfter header | ||
| * @param response | ||
| */ | ||
| static checkResponseForRetryAfter(response: NetworkResponse<ServerAuthorizationTokenResponse>): boolean; | ||
| /** | ||
| * Calculates the Unix-time value for a throttle to expire given throttleTime in seconds. | ||
| * @param throttleTime | ||
| */ | ||
| static calculateThrottleTime(throttleTime: number): number; | ||
| static removeThrottle(cacheManager: CacheManager, clientId: string, request: BaseAuthRequest, homeAccountIdentifier?: string): void; | ||
| } | ||
| //# sourceMappingURL=ThrottlingUtils.d.ts.map |
| {"version":3,"file":"ThrottlingUtils.d.ts","sourceRoot":"","sources":["../../src/network/ThrottlingUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AAEnG,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAEH,iBAAiB,EACpB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,gBAAgB;AAChB,qBAAa,eAAe;IACxB;;;OAGG;IACH,MAAM,CAAC,4BAA4B,CAAC,UAAU,EAAE,iBAAiB,GAAG,MAAM;IAI1E;;;;OAIG;IACH,MAAM,CAAC,UAAU,CACb,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,iBAAiB,EAC7B,aAAa,EAAE,MAAM,GACtB,IAAI;IAiBP;;;;;OAKG;IACH,MAAM,CAAC,WAAW,CACd,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,iBAAiB,EAC7B,QAAQ,EAAE,eAAe,CAAC,gCAAgC,CAAC,EAC3D,aAAa,EAAE,MAAM,GACtB,IAAI;IAwBP;;;OAGG;IACH,MAAM,CAAC,mBAAmB,CACtB,QAAQ,EAAE,eAAe,CAAC,gCAAgC,CAAC,GAC5D,OAAO;IAOV;;;OAGG;IACH,MAAM,CAAC,0BAA0B,CAC7B,QAAQ,EAAE,eAAe,CAAC,gCAAgC,CAAC,GAC5D,OAAO;IAYV;;;OAGG;IACH,MAAM,CAAC,qBAAqB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;IAa1D,MAAM,CAAC,cAAc,CACjB,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,eAAe,EACxB,qBAAqB,CAAC,EAAE,MAAM,GAC/B,IAAI;CASV"} |
| export declare const name = "@azure/msal-common"; | ||
| export declare const version = "16.5.2"; | ||
| //# sourceMappingURL=packageMetadata.d.ts.map |
| {"version":3,"file":"packageMetadata.d.ts","sourceRoot":"","sources":["../src/packageMetadata.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI,uBAAuB,CAAC;AACzC,eAAO,MAAM,OAAO,WAAW,CAAC"} |
| import { CommonAuthorizationUrlRequest } from "../request/CommonAuthorizationUrlRequest.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { AuthOptions } from "../config/ClientConfiguration.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { Authority } from "../authority/Authority.js"; | ||
| import { AuthorizationCodePayload } from "../response/AuthorizationCodePayload.js"; | ||
| import { AuthorizeResponse } from "../response/AuthorizeResponse.js"; | ||
| /** | ||
| * Returns map of parameters that are applicable to all calls to /authorize whether using PKCE or EAR | ||
| * @param config | ||
| * @param request | ||
| * @param logger | ||
| * @param performanceClient | ||
| * @returns | ||
| */ | ||
| export declare function getStandardAuthorizeRequestParameters(authOptions: AuthOptions, request: CommonAuthorizationUrlRequest, logger: Logger, performanceClient?: IPerformanceClient): Map<string, string>; | ||
| /** | ||
| * Returns authorize endpoint with given request parameters in the query string | ||
| * @param authority | ||
| * @param requestParameters | ||
| * @returns | ||
| */ | ||
| export declare function getAuthorizeUrl(authority: Authority, requestParameters: Map<string, string>): string; | ||
| /** | ||
| * Handles the hash fragment response from public client code request. Returns a code response used by | ||
| * the client to exchange for a token in acquireToken. | ||
| * @param serverParams | ||
| * @param cachedState | ||
| */ | ||
| export declare function getAuthorizationCodePayload(serverParams: AuthorizeResponse, cachedState: string): AuthorizationCodePayload; | ||
| /** | ||
| * Function which validates server authorization code response. | ||
| * @param serverResponseHash | ||
| * @param requestState | ||
| */ | ||
| export declare function validateAuthorizationResponse(serverResponse: AuthorizeResponse, requestState: string): void; | ||
| //# sourceMappingURL=Authorize.d.ts.map |
| {"version":3,"file":"Authorize.d.ts","sourceRoot":"","sources":["../../src/protocol/Authorize.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAE5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEpF,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAG/D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAWrE;;;;;;;GAOG;AACH,wBAAgB,qCAAqC,CACjD,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,6BAA6B,EACtC,MAAM,EAAE,MAAM,EACd,iBAAiB,CAAC,EAAE,kBAAkB,GACvC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAiOrB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC3B,SAAS,EAAE,SAAS,EACpB,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACvC,MAAM,CAMR;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACvC,YAAY,EAAE,iBAAiB,EAC/B,WAAW,EAAE,MAAM,GACpB,wBAAwB,CAY1B;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CACzC,cAAc,EAAE,iBAAiB,EACjC,YAAY,EAAE,MAAM,GACrB,IAAI,CAuEN"} |
| import { CcsCredential } from "../account/CcsCredential.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| import { IPerformanceClient } from "../exports-browser-only.js"; | ||
| import { ServerAuthorizationTokenResponse } from "../response/ServerAuthorizationTokenResponse.js"; | ||
| import { RequestThumbprint } from "../network/RequestThumbprint.js"; | ||
| import { INetworkModule, NetworkRequestOptions } from "../network/INetworkModule.js"; | ||
| import { NetworkResponse } from "../network/NetworkResponse.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| /** | ||
| * Creates default headers for requests to token endpoint | ||
| */ | ||
| export declare function createTokenRequestHeaders(logger: Logger, preventCorsPreflight: boolean, ccsCred?: CcsCredential): Record<string, string>; | ||
| /** | ||
| * Creates query string for the /token request | ||
| * @param request | ||
| */ | ||
| export declare function createTokenQueryParameters(request: BaseAuthRequest, clientId: string, redirectUri: string, performanceClient: IPerformanceClient): string; | ||
| /** | ||
| * Http post to token endpoint | ||
| * @param tokenEndpoint | ||
| * @param queryString | ||
| * @param headers | ||
| * @param thumbprint | ||
| */ | ||
| export declare function executePostToTokenEndpoint(tokenEndpoint: string, queryString: string, headers: Record<string, string>, thumbprint: RequestThumbprint, correlationId: string, cacheManager: CacheManager, networkClient: INetworkModule, logger: Logger, performanceClient: IPerformanceClient, serverTelemetryManager: ServerTelemetryManager | null): Promise<NetworkResponse<ServerAuthorizationTokenResponse>>; | ||
| /** | ||
| * Wraps sendPostRequestAsync with necessary preflight and postflight logic | ||
| * @param thumbprint - Request thumbprint for throttling | ||
| * @param tokenEndpoint - Endpoint to make the POST to | ||
| * @param options - Body and Headers to include on the POST request | ||
| * @param correlationId - CorrelationId for telemetry | ||
| * @param cacheManager - Cache manager instance | ||
| * @param networkClient - Network module instance | ||
| * @param logger - Logger instance | ||
| * @param performanceClient - Performance client instance | ||
| */ | ||
| export declare function sendPostRequest<T extends ServerAuthorizationTokenResponse>(thumbprint: RequestThumbprint, tokenEndpoint: string, options: NetworkRequestOptions, correlationId: string, cacheManager: CacheManager, networkClient: INetworkModule, logger: Logger, performanceClient: IPerformanceClient): Promise<NetworkResponse<T>>; | ||
| //# sourceMappingURL=Token.d.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ACrC,sBAAsB,EAAE,sBAAsB,GAAG,IAAI,GACtD,OAAO,CAAC,eAAe,CAAC,gCAAgC,CAAC,CAAC,CAsB5D;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,eAAe,CACjC,CAAC,SAAS,gCAAgC,EAE1C,UAAU,EAAE,iBAAiB,EAC7B,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,qBAAqB,EAC9B,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,cAAc,EAC7B,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,kBAAkB,GACtC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CA6D7B"} |
| /** | ||
| * This is a helper class that parses supported HTTP response authentication headers to extract and return | ||
| * header challenge values that can be used outside the basic authorization flows. | ||
| */ | ||
| export declare class AuthenticationHeaderParser { | ||
| private headers; | ||
| constructor(headers: Record<string, string>); | ||
| /** | ||
| * This method parses the SHR nonce value out of either the Authentication-Info or WWW-Authenticate authentication headers. | ||
| * @returns | ||
| */ | ||
| getShrNonce(): string; | ||
| /** | ||
| * Parses an HTTP header's challenge set into a key/value map. | ||
| * @param header | ||
| * @returns | ||
| */ | ||
| private parseChallenges; | ||
| } | ||
| //# sourceMappingURL=AuthenticationHeaderParser.d.ts.map |
| {"version":3,"file":"AuthenticationHeaderParser.d.ts","sourceRoot":"","sources":["../../src/request/AuthenticationHeaderParser.ts"],"names":[],"mappings":"AAmBA;;;GAGG;AACH,qBAAa,0BAA0B;IACnC,OAAO,CAAC,OAAO,CAAyB;gBAE5B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAI3C;;;OAGG;IACH,WAAW,IAAI,MAAM;IAqCrB;;;;OAIG;IACH,OAAO,CAAC,eAAe;CAa1B"} |
| import { AuthenticationScheme, HttpMethod } from "../utils/Constants.js"; | ||
| import type { AzureCloudOptions } from "../config/ClientConfiguration.js"; | ||
| import { StringDict } from "../utils/MsalTypes.js"; | ||
| import { StoreInCache } from "./StoreInCache.js"; | ||
| import { ShrOptions } from "../crypto/SignedHttpRequest.js"; | ||
| /** | ||
| * BaseAuthRequest | ||
| */ | ||
| export type BaseAuthRequest = { | ||
| /** | ||
| * URL of the authority, the security token service (STS) from which MSAL will acquire tokens. Defaults to https://login.microsoftonline.com/common. If using the same authority for all request, authority should set on client application object and not request, to avoid resolving authority endpoints multiple times. | ||
| */ | ||
| authority: string; | ||
| /** | ||
| * Unique GUID set per request to trace a request end-to-end for telemetry purposes. | ||
| */ | ||
| correlationId: string; | ||
| /** | ||
| * Array of scopes the application is requesting access to. | ||
| */ | ||
| scopes: Array<string>; | ||
| /** | ||
| * The type of token retrieved. Defaults to "Bearer". Can also be type "pop" or "SSH". | ||
| */ | ||
| authenticationScheme?: AuthenticationScheme; | ||
| /** | ||
| * A stringified claims request which will be added to all /authorize and /token calls | ||
| */ | ||
| claims?: string; | ||
| /** | ||
| * A stringified claims object which will be added to a Signed HTTP Request | ||
| */ | ||
| shrClaims?: string; | ||
| /** | ||
| * A server-generated timestamp that has been encrypted and base64URL encoded, which will be added to a Signed HTTP Request. | ||
| */ | ||
| shrNonce?: string; | ||
| /** | ||
| * An object containing options for the Signed HTTP Request | ||
| */ | ||
| shrOptions?: ShrOptions; | ||
| /** | ||
| * HTTP Request type used to request data from the resource (i.e. "GET", "POST", etc.). Used for proof-of-possession flows. | ||
| */ | ||
| resourceRequestMethod?: string; | ||
| /** | ||
| * URI that token will be used for. Used for proof-of-possession flows. | ||
| */ | ||
| resourceRequestUri?: string; | ||
| /** | ||
| * A stringified JSON Web Key representing a public key that can be signed by an SSH certificate. | ||
| */ | ||
| sshJwk?: string; | ||
| /** | ||
| * Key ID that uniquely identifies the SSH public key mentioned above. | ||
| */ | ||
| sshKid?: string; | ||
| /** | ||
| * Convenience string enums for users to provide public/sovereign cloud ids | ||
| */ | ||
| azureCloudOptions?: AzureCloudOptions; | ||
| /** | ||
| * Maximum allowed age, in milliseconds, of the user's authentication before a new sign-in is required. | ||
| */ | ||
| maxAge?: number; | ||
| /** | ||
| * Object containing boolean values indicating whether to store tokens in the cache or not (default is true) | ||
| */ | ||
| storeInCache?: StoreInCache; | ||
| /** | ||
| * Scenario id to track custom user prompts | ||
| */ | ||
| scenarioId?: string; | ||
| /** | ||
| * Key ID to identify the public key for PoP token request | ||
| */ | ||
| popKid?: string; | ||
| /** | ||
| * Embedded client id. When specified, broker client id (brk_client_id) and redirect uri (brk_redirect_uri) params are set with values from the config, overriding the corresponding extra parameters, if present. | ||
| */ | ||
| embeddedClientId?: string; | ||
| /** | ||
| * HTTP method to use for the /authorize request. Defaults to GET, but can be set to POST if the request requires body parameters. | ||
| */ | ||
| httpMethod?: HttpMethod; | ||
| /** | ||
| * Resource parameter to be sent with the request. Used for MCP flows. | ||
| */ | ||
| resource?: string; | ||
| /** | ||
| * When true and a brokered flow is in effect—i.e., when a broker client id (brk_client_id), typically derived from embeddedClientId or other broker parameters, is included in the request—clientCapabilities from configuration will be excluded from claims. Has no effect when brk_client_id is not present (non-brokered flows). | ||
| */ | ||
| skipBrokerClaims?: boolean; | ||
| /** | ||
| * String to string map of custom query parameters added to outgoing token service requests. Unless the parameter is only supported on query strings use extraParameters instead | ||
| */ | ||
| extraQueryParameters?: StringDict; | ||
| /** | ||
| * String to string map of custom parameters added to outgoing token service requests. | ||
| */ | ||
| extraParameters?: StringDict; | ||
| }; | ||
| /** | ||
| * Helper to enforce resource parameter presence in token requests when isMcp is set in the configuration. | ||
| * If resource parameter is set in both the request and in extraQueryParameters or extraParameters, an error will be thrown. | ||
| * This is used for MCP flows. | ||
| * @param isMcp - Flag indicating if application is an MCP app, from configuration | ||
| * @param request - Auth request | ||
| */ | ||
| export declare function enforceResourceParameter(isMcp: boolean, request: Partial<BaseAuthRequest>): void; | ||
| //# sourceMappingURL=BaseAuthRequest.d.ts.map |
| {"version":3,"file":"BaseAuthRequest.d.ts","sourceRoot":"","sources":["../../src/request/BaseAuthRequest.ts"],"names":[],"m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H,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,oBAAoB,CAAC,EAAE,UAAU,CAAC;IAClC;;OAEG;IACH,eAAe,CAAC,EAAE,UAAU,CAAC;CAChC,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACpC,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,GAClC,IAAI,CAoBN"} |
| import { BaseAuthRequest } from "./BaseAuthRequest.js"; | ||
| import { CcsCredential } from "../account/CcsCredential.js"; | ||
| /** | ||
| * Request object passed by user to acquire a token from the server exchanging a valid authorization code (second leg of OAuth2.0 Authorization Code flow) | ||
| */ | ||
| export type CommonAuthorizationCodeRequest = BaseAuthRequest & { | ||
| /** | ||
| * The authorization_code that the user acquired in the first leg of the flow. | ||
| */ | ||
| code: string; | ||
| /** | ||
| * The redirect URI of your app, where the authority will redirect to after the user inputs credentials and consents. It must exactly match one of the redirect URIs you registered in the portal | ||
| */ | ||
| redirectUri: string; | ||
| /** | ||
| * The same code_verifier that was used to obtain the authorization_code. Required if PKCE was used in the authorization code grant request.For more information, see the PKCE RFC: https://tools.ietf.org/html/rfc7636 | ||
| */ | ||
| codeVerifier?: string; | ||
| /** | ||
| * Enables the acquisition of a SPA authorization code (confidential clients only). | ||
| */ | ||
| enableSpaAuthorizationCode?: boolean; | ||
| /** | ||
| * Encoded client_info returned with the authorization code, used to bind the token response to a specific account. | ||
| */ | ||
| clientInfo?: string; | ||
| /** | ||
| * Credential used to populate the CCS (Cache Credential Service) header. | ||
| */ | ||
| ccsCredential?: CcsCredential; | ||
| }; | ||
| //# sourceMappingURL=CommonAuthorizationCodeRequest.d.ts.map |
| {"version":3,"file":"CommonAuthorizationCodeRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonAuthorizationCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,eAAe,GAAG;IAC3D;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CACjC,CAAC"} |
| import { ResponseMode } from "../utils/Constants.js"; | ||
| import { BaseAuthRequest } from "./BaseAuthRequest.js"; | ||
| import { AccountInfo } from "../account/AccountInfo.js"; | ||
| /** | ||
| * Request object passed by user to retrieve a Code from the server (first leg of authorization code grant flow) | ||
| */ | ||
| export type CommonAuthorizationUrlRequest = BaseAuthRequest & { | ||
| /** | ||
| * 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. | ||
| */ | ||
| redirectUri: string; | ||
| /** | ||
| * Specifies the method that should be used to send the authentication result to your app. Can be query, form_post, or fragment. If no value is passed in, it defaults to query. | ||
| */ | ||
| responseMode: ResponseMode; | ||
| /** | ||
| * AccountInfo obtained from a getAccount API. Will be used in certain scenarios to generate login_hint if both loginHint and sid params are not provided. | ||
| */ | ||
| account?: AccountInfo; | ||
| /** | ||
| * JSON Web Key used when constructing Encrypted Authorize Response (EAR) parameters. | ||
| */ | ||
| earJwk?: string; | ||
| /** | ||
| * 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 | ||
| */ | ||
| codeChallenge?: string; | ||
| /** | ||
| * 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 | ||
| */ | ||
| codeChallengeMethod?: string; | ||
| /** | ||
| * 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. | ||
| */ | ||
| domainHint?: string; | ||
| /** | ||
| * Scopes for a different resource when the user needs consent upfront. | ||
| */ | ||
| extraScopesToConsent?: Array<string>; | ||
| /** | ||
| * 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. Can also be the string value extracted from the login_hint claim on an idToken obtained previously to provide SSO. | ||
| */ | ||
| loginHint?: string; | ||
| /** | ||
| * 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. | ||
| */ | ||
| nonce: string; | ||
| /** | ||
| * Indicates the type of user interaction that is required. | ||
| * login: will force the user to enter their credentials on that request, negating single-sign on | ||
| * 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 | ||
| * consent: will the trigger the OAuth consent dialog after the user signs in, asking the user to grant permissions to the app | ||
| * 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 | ||
| * create: will direct the user to the account creation experience instead of the log in experience | ||
| * no_session: will not read existing session token when authenticating the user. Upon user being successfully authenticated, EVO won’t create a new session for the user. FOR INTERNAL USE ONLY. | ||
| */ | ||
| prompt?: string; | ||
| /** | ||
| * Session ID, unique identifier for the session. Available as an optional claim on ID tokens. Use login_hint optional claim provided on loginHint paramter instead, when available. | ||
| */ | ||
| sid?: string; | ||
| /** | ||
| * 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. For security and privacy reasons, we do not recommend putting URLs or other sensitive data directly in the state parameter. Instead, use a key or identifier that corresponds to data stored in browser storage (e.g., localStorage, sessionStorage), allowing your app to securely reference the necessary data after authentication. | ||
| */ | ||
| state: string; | ||
| /** | ||
| * Indicates whether this authorization request is being initiated by a platform authentication broker instead of a standard web flow. | ||
| */ | ||
| platformBroker?: boolean; | ||
| }; | ||
| //# sourceMappingURL=CommonAuthorizationUrlRequest.d.ts.map |
| {"version":3,"file":"CommonAuthorizationUrlRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonAuthorizationUrlRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,eAAe,GAAG;IAC1D;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,YAAY,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,oBAAoB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC"} |
| import { AccountInfo } from "../account/AccountInfo.js"; | ||
| import { StringDict } from "../utils/MsalTypes.js"; | ||
| /** | ||
| * CommonEndSessionRequest | ||
| */ | ||
| export type CommonEndSessionRequest = { | ||
| /** | ||
| * Unique GUID set per request to trace a request end-to-end for telemetry purposes. | ||
| */ | ||
| correlationId: string; | ||
| /** | ||
| * Account object that will be logged out of. All tokens tied to this account will be cleared. | ||
| */ | ||
| account?: AccountInfo | null; | ||
| /** | ||
| * URI to navigate to after logout page. | ||
| */ | ||
| postLogoutRedirectUri?: string | null; | ||
| /** | ||
| * ID Token used by B2C to validate logout if required by the policy | ||
| */ | ||
| idTokenHint?: string; | ||
| /** | ||
| * A value included in the request to the logout endpoint which will be returned in the query string upon post logout redirection. For security and privacy reasons, we do not recommend putting URLs or other sensitive data directly in the state parameter. Instead, use a key or identifier that corresponds to data stored in browser storage (e.g., localStorage, sessionStorage), allowing your app to securely reference the necessary data after logout. | ||
| */ | ||
| state?: string; | ||
| /** | ||
| * A string that specifies the account that is being logged out in order to skip the server account picker on logout | ||
| */ | ||
| logoutHint?: string; | ||
| /** | ||
| * String to string map of custom query parameters added to the /authorize call | ||
| */ | ||
| extraQueryParameters?: StringDict; | ||
| }; | ||
| //# sourceMappingURL=CommonEndSessionRequest.d.ts.map |
| {"version":3,"file":"CommonEndSessionRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonEndSessionRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IAClC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,oBAAoB,CAAC,EAAE,UAAU,CAAC;CACrC,CAAC"} |
| import { BaseAuthRequest } from "./BaseAuthRequest.js"; | ||
| import { CcsCredential } from "../account/CcsCredential.js"; | ||
| /** | ||
| * CommonRefreshTokenRequest | ||
| */ | ||
| export type CommonRefreshTokenRequest = BaseAuthRequest & { | ||
| /** | ||
| * A refresh token returned from a previous request to the Identity provider. | ||
| */ | ||
| refreshToken: string; | ||
| /** | ||
| * Credential used to populate the CCS (Cache Credential Service) header. | ||
| */ | ||
| ccsCredential?: CcsCredential; | ||
| /** | ||
| * Force MSAL to cache a refresh token flow response when there is no account in the cache. Used for migration scenarios. | ||
| */ | ||
| forceCache?: boolean; | ||
| /** | ||
| * Redirect URI to send with the refresh token request. | ||
| */ | ||
| redirectUri?: string; | ||
| }; | ||
| //# sourceMappingURL=CommonRefreshTokenRequest.d.ts.map |
| {"version":3,"file":"CommonRefreshTokenRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonRefreshTokenRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,eAAe,GAAG;IACtD;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"} |
| import { AccountInfo } from "../account/AccountInfo.js"; | ||
| import { BaseAuthRequest } from "./BaseAuthRequest.js"; | ||
| /** | ||
| * SilentFlow parameters passed by the user to retrieve credentials silently | ||
| */ | ||
| export type CommonSilentFlowRequest = BaseAuthRequest & { | ||
| /** | ||
| * Account object to lookup the credentials | ||
| */ | ||
| account: AccountInfo; | ||
| /** | ||
| * Skip cache lookup and forces network call(s) to get fresh tokens | ||
| */ | ||
| forceRefresh: boolean; | ||
| /** | ||
| * RedirectUri registered on the app registration - only required in brokering scenarios | ||
| */ | ||
| redirectUri?: string; | ||
| /** | ||
| * If refresh token will expire within the configured value, consider it already expired. Used to pre-emptively invoke interaction when cached refresh token is close to expiry. | ||
| */ | ||
| refreshTokenExpirationOffsetSeconds?: number; | ||
| }; | ||
| //# sourceMappingURL=CommonSilentFlowRequest.d.ts.map |
| {"version":3,"file":"CommonSilentFlowRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonSilentFlowRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG;IACpD;;OAEG;IACH,OAAO,EAAE,WAAW,CAAC;IACrB;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,mCAAmC,CAAC,EAAE,MAAM,CAAC;CAChD,CAAC"} |
| import { StringDict } from "../utils/MsalTypes.js"; | ||
| export type NativeRequest = { | ||
| clientId: string; | ||
| authority: string; | ||
| correlationId: string; | ||
| redirectUri: string; | ||
| scopes: Array<string>; | ||
| claims?: string; | ||
| authenticationScheme?: string; | ||
| resourceRequestMethod?: string; | ||
| resourceRequestUri?: string; | ||
| shrNonce?: string; | ||
| accountId?: string; | ||
| forceRefresh?: boolean; | ||
| resource?: string; | ||
| extraParameters?: StringDict; | ||
| extraScopesToConsent?: Array<string>; | ||
| loginHint?: string; | ||
| prompt?: string; | ||
| }; | ||
| //# sourceMappingURL=NativeRequest.d.ts.map |
| {"version":3,"file":"NativeRequest.d.ts","sourceRoot":"","sources":["../../src/request/NativeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,MAAM,MAAM,aAAa,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,oBAAoB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"} |
| export type NativeSignOutRequest = { | ||
| clientId: string; | ||
| accountId: string; | ||
| correlationId: string; | ||
| }; | ||
| //# sourceMappingURL=NativeSignOutRequest.d.ts.map |
| {"version":3,"file":"NativeSignOutRequest.d.ts","sourceRoot":"","sources":["../../src/request/NativeSignOutRequest.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,oBAAoB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC"} |
| import * as Constants from "../utils/Constants.js"; | ||
| import { StringDict } from "../utils/MsalTypes.js"; | ||
| import { ApplicationTelemetry, LibraryInfo } from "../config/ClientConfiguration.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| import { ClientInfo } from "../account/ClientInfo.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| export declare function instrumentBrokerParams(parameters: Map<string, string>, correlationId?: string, performanceClient?: IPerformanceClient): void; | ||
| /** | ||
| * Add the given response_type | ||
| * @param parameters | ||
| * @param responseType | ||
| */ | ||
| export declare function addResponseType(parameters: Map<string, string>, responseType: Constants.OAuthResponseType): void; | ||
| /** | ||
| * add response_mode. defaults to query. | ||
| * @param responseMode | ||
| */ | ||
| export declare function addResponseMode(parameters: Map<string, string>, responseMode?: Constants.ResponseMode): void; | ||
| /** | ||
| * Add flag to indicate STS should attempt to use WAM if available | ||
| */ | ||
| export declare function addNativeBroker(parameters: Map<string, string>): void; | ||
| /** | ||
| * add scopes. set addOidcScopes to false to prevent default scopes in non-user scenarios | ||
| * @param scopeSet | ||
| * @param addOidcScopes | ||
| */ | ||
| export declare function addScopes(parameters: Map<string, string>, scopes: string[], addOidcScopes?: boolean, defaultScopes?: Array<string>): void; | ||
| /** | ||
| * add clientId | ||
| * @param clientId | ||
| */ | ||
| export declare function addClientId(parameters: Map<string, string>, clientId: string): void; | ||
| /** | ||
| * add redirect_uri | ||
| * @param redirectUri | ||
| */ | ||
| export declare function addRedirectUri(parameters: Map<string, string>, redirectUri: string): void; | ||
| /** | ||
| * add post logout redirectUri | ||
| * @param redirectUri | ||
| */ | ||
| export declare function addPostLogoutRedirectUri(parameters: Map<string, string>, redirectUri: string): void; | ||
| /** | ||
| * add id_token_hint to logout request | ||
| * @param idTokenHint | ||
| */ | ||
| export declare function addIdTokenHint(parameters: Map<string, string>, idTokenHint: string): void; | ||
| /** | ||
| * add domain_hint | ||
| * @param domainHint | ||
| */ | ||
| export declare function addDomainHint(parameters: Map<string, string>, domainHint: string): void; | ||
| /** | ||
| * add login_hint | ||
| * @param loginHint | ||
| */ | ||
| export declare function addLoginHint(parameters: Map<string, string>, loginHint: string): void; | ||
| /** | ||
| * Adds the CCS (Cache Credential Service) query parameter for login_hint | ||
| * @param loginHint | ||
| */ | ||
| export declare function addCcsUpn(parameters: Map<string, string>, loginHint: string): void; | ||
| /** | ||
| * Adds the CCS (Cache Credential Service) query parameter for account object | ||
| * @param loginHint | ||
| */ | ||
| export declare function addCcsOid(parameters: Map<string, string>, clientInfo: ClientInfo): void; | ||
| /** | ||
| * add sid | ||
| * @param sid | ||
| */ | ||
| export declare function addSid(parameters: Map<string, string>, sid: string): void; | ||
| /** | ||
| * Adds claims to request parameters, conditionally excluding clientCapabilities | ||
| * when skipBrokerClaims is true and a brokered flow is in effect. | ||
| * @param parameters - The request parameters map | ||
| * @param claims - The claims string from the request | ||
| * @param clientCapabilities - The client capabilities from configuration | ||
| * @param skipBrokerClaims - When true and BROKER_CLIENT_ID is present, excludes clientCapabilities from claims | ||
| */ | ||
| export declare function addClaims(parameters: Map<string, string>, claims?: string, clientCapabilities?: Array<string>, skipBrokerClaims?: boolean): void; | ||
| /** | ||
| * add correlationId | ||
| * @param correlationId | ||
| */ | ||
| export declare function addCorrelationId(parameters: Map<string, string>, correlationId: string): void; | ||
| /** | ||
| * add library info query params | ||
| * @param libraryInfo | ||
| */ | ||
| export declare function addLibraryInfo(parameters: Map<string, string>, libraryInfo: LibraryInfo): void; | ||
| /** | ||
| * Add client telemetry parameters | ||
| * @param appTelemetry | ||
| */ | ||
| export declare function addApplicationTelemetry(parameters: Map<string, string>, appTelemetry: ApplicationTelemetry): void; | ||
| /** | ||
| * add prompt | ||
| * @param prompt | ||
| */ | ||
| export declare function addPrompt(parameters: Map<string, string>, prompt: string): void; | ||
| /** | ||
| * add state | ||
| * @param state | ||
| */ | ||
| export declare function addState(parameters: Map<string, string>, state: string): void; | ||
| /** | ||
| * add nonce | ||
| * @param nonce | ||
| */ | ||
| export declare function addNonce(parameters: Map<string, string>, nonce: string): void; | ||
| /** | ||
| * add code_challenge and code_challenge_method | ||
| * - throw if either of them are not passed | ||
| * @param codeChallenge | ||
| * @param codeChallengeMethod | ||
| */ | ||
| export declare function addCodeChallengeParams(parameters: Map<string, string>, codeChallenge?: string, codeChallengeMethod?: string): void; | ||
| /** | ||
| * add the `authorization_code` passed by the user to exchange for a token | ||
| * @param code | ||
| */ | ||
| export declare function addAuthorizationCode(parameters: Map<string, string>, code: string): void; | ||
| /** | ||
| * add the `authorization_code` passed by the user to exchange for a token | ||
| * @param code | ||
| */ | ||
| export declare function addDeviceCode(parameters: Map<string, string>, code: string): void; | ||
| /** | ||
| * add the `refreshToken` passed by the user | ||
| * @param refreshToken | ||
| */ | ||
| export declare function addRefreshToken(parameters: Map<string, string>, refreshToken: string): void; | ||
| /** | ||
| * add the `code_verifier` passed by the user to exchange for a token | ||
| * @param codeVerifier | ||
| */ | ||
| export declare function addCodeVerifier(parameters: Map<string, string>, codeVerifier: string): void; | ||
| /** | ||
| * add client_secret | ||
| * @param clientSecret | ||
| */ | ||
| export declare function addClientSecret(parameters: Map<string, string>, clientSecret: string): void; | ||
| /** | ||
| * add clientAssertion for confidential client flows | ||
| * @param clientAssertion | ||
| */ | ||
| export declare function addClientAssertion(parameters: Map<string, string>, clientAssertion: string): void; | ||
| /** | ||
| * add clientAssertionType for confidential client flows | ||
| * @param clientAssertionType | ||
| */ | ||
| export declare function addClientAssertionType(parameters: Map<string, string>, clientAssertionType: string): void; | ||
| /** | ||
| * add OBO assertion for confidential client flows | ||
| * @param clientAssertion | ||
| */ | ||
| export declare function addOboAssertion(parameters: Map<string, string>, oboAssertion: string): void; | ||
| /** | ||
| * add grant type | ||
| * @param grantType | ||
| */ | ||
| export declare function addRequestTokenUse(parameters: Map<string, string>, tokenUse: string): void; | ||
| /** | ||
| * add grant type | ||
| * @param grantType | ||
| */ | ||
| export declare function addGrantType(parameters: Map<string, string>, grantType: string): void; | ||
| /** | ||
| * add client info | ||
| * | ||
| */ | ||
| export declare function addClientInfo(parameters: Map<string, string>): void; | ||
| /** | ||
| * add clidata=1 to request to indicate client data support | ||
| */ | ||
| export declare function addCliData(parameters: Map<string, string>): void; | ||
| export declare function addInstanceAware(parameters: Map<string, string>): void; | ||
| /** | ||
| * Add extraParameters | ||
| * @param extraParams - String dictionary containing extra parameters to be added. | ||
| */ | ||
| export declare function addExtraParameters(parameters: Map<string, string>, extraParams: StringDict): void; | ||
| export declare function addClientCapabilitiesToClaims(claims?: string, clientCapabilities?: Array<string>): string; | ||
| /** | ||
| * adds `username` for Password Grant flow | ||
| * @param username | ||
| */ | ||
| export declare function addUsername(parameters: Map<string, string>, username: string): void; | ||
| /** | ||
| * adds `password` for Password Grant flow | ||
| * @param password | ||
| */ | ||
| export declare function addPassword(parameters: Map<string, string>, password: string): void; | ||
| /** | ||
| * add pop_jwk to query params | ||
| * @param cnfString | ||
| */ | ||
| export declare function addPopToken(parameters: Map<string, string>, cnfString: string): void; | ||
| /** | ||
| * add SSH JWK and key ID to query params | ||
| */ | ||
| export declare function addSshJwk(parameters: Map<string, string>, sshJwkString: string): void; | ||
| /** | ||
| * add server telemetry fields | ||
| * @param serverTelemetryManager | ||
| */ | ||
| export declare function addServerTelemetry(parameters: Map<string, string>, serverTelemetryManager: ServerTelemetryManager): void; | ||
| /** | ||
| * Adds parameter that indicates to the server that throttling is supported | ||
| */ | ||
| export declare function addThrottling(parameters: Map<string, string>): void; | ||
| /** | ||
| * Adds logout_hint parameter for "silent" logout which prevent server account picker | ||
| */ | ||
| export declare function addLogoutHint(parameters: Map<string, string>, logoutHint: string): void; | ||
| export declare function addBrokerParameters(parameters: Map<string, string>, brokerClientId: string, brokerRedirectUri: string): void; | ||
| /** | ||
| * Add EAR (Encrypted Authorize Response) request parameters | ||
| * @param parameters | ||
| * @param jwk | ||
| */ | ||
| export declare function addEARParameters(parameters: Map<string, string>, jwk: string): void; | ||
| export declare function addResource(parameters: Map<string, string>, resource?: string): void; | ||
| //# sourceMappingURL=RequestParameterBuilder.d.ts.map |
| {"version":3,"file":"RequestParameterBuilder.d.ts","sourceRoot":"","sources":["../../src/request/RequestParameterBuilder.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,SAAS,MA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AAU,EAAE,MAAM,GACnB,IAAI,CAEN;AAED,wBAAgB,mBAAmB,CAC/B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,GAC1B,IAAI,CAUN;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC5B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,GAAG,EAAE,MAAM,GACZ,IAAI,CAMN;AAED,wBAAgB,WAAW,CACvB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,QAAQ,CAAC,EAAE,MAAM,GAClB,IAAI,CAIN"} |
| /** | ||
| * The ScopeSet class creates a set of scopes. Scopes are case-insensitive, unique values, so the Set object in JS makes | ||
| * the most sense to implement for this class. All scopes are trimmed and converted to lower case strings in intersection and union functions | ||
| * to ensure uniqueness of strings. | ||
| */ | ||
| export declare class ScopeSet { | ||
| private scopes; | ||
| constructor(inputScopes: Array<string>); | ||
| /** | ||
| * Factory method to create ScopeSet from space-delimited string | ||
| * @param inputScopeString | ||
| * @param appClientId | ||
| * @param scopesRequired | ||
| */ | ||
| static fromString(inputScopeString: string): ScopeSet; | ||
| /** | ||
| * Creates the set of scopes to search for in cache lookups | ||
| * @param inputScopeString | ||
| * @returns | ||
| */ | ||
| static createSearchScopes(inputScopeString: Array<string>): ScopeSet; | ||
| /** | ||
| * Check if a given scope is present in this set of scopes. | ||
| * @param scope | ||
| */ | ||
| containsScope(scope: string): boolean; | ||
| /** | ||
| * Check if a set of scopes is present in this set of scopes. | ||
| * @param scopeSet | ||
| */ | ||
| containsScopeSet(scopeSet: ScopeSet): boolean; | ||
| /** | ||
| * Check if set of scopes contains only the defaults | ||
| */ | ||
| containsOnlyOIDCScopes(): boolean; | ||
| /** | ||
| * Appends single scope if passed | ||
| * @param newScope | ||
| */ | ||
| appendScope(newScope: string): void; | ||
| /** | ||
| * Appends multiple scopes if passed | ||
| * @param newScopes | ||
| */ | ||
| appendScopes(newScopes: Array<string>): void; | ||
| /** | ||
| * Removes element from set of scopes. | ||
| * @param scope | ||
| */ | ||
| removeScope(scope: string): void; | ||
| /** | ||
| * Removes default scopes from set of scopes | ||
| * Primarily used to prevent cache misses if the default scopes are not returned from the server | ||
| */ | ||
| removeOIDCScopes(): void; | ||
| /** | ||
| * Combines an array of scopes with the current set of scopes. | ||
| * @param otherScopes | ||
| */ | ||
| unionScopeSets(otherScopes: ScopeSet): Set<string>; | ||
| /** | ||
| * Check if scopes intersect between this set and another. | ||
| * @param otherScopes | ||
| */ | ||
| intersectingScopeSets(otherScopes: ScopeSet): boolean; | ||
| /** | ||
| * Returns size of set of scopes. | ||
| */ | ||
| getScopeCount(): number; | ||
| /** | ||
| * Returns the scopes as an array of string values | ||
| */ | ||
| asArray(): Array<string>; | ||
| /** | ||
| * Prints scopes into a space-delimited string | ||
| */ | ||
| printScopes(): string; | ||
| /** | ||
| * Prints scopes into a space-delimited lower-case string (used for caching) | ||
| */ | ||
| printScopesLowerCase(): string; | ||
| } | ||
| //# sourceMappingURL=ScopeSet.d.ts.map |
| {"version":3,"file":"ScopeSet.d.ts","sourceRoot":"","sources":["../../src/request/ScopeSet.ts"],"names":[],"mappings":"AAoBA;;;;GAIG;AACH,qBAAa,QAAQ;IAEjB,OAAO,CAAC,MAAM,CAAc;gBAEhB,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC;IAoBtC;;;;;OAKG;IACH,MAAM,CAAC,UAAU,CAAC,gBAAgB,EAAE,MAAM,GAAG,QAAQ;IAMrD;;;;OAIG;IACH,MAAM,CAAC,kBAAkB,CAAC,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,QAAQ;IAiBpE;;;OAGG;IACH,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IASrC;;;OAGG;IACH,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO;IAW7C;;OAEG;IACH,sBAAsB,IAAI,OAAO;IAWjC;;;OAGG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAMnC;;;OAGG;IACH,YAAY,CAAC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI;IAU5C;;;OAGG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAShC;;;OAGG;IACH,gBAAgB,IAAI,IAAI;IAMxB;;;OAGG;IACH,cAAc,CAAC,WAAW,EAAE,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC;IAclD;;;OAGG;IACH,qBAAqB,CAAC,WAAW,EAAE,QAAQ,GAAG,OAAO;IAkBrD;;OAEG;IACH,aAAa,IAAI,MAAM;IAIvB;;OAEG;IACH,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC;IAMxB;;OAEG;IACH,WAAW,IAAI,MAAM;IAQrB;;OAEG;IACH,oBAAoB,IAAI,MAAM;CAGjC"} |
| /** | ||
| * Controls whether tokens should be stored in the cache or not. If set to false, tokens may still be acquired and returned but will not be cached for later retrieval. | ||
| */ | ||
| export type StoreInCache = { | ||
| accessToken?: boolean; | ||
| idToken?: boolean; | ||
| refreshToken?: boolean; | ||
| }; | ||
| //# sourceMappingURL=StoreInCache.d.ts.map |
| {"version":3,"file":"StoreInCache.d.ts","sourceRoot":"","sources":["../../src/request/StoreInCache.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IAEvB,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC"} |
| import { AccountInfo } from "../account/AccountInfo.js"; | ||
| /** | ||
| * Result returned from the authority's token endpoint. | ||
| * - uniqueId - `oid` or `sub` claim from ID token | ||
| * - tenantId - `tid` claim from ID token | ||
| * - scopes - Scopes that are validated for the respective token | ||
| * - account - An account object representation of the currently signed-in user | ||
| * - idToken - Id token received as part of the response | ||
| * - idTokenClaims - MSAL-relevant ID token claims | ||
| * - accessToken - Access token or SSH certificate received as part of the response | ||
| * - fromCache - Boolean denoting whether token came from cache | ||
| * - expiresOn - Javascript Date object representing relative expiration of access token | ||
| * - extExpiresOn - Javascript Date object representing extended relative expiration of access token in case of server outage | ||
| * - refreshOn - Javascript Date object representing relative time until an access token must be refreshed | ||
| * - state - Value passed in by user in request | ||
| * - familyId - Family ID identifier, usually only used for refresh tokens | ||
| * - requestId - Request ID returned as part of the response | ||
| */ | ||
| export type AuthenticationResult = { | ||
| authority: string; | ||
| uniqueId: string; | ||
| tenantId: string; | ||
| scopes: Array<string>; | ||
| account: AccountInfo | null; | ||
| idToken: string; | ||
| idTokenClaims: object; | ||
| accessToken: string; | ||
| fromCache: boolean; | ||
| expiresOn: Date | null; | ||
| extExpiresOn?: Date; | ||
| refreshOn?: Date; | ||
| tokenType: string; | ||
| correlationId: string; | ||
| requestId?: string; | ||
| state?: string; | ||
| familyId?: string; | ||
| cloudGraphHostName?: string; | ||
| msGraphHost?: string; | ||
| code?: string; | ||
| fromPlatformBroker?: boolean; | ||
| resource?: string; | ||
| }; | ||
| //# sourceMappingURL=AuthenticationResult.d.ts.map |
| {"version":3,"file":"AuthenticationResult.d.ts","sourceRoot":"","sources":["../../src/response/AuthenticationResult.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"} |
| /** | ||
| * Response returned after processing the code response query string or fragment. | ||
| */ | ||
| export type AuthorizationCodePayload = { | ||
| code: string; | ||
| cloud_instance_name?: string; | ||
| cloud_instance_host_name?: string; | ||
| cloud_graph_host_name?: string; | ||
| msgraph_host?: string; | ||
| state?: string; | ||
| nonce?: string; | ||
| client_info?: string; | ||
| }; | ||
| //# sourceMappingURL=AuthorizationCodePayload.d.ts.map |
| {"version":3,"file":"AuthorizationCodePayload.d.ts","sourceRoot":"","sources":["../../src/response/AuthorizationCodePayload.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"} |
| /** | ||
| * Response properties that may be returned by the /authorize endpoint | ||
| */ | ||
| export type AuthorizeResponse = { | ||
| /** | ||
| * Authorization Code to be exchanged for tokens | ||
| */ | ||
| code?: string; | ||
| /** | ||
| * Encrypted Authorize Response (EAR) JWE | ||
| */ | ||
| ear_jwe?: string; | ||
| /** | ||
| * Client info object containing UserId and TenantId | ||
| */ | ||
| client_info?: string; | ||
| /** | ||
| * State string, should match what was sent on request | ||
| */ | ||
| state?: string; | ||
| /** | ||
| * Cloud instance returned when application is instance aware | ||
| */ | ||
| cloud_instance_name?: string; | ||
| /** | ||
| * Cloud instance hostname returned when application is instance aware | ||
| */ | ||
| cloud_instance_host_name?: string; | ||
| /** | ||
| * AAD Graph hostname returned when application is instance aware | ||
| * https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-graph-api | ||
| */ | ||
| cloud_graph_host_name?: string; | ||
| /** | ||
| * Microsoft Graph hostname returned when application is instance aware | ||
| * https://docs.microsoft.com/en-us/graph/overview | ||
| */ | ||
| msgraph_host?: string; | ||
| /** | ||
| * Server error code | ||
| */ | ||
| error?: string; | ||
| /** | ||
| * Server error URI | ||
| */ | ||
| error_uri?: string; | ||
| /** | ||
| * Server error description | ||
| */ | ||
| error_description?: string; | ||
| /** | ||
| * Server Sub-Error | ||
| */ | ||
| suberror?: string; | ||
| /** | ||
| * Timestamp of request | ||
| */ | ||
| timestamp?: string; | ||
| /** | ||
| * Trace Id used to look up request in logs | ||
| */ | ||
| trace_id?: string; | ||
| /** | ||
| * Correlation ID use to look up request in logs | ||
| */ | ||
| correlation_id?: string; | ||
| /** | ||
| * Claims | ||
| */ | ||
| claims?: string; | ||
| /** | ||
| * AccountId for the user, returned when platform broker is available to use | ||
| */ | ||
| accountId?: string; | ||
| /** | ||
| * Client data returned by the server when clidata=1 is sent on the request. | ||
| * On the wire, this is sent as a URL-encoded string in the format: | ||
| * account_type|error|sub_error|cloud_instance|caller_data_boundary | ||
| * In this parsed AuthorizeResponse object, the value is already URL-decoded. | ||
| */ | ||
| clientdata?: string; | ||
| }; | ||
| //# sourceMappingURL=AuthorizeResponse.d.ts.map |
| {"version":3,"file":"AuthorizeResponse.d.ts","sourceRoot":"","sources":["../../src/response/AuthorizeResponse.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"} |
| /** | ||
| * DeviceCode returned by the security token service device code endpoint containing information necessary for device code flow. | ||
| * - userCode: code which user needs to provide when authenticating at the verification URI | ||
| * - deviceCode: code which should be included in the request for the access token | ||
| * - verificationUri: URI where user can authenticate | ||
| * - expiresIn: expiration time of the device code in seconds | ||
| * - interval: interval at which the STS should be polled at | ||
| * - message: message which should be displayed to the user | ||
| */ | ||
| export type DeviceCodeResponse = { | ||
| userCode: string; | ||
| deviceCode: string; | ||
| verificationUri: string; | ||
| expiresIn: number; | ||
| interval: number; | ||
| message: string; | ||
| }; | ||
| export type ServerDeviceCodeResponse = { | ||
| user_code: string; | ||
| device_code: string; | ||
| verification_uri: string; | ||
| expires_in: number; | ||
| interval: number; | ||
| message: string; | ||
| }; | ||
| //# sourceMappingURL=DeviceCodeResponse.d.ts.map |
| {"version":3,"file":"DeviceCodeResponse.d.ts","sourceRoot":"","sources":["../../src/response/DeviceCodeResponse.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC"} |
| import { ServerAuthorizationTokenResponse } from "./ServerAuthorizationTokenResponse.js"; | ||
| /** | ||
| * Response object used for loading external tokens to cache. | ||
| * - token_type: Indicates the token type value. The only type that Azure AD supports is Bearer. | ||
| * - scope: The scopes that the access_token is valid for. | ||
| * - expires_in: How long the access token is valid (in seconds). | ||
| * - id_token: A JSON Web Token (JWT). The app can decode the segments of this token to request information about the user who signed in. | ||
| * - refresh_token: An OAuth 2.0 refresh token. The app can use this token acquire additional access tokens after the current access token expires. | ||
| * - access_token: The requested access token. The app can use this token to authenticate to the secured resource, such as a web API. | ||
| * - client_info: Client info object | ||
| */ | ||
| export type ExternalTokenResponse = Pick<ServerAuthorizationTokenResponse, "token_type" | "scope" | "expires_in" | "ext_expires_in" | "id_token" | "refresh_token" | "refresh_token_expires_in" | "foci"> & { | ||
| access_token?: string; | ||
| client_info?: string; | ||
| }; | ||
| //# sourceMappingURL=ExternalTokenResponse.d.ts.map |
| {"version":3,"file":"ExternalTokenResponse.d.ts","sourceRoot":"","sources":["../../src/response/ExternalTokenResponse.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAEzF;;;;;;;;;GASG;AACH,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACpC,gCAAgC,EAC9B,YAAY,GACZ,OAAO,GACP,YAAY,GACZ,gBAAgB,GAChB,UAAU,GACV,eAAe,GACf,0BAA0B,GAC1B,MAAM,CACX,GAAG;IACA,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"} |
| export type IMDSBadResponse = { | ||
| error: string; | ||
| "newest-versions": Array<string>; | ||
| }; | ||
| //# sourceMappingURL=IMDSBadResponse.d.ts.map |
| {"version":3,"file":"IMDSBadResponse.d.ts","sourceRoot":"","sources":["../../src/response/IMDSBadResponse.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,eAAe,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACpC,CAAC"} |
| import { TokenClaims } from "../account/TokenClaims.js"; | ||
| import { Authority } from "../authority/Authority.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { AccountEntity } from "../cache/entities/AccountEntity.js"; | ||
| import { CacheRecord } from "../cache/entities/CacheRecord.js"; | ||
| import { ICachePlugin } from "../cache/interface/ICachePlugin.js"; | ||
| import { ISerializableTokenCache } from "../cache/interface/ISerializableTokenCache.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { RequestStateObject } from "../utils/StateTypes.js"; | ||
| import { AuthenticationResult } from "./AuthenticationResult.js"; | ||
| import { AuthorizationCodePayload } from "./AuthorizationCodePayload.js"; | ||
| import { ServerAuthorizationTokenResponse } from "./ServerAuthorizationTokenResponse.js"; | ||
| /** | ||
| * Class that handles response parsing. | ||
| * @internal | ||
| */ | ||
| export declare class ResponseHandler { | ||
| private clientId; | ||
| private cacheStorage; | ||
| private cryptoObj; | ||
| private logger; | ||
| private homeAccountIdentifier; | ||
| private performanceClient; | ||
| private serializableCache; | ||
| private persistencePlugin; | ||
| constructor(clientId: string, cacheStorage: CacheManager, cryptoObj: ICrypto, logger: Logger, performanceClient: IPerformanceClient, serializableCache: ISerializableTokenCache | null, persistencePlugin: ICachePlugin | null); | ||
| /** | ||
| * Function which validates server authorization token response. | ||
| * @param serverResponse | ||
| * @param correlationId | ||
| * @param refreshAccessToken | ||
| */ | ||
| validateTokenResponse(serverResponse: ServerAuthorizationTokenResponse, correlationId: string, refreshAccessToken?: boolean): void; | ||
| /** | ||
| * Returns a constructed token response based on given string. Also manages the cache updates and cleanups. | ||
| * @param serverTokenResponse | ||
| * @param authority | ||
| */ | ||
| handleServerTokenResponse(serverTokenResponse: ServerAuthorizationTokenResponse, authority: Authority, reqTimestamp: number, request: BaseAuthRequest, apiId: number, authCodePayload?: AuthorizationCodePayload, userAssertionHash?: string, handlingRefreshTokenResponse?: boolean, forceCacheRefreshTokenResponse?: boolean, serverRequestId?: string): Promise<AuthenticationResult>; | ||
| /** | ||
| * Generates CacheRecord | ||
| * @param serverTokenResponse | ||
| * @param idTokenObj | ||
| * @param authority | ||
| */ | ||
| private generateCacheRecord; | ||
| /** | ||
| * Creates an @AuthenticationResult from @CacheRecord , @IdToken , and a boolean that states whether or not the result is from cache. | ||
| * | ||
| * Optionally takes a state string that is set as-is in the response. | ||
| * | ||
| * @param cacheRecord | ||
| * @param idTokenObj | ||
| * @param fromTokenCache | ||
| * @param stateString | ||
| */ | ||
| static generateAuthenticationResult(cryptoObj: ICrypto, authority: Authority, cacheRecord: CacheRecord, fromTokenCache: boolean, request: BaseAuthRequest, performanceClient: IPerformanceClient, idTokenClaims?: TokenClaims, requestState?: RequestStateObject, serverTokenResponse?: ServerAuthorizationTokenResponse, requestId?: string): Promise<AuthenticationResult>; | ||
| } | ||
| export declare function buildAccountToCache(cacheStorage: CacheManager, authority: Authority, homeAccountId: string, base64Decode: (input: string) => string, correlationId: string, idTokenClaims?: TokenClaims, clientInfo?: string, environment?: string, claimsTenantId?: string | null, authCodePayload?: AuthorizationCodePayload, nativeAccountId?: string, logger?: Logger, performanceClient?: IPerformanceClient): AccountEntity; | ||
| //# sourceMappingURL=ResponseHandler.d.ts.map |
| {"version":3,"file":"ResponseHandler.d.ts","sourceRoot":"","sources":["../../src/response/ResponseHandler.ts"],"names":[],"mappings":"AAeA,OAAO,EACH,WAAW,EAEd,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAG/D,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AAIxF,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAW/C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,kBAAkB,EAAE,M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ACH,OAAO,CAAC,mBAAmB;IAwJ3B;;;;;;;;;OASG;WACU,4BAA4B,CACrC,SAAS,EAAE,OAAO,EAClB,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,cAAc,EAAE,OAAO,EACvB,OAAO,EAAE,eAAe,EACxB,iBAAiB,EAAE,kBAAkB,EACrC,aAAa,CAAC,EAAE,WAAW,EAC3B,YAAY,CAAC,EAAE,kBAAkB,EACjC,mBAAmB,CAAC,EAAE,gCAAgC,EACtD,SAAS,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,oBAAoB,CAAC;CAqGnC;AAED,wBAAgB,mBAAmB,CAC/B,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,EACvC,aAAa,EAAE,MAAM,EACrB,aAAa,CAAC,EAAE,WAAW,EAC3B,UAAU,CAAC,EAAE,MAAM,EACnB,WAAW,CAAC,EAAE,MAAM,EACpB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,EAC9B,eAAe,CAAC,EAAE,wBAAwB,EAC1C,eAAe,CAAC,EAAE,MAAM,EACxB,MAAM,CAAC,EAAE,MAAM,EACf,iBAAiB,CAAC,EAAE,kBAAkB,GACvC,aAAa,CAmEf"} |
| import { AuthenticationScheme } from "../utils/Constants.js"; | ||
| /** | ||
| * Deserialized response object from server authorization code request. | ||
| * - token_type: Indicates the token type value. Can be either Bearer or pop. | ||
| * - scope: The scopes that the access_token is valid for. | ||
| * - expires_in: How long the access token is valid (in seconds). | ||
| * - refresh_in: Duration afer which a token should be renewed, regardless of expiration. | ||
| * - ext_expires_in: How long the access token is valid (in seconds) if the server isn't responding. | ||
| * - access_token: The requested access token. The app can use this token to authenticate to the secured resource, such as a web API. | ||
| * - refresh_token: An OAuth 2.0 refresh token. The app can use this token acquire additional access tokens after the current access token expires. | ||
| * - id_token: A JSON Web Token (JWT). The app can decode the segments of this token to request information about the user who signed in. | ||
| * - key_id: A string that uniquely identifies a public key that the request is bound to. | ||
| * | ||
| * In case of error: | ||
| * - error: An error code string that can be used to classify types of errors that occur, and can be used to react to errors. | ||
| * - error_description: A specific error message that can help a developer identify the root cause of an authentication error. | ||
| * - error_codes: A list of STS-specific error codes that can help in diagnostics. | ||
| * - timestamp: The time at which the error occurred. | ||
| * - trace_id: A unique identifier for the request that can help in diagnostics. | ||
| * - correlation_id: A unique identifier for the request that can help in diagnostics across components. | ||
| * - status: the network request's response status | ||
| */ | ||
| export type ServerAuthorizationTokenResponse = { | ||
| status?: number; | ||
| token_type?: AuthenticationScheme; | ||
| scope?: string; | ||
| expires_in?: number; | ||
| refresh_in?: number; | ||
| ext_expires_in?: number; | ||
| access_token?: string; | ||
| refresh_token?: string; | ||
| refresh_token_expires_in?: number; | ||
| id_token?: string; | ||
| client_info?: string; | ||
| foci?: string; | ||
| spa_code?: string; | ||
| spa_accountid?: string; | ||
| key_id?: string; | ||
| error?: string; | ||
| error_description?: string; | ||
| error_codes?: Array<string>; | ||
| suberror?: string; | ||
| timestamp?: string; | ||
| trace_id?: string; | ||
| correlation_id?: string; | ||
| claims?: string; | ||
| }; | ||
| //# sourceMappingURL=ServerAuthorizationTokenResponse.d.ts.map |
| {"version":3,"file":"ServerAuthorizationTokenResponse.d.ts","sourceRoot":"","sources":["../../src/response/ServerAuthorizationTokenResponse.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"} |
| import { PerformanceEvent } from "./PerformanceEvent.js"; | ||
| import { AccountInfo } from "../../account/AccountInfo.js"; | ||
| export type PerformanceCallbackFunction = (events: PerformanceEvent[]) => void; | ||
| export type InProgressPerformanceEvent = { | ||
| end: (event?: Partial<PerformanceEvent>, error?: unknown, account?: AccountInfo) => PerformanceEvent | null; | ||
| discard: () => void; | ||
| add: (fields: { | ||
| [key: string]: {} | undefined; | ||
| }) => void; | ||
| increment: (fields: { | ||
| [key: string]: number | undefined; | ||
| }) => void; | ||
| event: PerformanceEvent; | ||
| }; | ||
| export interface IPerformanceClient { | ||
| startMeasurement(measureName: string, correlationId?: string): InProgressPerformanceEvent; | ||
| endMeasurement(event: PerformanceEvent): PerformanceEvent | null; | ||
| discardMeasurements(correlationId: string): void; | ||
| addFields(fields: { | ||
| [key: string]: {} | undefined; | ||
| }, correlationId: string): void; | ||
| incrementFields(fields: { | ||
| [key: string]: number | undefined; | ||
| }, correlationId: string): void; | ||
| removePerformanceCallback(callbackId: string): boolean; | ||
| addPerformanceCallback(callback: PerformanceCallbackFunction): string; | ||
| emitEvents(events: PerformanceEvent[], correlationId: string): void; | ||
| generateId(): string; | ||
| } | ||
| //# sourceMappingURL=IPerformanceClient.d.ts.map |
| {"version":3,"file":"IPerformanceClient.d.ts","sourceRoot":"","sources":["../../../src/telemetry/performance/IPerformanceClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,MAAM,MAAM,2BAA2B,GAAG,CAAC,MAAM,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;AAE/E,MAAM,MAAM,0BAA0B,GAAG;IACrC,GAAG,EAAE,CACD,KAAK,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,EACjC,KAAK,CAAC,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,WAAW,KACpB,gBAAgB,GAAG,IAAI,CAAC;IAC7B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,GAAG,EAAE,CAAC,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,EAAE,GAAG,SAAS,CAAA;KAAE,KAAK,IAAI,CAAC;IACzD,SAAS,EAAE,CAAC,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;KAAE,KAAK,IAAI,CAAC;IACnE,KAAK,EAAE,gBAAgB,CAAC;CAC3B,CAAC;AAEF,MAAM,WAAW,kBAAkB;IAC/B,gBAAgB,CACZ,WAAW,EAAE,MAAM,EACnB,aAAa,CAAC,EAAE,MAAM,GACvB,0BAA0B,CAAC;IAC9B,cAAc,CAAC,KAAK,EAAE,gBAAgB,GAAG,gBAAgB,GAAG,IAAI,CAAC;IACjE,mBAAmB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IACjD,SAAS,CACL,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,EAAE,GAAG,SAAS,CAAA;KAAE,EACzC,aAAa,EAAE,MAAM,GACtB,IAAI,CAAC;IACR,eAAe,CACX,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;KAAE,EAC7C,aAAa,EAAE,MAAM,GACtB,IAAI,CAAC;IACR,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;IACvD,sBAAsB,CAAC,QAAQ,EAAE,2BAA2B,GAAG,MAAM,CAAC;IACtE,UAAU,CAAC,MAAM,EAAE,gBAAgB,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IACpE,UAAU,IAAI,MAAM,CAAC;CACxB"} |
| export interface IPerformanceMeasurement { | ||
| startMeasurement(): void; | ||
| endMeasurement(): void; | ||
| flushMeasurement(): number | null; | ||
| } | ||
| //# sourceMappingURL=IPerformanceMeasurement.d.ts.map |
| {"version":3,"file":"IPerformanceMeasurement.d.ts","sourceRoot":"","sources":["../../../src/telemetry/performance/IPerformanceMeasurement.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,uBAAuB;IACpC,gBAAgB,IAAI,IAAI,CAAC;IACzB,cAAc,IAAI,IAAI,CAAC;IACvB,gBAAgB,IAAI,MAAM,GAAG,IAAI,CAAC;CACrC"} |
| import { ApplicationTelemetry } from "../../config/ClientConfiguration.js"; | ||
| import { Logger } from "../../logger/Logger.js"; | ||
| import { InProgressPerformanceEvent, IPerformanceClient, PerformanceCallbackFunction } from "./IPerformanceClient.js"; | ||
| import { PerformanceEvent, PerformanceEventContext, PerformanceEventStackedContext } from "./PerformanceEvent.js"; | ||
| import { AccountInfo } from "../../account/AccountInfo.js"; | ||
| /** | ||
| * Starts context by adding payload to the stack | ||
| * @param event {PerformanceEvent} | ||
| * @param stack {?PerformanceEventStackedContext[]} stack | ||
| */ | ||
| export declare function startContext(event: PerformanceEvent, stack?: PerformanceEventStackedContext[]): void; | ||
| /** | ||
| * Ends context by removing payload from the stack and returning parent or self, if stack is empty, payload | ||
| * | ||
| * @param event {PerformanceEvent} | ||
| * @param stack {?PerformanceEventStackedContext[]} stack | ||
| * @param error {?unknown} error | ||
| */ | ||
| export declare function endContext(event: PerformanceEvent, stack?: PerformanceEventStackedContext[], error?: unknown): PerformanceEventContext | undefined; | ||
| /** | ||
| * Adds error name and stack trace to the telemetry event | ||
| * @param error {Error} | ||
| * @param logger {Logger} | ||
| * @param event {PerformanceEvent} | ||
| * @param stackMaxSize {number} max error stack size to capture | ||
| */ | ||
| export declare function addError(error: unknown, logger: Logger, event: PerformanceEvent, stackMaxSize?: number): void; | ||
| /** | ||
| * Compacts error stack into array by fetching N first entries | ||
| * @param stack {string} error stack | ||
| * @param stackMaxSize {number} max error stack size to capture | ||
| * @returns {string[]} | ||
| */ | ||
| export declare function compactStack(stack: string, stackMaxSize: number): string[]; | ||
| /** | ||
| * Compacts error stack line by shortening file path | ||
| * Example: https://localhost/msal-common/src/authority/Authority.js:100:1 -> Authority.js:100:1 | ||
| * @param line {string} stack line | ||
| * @returns {string} | ||
| */ | ||
| export declare function compactStackLine(line: string): string; | ||
| export declare function getAccountType(account?: AccountInfo): "AAD" | "MSA" | "B2C" | undefined; | ||
| export declare abstract class PerformanceClient implements IPerformanceClient { | ||
| protected authority: string; | ||
| protected libraryName: string; | ||
| protected libraryVersion: string; | ||
| protected applicationTelemetry: ApplicationTelemetry; | ||
| protected clientId: string; | ||
| protected logger: Logger; | ||
| protected callbacks: Map<string, PerformanceCallbackFunction>; | ||
| /** | ||
| * Multiple events with the same correlation id. | ||
| * @protected | ||
| * @type {Map<string, PerformanceEvent>} | ||
| */ | ||
| protected eventsByCorrelationId: Map<string, PerformanceEvent>; | ||
| protected intFields: Set<string>; | ||
| /** | ||
| * Map of stacked events by correlation id. | ||
| * | ||
| * @protected | ||
| */ | ||
| protected eventStack: Map<string, PerformanceEventStackedContext[]>; | ||
| /** | ||
| * Creates an instance of PerformanceClient, | ||
| * an abstract class containing core performance telemetry logic. | ||
| * | ||
| * @constructor | ||
| * @param {string} clientId Client ID of the application | ||
| * @param {string} authority Authority used by the application | ||
| * @param {Logger} logger Logger used by the application | ||
| * @param {string} libraryName Name of the library | ||
| * @param {string} libraryVersion Version of the library | ||
| * @param {ApplicationTelemetry} applicationTelemetry application name and version | ||
| * @param {Set<String>} intFields integer fields to be truncated | ||
| */ | ||
| constructor(clientId: string, authority: string, logger: Logger, libraryName: string, libraryVersion: string, applicationTelemetry: ApplicationTelemetry, intFields?: Set<string>); | ||
| /** | ||
| * Generates and returns a unique id, typically a guid. | ||
| * | ||
| * @abstract | ||
| * @returns {string} | ||
| */ | ||
| abstract generateId(): string; | ||
| /** | ||
| * Starts measuring performance for a given operation. Returns a function that should be used to end the measurement. | ||
| * | ||
| * @param {PerformanceEvents} measureName | ||
| * @param {?string} [correlationId] | ||
| * @returns {InProgressPerformanceEvent} | ||
| */ | ||
| startMeasurement(measureName: string, correlationId?: string): InProgressPerformanceEvent; | ||
| /** | ||
| * Stops measuring the performance for an operation. Should only be called directly by PerformanceClient classes, | ||
| * as consumers should instead use the function returned by startMeasurement. | ||
| * Adds a new field named as "[event name]DurationMs" for sub-measurements, completes and emits an event | ||
| * otherwise. | ||
| * | ||
| * @param {PerformanceEvent} event | ||
| * @param {unknown} error | ||
| * @param {AccountInfo?} account | ||
| * @returns {(PerformanceEvent | null)} | ||
| */ | ||
| endMeasurement(event: PerformanceEvent, error?: unknown, account?: AccountInfo): PerformanceEvent | null; | ||
| /** | ||
| * Saves extra information to be emitted when the measurements are flushed | ||
| * @param fields | ||
| * @param correlationId | ||
| */ | ||
| addFields(fields: { | ||
| [key: string]: {} | undefined; | ||
| }, correlationId: string): void; | ||
| /** | ||
| * Increment counters to be emitted when the measurements are flushed | ||
| * @param fields {string[]} | ||
| * @param correlationId {string} correlation identifier | ||
| */ | ||
| incrementFields(fields: { | ||
| [key: string]: number | undefined; | ||
| }, correlationId: string): void; | ||
| /** | ||
| * Upserts event into event cache. | ||
| * First key is the correlation id, second key is the event id. | ||
| * Allows for events to be grouped by correlation id, | ||
| * and to easily allow for properties on them to be updated. | ||
| * | ||
| * @private | ||
| * @param {PerformanceEvent} event | ||
| */ | ||
| protected cacheEventByCorrelationId(event: PerformanceEvent): void; | ||
| /** | ||
| * Removes measurements and aux data for a given correlation id. | ||
| * | ||
| * @param {string} correlationId | ||
| */ | ||
| discardMeasurements(correlationId: string): void; | ||
| /** | ||
| * Registers a callback function to receive performance events. | ||
| * | ||
| * @param {PerformanceCallbackFunction} callback | ||
| * @returns {string} | ||
| */ | ||
| addPerformanceCallback(callback: PerformanceCallbackFunction): string; | ||
| /** | ||
| * Removes a callback registered with addPerformanceCallback. | ||
| * | ||
| * @param {string} callbackId | ||
| * @returns {boolean} | ||
| */ | ||
| removePerformanceCallback(callbackId: string): boolean; | ||
| /** | ||
| * Emits events to all registered callbacks. | ||
| * | ||
| * @param {PerformanceEvent[]} events | ||
| * @param {?string} [correlationId] | ||
| */ | ||
| emitEvents(events: PerformanceEvent[], correlationId: string): void; | ||
| /** | ||
| * Enforce truncation of integral fields in performance event. | ||
| * @param {PerformanceEvent} event performance event to update. | ||
| */ | ||
| private truncateIntegralFields; | ||
| /** | ||
| * Returns event duration in milliseconds | ||
| * @param startTimeMs {number} | ||
| * @returns {number} | ||
| */ | ||
| private getDurationMs; | ||
| } | ||
| //# sourceMappingURL=PerformanceClient.d.ts.map |
| {"version":3,"file":"PerformanceClient.d.ts","sourceRoot":"","sources":["../../../src/telemetry/performance/PerformanceClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAA4B,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EACH,0BAA0B,EAC1B,kBAAkB,EAClB,2BAA2B,EAC9B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGH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AKG;IACH,sBAAsB,CAAC,QAAQ,EAAE,2BAA2B,GAAG,MAAM;IAqBrE;;;;;OAKG;IACH,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAkBtD;;;;;OAKG;IACH,UAAU,CAAC,MAAM,EAAE,gBAAgB,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAiBnE;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAU9B;;;;OAIG;IACH,OAAO,CAAC,aAAa;CAKxB"} |
| import { DataBoundary } from "../../account/AccountInfo.js"; | ||
| /** | ||
| * State of the performance event. | ||
| * | ||
| * @export | ||
| * @enum {number} | ||
| */ | ||
| export declare const PerformanceEventStatus: { | ||
| readonly NotStarted: 0; | ||
| readonly InProgress: 1; | ||
| readonly Completed: 2; | ||
| }; | ||
| export type PerformanceEventStatus = (typeof PerformanceEventStatus)[keyof typeof PerformanceEventStatus]; | ||
| export type SubMeasurement = { | ||
| name: string; | ||
| startTimeMs: number; | ||
| }; | ||
| /** | ||
| * Performance measurement taken by the library, including metadata about the request and application. | ||
| * | ||
| * @export | ||
| * @typedef {PerformanceEvent} | ||
| */ | ||
| export type PerformanceEvent = { | ||
| /** | ||
| * Unique id for the event | ||
| * | ||
| * @type {string} | ||
| */ | ||
| eventId: string; | ||
| /** | ||
| * State of the perforance measure. | ||
| * | ||
| * @type {PerformanceEventStatus} | ||
| */ | ||
| status: PerformanceEventStatus; | ||
| /** | ||
| * Login authority used for the request | ||
| * | ||
| * @type {string} | ||
| */ | ||
| authority: string; | ||
| /** | ||
| * Client id for the application | ||
| * | ||
| * @type {string} | ||
| */ | ||
| clientId: string; | ||
| /** | ||
| * Correlation ID used for the request | ||
| * | ||
| * @type {string} | ||
| */ | ||
| correlationId: string; | ||
| /** | ||
| * End-to-end duration in milliseconds. | ||
| * @date 3/22/2022 - 3:40:05 PM | ||
| * | ||
| * @type {number} | ||
| */ | ||
| durationMs?: number; | ||
| /** | ||
| * Visibility of the page when the event completed. | ||
| * Read from: https://developer.mozilla.org/docs/Web/API/Page_Visibility_API | ||
| * | ||
| * @type {?(string | null)} | ||
| */ | ||
| endPageVisibility?: string | null; | ||
| /** | ||
| * Whether the result was retrieved from the cache. | ||
| * | ||
| * @type {(boolean | null)} | ||
| */ | ||
| fromCache?: boolean | null; | ||
| /** | ||
| * Event name (usually in the form of classNameFunctionName) | ||
| * | ||
| * @type {string} | ||
| */ | ||
| name: string; | ||
| /** | ||
| * Visibility of the page when the event completed. | ||
| * Read from: https://developer.mozilla.org/docs/Web/API/Page_Visibility_API | ||
| * | ||
| * @type {?(string | null)} | ||
| */ | ||
| startPageVisibility?: string | null; | ||
| /** | ||
| * Online status when the event started. | ||
| * Read from: https://developer.mozilla.org/docs/Web/API/NavigatorOnLine/onLine | ||
| */ | ||
| startOnlineStatus?: boolean | null; | ||
| /** | ||
| * Unix millisecond timestamp when the event was initiated. | ||
| * | ||
| * @type {number} | ||
| */ | ||
| startTimeMs: number; | ||
| /** | ||
| * Whether or the operation completed successfully. | ||
| * | ||
| * @type {(boolean | null)} | ||
| */ | ||
| success?: boolean | null; | ||
| /** | ||
| * Add specific error code in case of failure | ||
| * | ||
| * @type {string} | ||
| */ | ||
| errorCode?: string; | ||
| /** | ||
| * Add specific sub error code in case of failure | ||
| * | ||
| * @type {string} | ||
| */ | ||
| subErrorCode?: string; | ||
| /** | ||
| * Server error number | ||
| */ | ||
| serverErrorNo?: string; | ||
| /** | ||
| * Server sub error number | ||
| */ | ||
| serverSubErrorNo?: string; | ||
| /** | ||
| * Name of the library used for the operation. | ||
| * | ||
| * @type {string} | ||
| */ | ||
| libraryName: string; | ||
| /** | ||
| * Version of the library used for the operation. | ||
| * | ||
| * @type {string} | ||
| */ | ||
| libraryVersion: string; | ||
| /** | ||
| * Version of the library used last. Used to track upgrades and downgrades | ||
| */ | ||
| previousLibraryVersion?: string; | ||
| /** | ||
| * Whether the response is from a native component (e.g., WAM) | ||
| * | ||
| * @type {?boolean} | ||
| */ | ||
| isNativeBroker?: boolean; | ||
| /** | ||
| * Platform-specific fields, when calling STS and/or broker for token requests | ||
| */ | ||
| isPlatformAuthorizeRequest?: boolean; | ||
| isPlatformBrokerRequest?: boolean; | ||
| brokerErrorName?: string; | ||
| brokerErrorCode?: string; | ||
| /** | ||
| * Request ID returned from the response | ||
| * | ||
| * @type {?string} | ||
| */ | ||
| requestId?: string; | ||
| /** | ||
| * Cache lookup policy | ||
| * | ||
| * @type {?number} | ||
| */ | ||
| cacheLookupPolicy?: number | undefined; | ||
| /** | ||
| * Cache Outcome | ||
| * @type {?number} | ||
| */ | ||
| cacheOutcome?: number; | ||
| /** | ||
| * Sub-measurements for internal use. To be deleted before flushing. | ||
| */ | ||
| incompleteSubMeasurements?: Map<string, SubMeasurement>; | ||
| visibilityChangeCount?: number; | ||
| onlineStatusChangeCount?: number; | ||
| incompleteSubsCount?: number; | ||
| /** | ||
| * Network connection info from the Network Information API (Chromium only). | ||
| * Read from: https://developer.mozilla.org/docs/Web/API/NetworkInformation | ||
| */ | ||
| networkEffectiveType?: string; | ||
| networkRtt?: number; | ||
| /** | ||
| * CorrelationId of the in progress iframe request that was awaited | ||
| */ | ||
| awaitIframeCorrelationId?: string; | ||
| /** | ||
| * Monitor_window_timeout debugging telemetry | ||
| */ | ||
| redirectBridgeTimeoutMs?: number; | ||
| isRedirectUriCrossOrigin?: boolean; | ||
| redirectBridgeMessageVersion?: number; | ||
| lateResponseExperimentEnabled?: boolean; | ||
| /** | ||
| * Size of the id token | ||
| * | ||
| * @type {number} | ||
| */ | ||
| idTokenSize?: number; | ||
| /** | ||
| * | ||
| * Size of the access token | ||
| * | ||
| * @type {number} | ||
| */ | ||
| accessTokenSize?: number; | ||
| /** | ||
| * | ||
| * Size of the refresh token | ||
| * | ||
| * @type {number} | ||
| */ | ||
| refreshTokenSize?: number | undefined; | ||
| /** | ||
| * Application name as specified by the app. | ||
| * | ||
| * @type {?string} | ||
| */ | ||
| appName?: string; | ||
| /** | ||
| * Application version as specified by the app. | ||
| * | ||
| * @type {?string} | ||
| */ | ||
| appVersion?: string; | ||
| /** | ||
| * The following are fields that may be emitted in native broker scenarios | ||
| */ | ||
| extensionId?: string; | ||
| extensionVersion?: string; | ||
| matsBrokerVersion?: string; | ||
| matsAccountJoinOnStart?: string; | ||
| matsAccountJoinOnEnd?: string; | ||
| matsDeviceJoin?: string; | ||
| matsPromptBehavior?: string; | ||
| matsApiErrorCode?: number; | ||
| matsUiVisible?: boolean; | ||
| matsSilentCode?: number; | ||
| matsSilentBiSubCode?: number; | ||
| matsSilentMessage?: string; | ||
| matsSilentStatus?: number; | ||
| matsHttpStatus?: number; | ||
| matsHttpEventCount?: number; | ||
| /** | ||
| * Http POST metadata | ||
| */ | ||
| httpVerToken?: string; | ||
| httpStatus?: number; | ||
| contentTypeHeader?: string; | ||
| contentLengthHeader?: string; | ||
| /** | ||
| * Platform broker fields | ||
| */ | ||
| allowPlatformBroker?: boolean; | ||
| extensionInstalled?: boolean; | ||
| extensionHandshakeTimeoutMs?: number; | ||
| extensionHandshakeTimedOut?: boolean; | ||
| /** | ||
| * Nested App Auth Fields | ||
| */ | ||
| nestedAppAuthRequest?: boolean; | ||
| /** | ||
| * Multiple matched access/id/refresh tokens in the cache | ||
| */ | ||
| multiMatchedAT?: number; | ||
| multiMatchedID?: number; | ||
| multiMatchedRT?: number; | ||
| errorName?: string; | ||
| errorStack?: string[]; | ||
| context?: string; | ||
| cacheLocation?: string; | ||
| cacheRetentionDays?: number; | ||
| accountCachedBy?: string; | ||
| acntLoggedOut?: boolean; | ||
| cacheMatchedAccounts?: number; | ||
| cacheRtCount?: number; | ||
| cacheIdCount?: number; | ||
| cacheAtCount?: number; | ||
| scenarioId?: string; | ||
| accountType?: "AAD" | "MSA" | "B2C"; | ||
| /** | ||
| * Server error that triggers a request retry | ||
| * | ||
| * @type {string} | ||
| */ | ||
| retryError?: string; | ||
| embeddedClientId?: string; | ||
| embeddedRedirectUri?: string; | ||
| isAsyncPopup?: boolean; | ||
| cacheRtExpiresOnSeconds?: number; | ||
| ntwkRtExpiresOnSeconds?: number; | ||
| extRtExpiresOnSeconds?: number; | ||
| rtOffsetSeconds?: number; | ||
| sidFromClaim?: boolean; | ||
| sidFromClaims?: boolean; | ||
| sidFromRequest?: boolean; | ||
| loginHintFromRequest?: boolean; | ||
| loginHintFromUpn?: boolean; | ||
| loginHintFromClaim?: boolean; | ||
| domainHintFromRequest?: boolean; | ||
| prompt?: string; | ||
| usePreGeneratedPkce?: boolean; | ||
| msalInstanceCount?: number; | ||
| sameClientIdInstanceCount?: number; | ||
| navigateCallbackResult?: boolean; | ||
| dataBoundary?: DataBoundary; | ||
| logs?: string; | ||
| isMcp?: boolean; | ||
| /** | ||
| * Source of cloud discovery metadata (config, cache, network, hardcoded_values) | ||
| */ | ||
| cloudDiscoverySource?: string; | ||
| /** | ||
| * Source of authority endpoint metadata (config, cache, network, hardcoded_values) | ||
| */ | ||
| authorityEndpointSource?: string; | ||
| /** | ||
| * Number of accounts removed during cache cleanup | ||
| */ | ||
| accountsRemoved?: number; | ||
| /** | ||
| * Number of access tokens removed during cache cleanup | ||
| */ | ||
| accessTokensRemoved?: number; | ||
| /** | ||
| * Number of failures when removing token binding keys | ||
| */ | ||
| removeTokenBindingKeyFailure?: number; | ||
| /** | ||
| * Reason for silent refresh fallback to iframe | ||
| * Format: errorCode or errorCode|subError | ||
| * | ||
| * @type {?string} | ||
| */ | ||
| silentRefreshReason?: string; | ||
| /** | ||
| * Whether this request was deduped with another in-flight request | ||
| */ | ||
| deduped?: boolean; | ||
| /** | ||
| * Whether the user has "Keep Me Signed In" enabled | ||
| */ | ||
| kmsi?: boolean; | ||
| /** | ||
| * Cached SSO capability status from the most recent SSO verification | ||
| */ | ||
| ssoCapable?: boolean; | ||
| /** | ||
| * Whether this event was executed in the background | ||
| */ | ||
| isBackground?: boolean; | ||
| /** | ||
| * Cache migration telemetry — pre-migration counts | ||
| */ | ||
| preMigrateAcntCount?: number; | ||
| preMigrateATCount?: number; | ||
| preMigrateITCount?: number; | ||
| preMigrateRTCount?: number; | ||
| /** | ||
| * Cache migration telemetry — post-migration counts | ||
| */ | ||
| postMigrateAcntCount?: number; | ||
| postMigrateATCount?: number; | ||
| postMigrateITCount?: number; | ||
| postMigrateRTCount?: number; | ||
| /** | ||
| * Cache migration telemetry — old schema counts | ||
| */ | ||
| oldAcntCount?: number; | ||
| oldATCount?: number; | ||
| oldITCount?: number; | ||
| oldRTCount?: number; | ||
| /** | ||
| * Cache migration telemetry — skipped and migrated counts | ||
| */ | ||
| skipATMigrateCount?: number; | ||
| skipITMigrateCount?: number; | ||
| skipRTMigrateCount?: number; | ||
| migratedATCount?: number; | ||
| migratedITCount?: number; | ||
| migratedRTCount?: number; | ||
| /** | ||
| * Cache telemetry — expired, invalid, and removed counts | ||
| */ | ||
| expiredCacheRemovedCount?: number; | ||
| expiredAcntRemovedCount?: number; | ||
| invalidCacheCount?: number; | ||
| /** | ||
| * Encrypted cache telemetry | ||
| */ | ||
| unencryptedCacheCount?: number; | ||
| encryptedCacheCount?: number; | ||
| encryptedCacheExpiredCount?: number; | ||
| encryptedCacheCorruptionCount?: number; | ||
| /** | ||
| * Container for dynamically-named telemetry fields. | ||
| * Fields whose names are constructed at runtime (e.g., "[eventName]CallCount") | ||
| * should be stored here instead of being set as top-level properties. | ||
| * Use the "ext." prefix when calling addFields/incrementFields to automatically | ||
| * route fields to this sub-object. | ||
| * | ||
| * @remarks | ||
| * This property is typed as `Record<string, string | number>`. | ||
| */ | ||
| ext?: Record<string, string | number>; | ||
| }; | ||
| export type PerformanceEventContext = { | ||
| dur?: number; | ||
| err?: string; | ||
| subErr?: string; | ||
| fail?: number; | ||
| }; | ||
| export type PerformanceEventStackedContext = PerformanceEventContext & { | ||
| name?: string; | ||
| childErr?: string; | ||
| }; | ||
| /** | ||
| * Prefix used to mark telemetry field names as dynamic. | ||
| * Fields with this prefix in addFields/incrementFields calls will be routed | ||
| * to the PerformanceEvent.ext sub-object. | ||
| */ | ||
| export declare const EXT_FIELD_PREFIX = "ext."; | ||
| export declare const IntFields: ReadonlySet<string>; | ||
| //# sourceMappingURL=PerformanceEvent.d.ts.map |
| {"version":3,"file":"PerformanceEvent.d.ts","sourceRoot":"","sources":["../../../src/telemetry/performance/PerformanceEvent.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;;;;CAIzB,CAAC;AACX,MAAM,MAAM,sBAAsB,GAC9B,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC;AAEzE,MAAM,MAAM,cAAc,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC3B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,MAAM,EAAE,sBAAsB,CAAC;IAE/B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE3B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEnC;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,GAA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int | ||
| */ | ||
| export declare const NetworkClientSendPostRequestAsync = "networkClientSendPostRequestAsync"; | ||
| export declare const RefreshTokenClientExecutePostToTokenEndpoint = "refreshTokenClientExecutePostToTokenEndpoint"; | ||
| export declare const AuthorizationCodeClientExecutePostToTokenEndpoint = "authorizationCodeClientExecutePostToTokenEndpoint"; | ||
| /** | ||
| * Time spent on the network for refresh token acquisition | ||
| */ | ||
| export declare const RefreshTokenClientExecuteTokenRequest = "refreshTokenClientExecuteTokenRequest"; | ||
| /** | ||
| * Time taken for acquiring refresh token , records RT size | ||
| */ | ||
| export declare const RefreshTokenClientAcquireToken = "refreshTokenClientAcquireToken"; | ||
| /** | ||
| * Time taken for acquiring cached refresh token | ||
| */ | ||
| export declare const RefreshTokenClientAcquireTokenWithCachedRefreshToken = "refreshTokenClientAcquireTokenWithCachedRefreshToken"; | ||
| /** | ||
| * Helper function to create token request body in RefreshTokenClient (msal-common). | ||
| */ | ||
| export declare const RefreshTokenClientCreateTokenRequestBody = "refreshTokenClientCreateTokenRequestBody"; | ||
| export declare const SilentFlowClientGenerateResultFromCacheRecord = "silentFlowClientGenerateResultFromCacheRecord"; | ||
| /** | ||
| * getAuthCodeUrl API (msal-browser and msal-node). | ||
| */ | ||
| export declare const GetAuthCodeUrl = "getAuthCodeUrl"; | ||
| /** | ||
| * Functions from InteractionHandler (msal-browser) | ||
| */ | ||
| export declare const HandleCodeResponseFromServer = "handleCodeResponseFromServer"; | ||
| /** | ||
| * APIs in Authorization Code Client (msal-common) | ||
| */ | ||
| export declare const AuthClientExecuteTokenRequest = "authClientExecuteTokenRequest"; | ||
| export declare const AuthClientCreateTokenRequestBody = "authClientCreateTokenRequestBody"; | ||
| export declare const UpdateTokenEndpointAuthority = "updateTokenEndpointAuthority"; | ||
| /** | ||
| * Generate functions in PopTokenGenerator (msal-common) | ||
| */ | ||
| export declare const PopTokenGenerateCnf = "popTokenGenerateCnf"; | ||
| /** | ||
| * handleServerTokenResponse API in ResponseHandler (msal-common) | ||
| */ | ||
| export declare const HandleServerTokenResponse = "handleServerTokenResponse"; | ||
| /** | ||
| * Authority functions | ||
| */ | ||
| export declare const AuthorityResolveEndpointsAsync = "authorityResolveEndpointsAsync"; | ||
| export declare const AuthorityGetCloudDiscoveryMetadataFromNetwork = "authorityGetCloudDiscoveryMetadataFromNetwork"; | ||
| export declare const AuthorityUpdateCloudDiscoveryMetadata = "authorityUpdateCloudDiscoveryMetadata"; | ||
| export declare const AuthorityGetEndpointMetadataFromNetwork = "authorityGetEndpointMetadataFromNetwork"; | ||
| export declare const AuthorityUpdateEndpointMetadata = "authorityUpdateEndpointMetadata"; | ||
| export declare const AuthorityUpdateMetadataWithRegionalInformation = "authorityUpdateMetadataWithRegionalInformation"; | ||
| /** | ||
| * Region Discovery functions | ||
| */ | ||
| export declare const RegionDiscoveryDetectRegion = "regionDiscoveryDetectRegion"; | ||
| export declare const RegionDiscoveryGetRegionFromIMDS = "regionDiscoveryGetRegionFromIMDS"; | ||
| export declare const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion"; | ||
| /** | ||
| * Cache operations | ||
| */ | ||
| export declare const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken"; | ||
| export declare const SetUserData = "setUserData"; | ||
| //# sourceMappingURL=PerformanceEvents.d.ts.map |
| {"version":3,"file":"PerformanceEvents.d.ts","sourceRoot":"","sources":["../../../src/telemetry/performance/PerformanceEvents.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,iCAAiC,sCACP,CAAC;AACxC,eAAO,MAAM,4CAA4C,iDACP,CAAC;AACnD,eAAO,MAAM,iDAAiD,sDACP,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,qCAAqC,0CACP,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,8BAA8B,mCAAmC,CAAC;AAE/E;;GAEG;AACH,eAAO,MAAM,oDAAoD,yDACP,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,wCAAwC,6CACP,CAAC;AAE/C,eAAO,MAAM,6CAA6C,kDACP,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,6BAA6B,kCAAkC,CAAC;AAC7E,eAAO,MAAM,gCAAgC,qCACP,CAAC;AACvC,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,8BAA8B,mCAAmC,CAAC;AAC/E,eAAO,MAAM,6CAA6C,kDACP,CAAC;AACpD,eAAO,MAAM,qCAAqC,0CACP,CAAC;AAC5C,eAAO,MAAM,uCAAuC,4CACP,CAAC;AAC9C,eAAO,MAAM,+BAA+B,oCACP,CAAC;AACtC,eAAO,MAAM,8CAA8C,mDACP,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,2BAA2B,gCAAgC,CAAC;AACzE,eAAO,MAAM,gCAAgC,qCACP,CAAC;AACvC,eAAO,MAAM,gCAAgC,qCACP,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,2BAA2B,gCAAgC,CAAC;AACzE,eAAO,MAAM,WAAW,gBAAgB,CAAC"} |
| import { IPerformanceClient, InProgressPerformanceEvent } from "./IPerformanceClient.js"; | ||
| import { IPerformanceMeasurement } from "./IPerformanceMeasurement.js"; | ||
| import { PerformanceEvent } from "./PerformanceEvent.js"; | ||
| export declare class StubPerformanceMeasurement implements IPerformanceMeasurement { | ||
| startMeasurement(): void; | ||
| endMeasurement(): void; | ||
| flushMeasurement(): number | null; | ||
| } | ||
| export declare class StubPerformanceClient implements IPerformanceClient { | ||
| generateId(): string; | ||
| startMeasurement(measureName: string, correlationId?: string | undefined): InProgressPerformanceEvent; | ||
| endMeasurement(): PerformanceEvent | null; | ||
| discardMeasurements(): void; | ||
| removePerformanceCallback(): boolean; | ||
| addPerformanceCallback(): string; | ||
| emitEvents(): void; | ||
| addFields(): void; | ||
| incrementFields(): void; | ||
| cacheEventByCorrelationId(): void; | ||
| } | ||
| //# sourceMappingURL=StubPerformanceClient.d.ts.map |
| {"version":3,"file":"StubPerformanceClient.d.ts","sourceRoot":"","sources":["../../../src/telemetry/performance/StubPerformanceClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,kBAAkB,EAClB,0BAA0B,EAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EACH,gBAAgB,EAEnB,MAAM,uBAAuB,CAAC;AAE/B,qBAAa,0BAA2B,YAAW,uBAAuB;IACtE,gBAAgB,IAAI,IAAI;IAGxB,cAAc,IAAI,IAAI;IAGtB,gBAAgB,IAAI,MAAM,GAAG,IAAI;CAGpC;AAED,qBAAa,qBAAsB,YAAW,kBAAkB;IAC5D,UAAU,IAAI,MAAM;IAIpB,gBAAgB,CACZ,WAAW,EAAE,MAAM,EACnB,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,GACnC,0BAA0B;IAoB7B,cAAc,IAAI,gBAAgB,GAAG,IAAI;IAIzC,mBAAmB,IAAI,IAAI;IAI3B,yBAAyB,IAAI,OAAO;IAIpC,sBAAsB,IAAI,MAAM;IAIhC,UAAU,IAAI,IAAI;IAIlB,SAAS,IAAI,IAAI;IAIjB,eAAe,IAAI,IAAI;IAIvB,yBAAyB,IAAI,IAAI;CAGpC"} |
| import * as Constants from "../../utils/Constants.js"; | ||
| import { CacheManager } from "../../cache/CacheManager.js"; | ||
| import { ServerTelemetryRequest } from "./ServerTelemetryRequest.js"; | ||
| import { ServerTelemetryEntity } from "../../cache/entities/ServerTelemetryEntity.js"; | ||
| import { RegionDiscoveryMetadata } from "../../authority/RegionDiscoveryMetadata.js"; | ||
| type SkuParams = { | ||
| libraryName?: string; | ||
| libraryVersion?: string; | ||
| extensionName?: string; | ||
| extensionVersion?: string; | ||
| skus?: string; | ||
| }; | ||
| /** @internal */ | ||
| export declare class ServerTelemetryManager { | ||
| private cacheManager; | ||
| private apiId; | ||
| private correlationId; | ||
| private telemetryCacheKey; | ||
| private wrapperSKU; | ||
| private wrapperVer; | ||
| private regionUsed; | ||
| private regionSource; | ||
| private regionOutcome; | ||
| private cacheOutcome; | ||
| constructor(telemetryRequest: ServerTelemetryRequest, cacheManager: CacheManager); | ||
| /** | ||
| * API to add MSER Telemetry to request | ||
| */ | ||
| generateCurrentRequestHeaderValue(): string; | ||
| /** | ||
| * API to add MSER Telemetry for the last failed request | ||
| */ | ||
| generateLastRequestHeaderValue(): string; | ||
| /** | ||
| * API to cache token failures for MSER data capture | ||
| * @param error | ||
| */ | ||
| cacheFailedRequest(error: unknown): void; | ||
| /** | ||
| * Update server telemetry cache entry by incrementing cache hit counter | ||
| */ | ||
| incrementCacheHits(): number; | ||
| /** | ||
| * Get the server telemetry entity from cache or initialize a new one | ||
| */ | ||
| getLastRequests(): ServerTelemetryEntity; | ||
| /** | ||
| * Remove server telemetry cache entry | ||
| */ | ||
| clearTelemetryCache(): void; | ||
| /** | ||
| * Returns the maximum number of errors that can be flushed to the server in the next network request | ||
| * @param serverTelemetryEntity | ||
| */ | ||
| static maxErrorsToSend(serverTelemetryEntity: ServerTelemetryEntity): number; | ||
| /** | ||
| * Get the region discovery fields | ||
| * | ||
| * @returns string | ||
| */ | ||
| getRegionDiscoveryFields(): string; | ||
| /** | ||
| * Update the region discovery metadata | ||
| * | ||
| * @param regionDiscoveryMetadata | ||
| * @returns void | ||
| */ | ||
| updateRegionDiscoveryMetadata(regionDiscoveryMetadata: RegionDiscoveryMetadata): void; | ||
| /** | ||
| * Set cache outcome | ||
| */ | ||
| setCacheOutcome(cacheOutcome: Constants.CacheOutcome): void; | ||
| setNativeBrokerErrorCode(errorCode: string): void; | ||
| getNativeBrokerErrorCode(): string | undefined; | ||
| clearNativeBrokerErrorCode(): void; | ||
| static makeExtraSkuString(params: SkuParams): string; | ||
| } | ||
| export {}; | ||
| //# sourceMappingURL=ServerTelemetryManager.d.ts.map |
| {"version":3,"file":"ServerTelemetryManager.d.ts","sourceRoot":"","sources":["../../../src/telemetry/server/ServerTelemetryManager.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,SAAS,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAKrF,KAAK,SAAS,GAAG;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAsDF,gBAAgB;AAChB,qBAAa,sBAAsB;IAC/B,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,iBAAiB,CAAS;IAClC,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,UAAU,CAAqB;IACvC,OAAO,CAAC,YAAY,CAA+C;IACnE,OAAO,CAAC,aAAa,CAAgD;IACrE,OAAO,CAAC,YAAY,CACsB;gBAGtC,gBAAgB,EAAE,sBAAsB,EACxC,YAAY,EAAE,YAAY;IAc9B;;OAEG;IACH,iCAAiC,IAAI,MAAM;IAuB3C;;OAEG;IACH,8BAA8B,IAAI,MAAM;IA8BxC;;;OAGG;IACH,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAuCxC;;OAEG;IACH,kBAAkB,IAAI,MAAM;IAY5B;;OAEG;IACH,eAAe,IAAI,qBAAqB;IAcxC;;OAEG;IACH,mBAAmB,IAAI,IAAI;IA6B3B;;;OAGG;IACH,MAAM,CAAC,eAAe,CAClB,qBAAqB,EAAE,qBAAqB,GAC7C,MAAM;IA8BT;;;;OAIG;IACH,wBAAwB,IAAI,MAAM;IAUlC;;;;;OAKG;IACH,6BAA6B,CACzB,uBAAuB,EAAE,uBAAuB,GACjD,IAAI;IAMP;;OAEG;IACH,eAAe,CAAC,YAAY,EAAE,SAAS,CAAC,YAAY,GAAG,IAAI;IAI3D,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAUjD,wBAAwB,IAAI,MAAM,GAAG,SAAS;IAI9C,0BAA0B,IAAI,IAAI;IAUlC,MAAM,CAAC,kBAAkB,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM;CAGvD"} |
| export type ServerTelemetryRequest = { | ||
| clientId: string; | ||
| apiId: number; | ||
| correlationId: string; | ||
| forceRefresh?: boolean; | ||
| wrapperSKU?: string; | ||
| wrapperVer?: string; | ||
| }; | ||
| //# sourceMappingURL=ServerTelemetryRequest.d.ts.map |
| {"version":3,"file":"ServerTelemetryRequest.d.ts","sourceRoot":"","sources":["../../../src/telemetry/server/ServerTelemetryRequest.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,sBAAsB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"} |
| /** | ||
| * Interface which describes URI components. | ||
| */ | ||
| export interface IUri { | ||
| Protocol: string; | ||
| HostNameAndPort: string; | ||
| AbsolutePath: string; | ||
| Search: string; | ||
| Hash: string; | ||
| PathSegments: string[]; | ||
| QueryString: string; | ||
| } | ||
| //# sourceMappingURL=IUri.d.ts.map |
| {"version":3,"file":"IUri.d.ts","sourceRoot":"","sources":["../../src/url/IUri.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,IAAI;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACvB"} |
| import { IUri } from "./IUri.js"; | ||
| /** | ||
| * Url object class which can perform various transformations on url strings. | ||
| */ | ||
| export declare class UrlString { | ||
| private _urlString; | ||
| get urlString(): string; | ||
| constructor(url: string); | ||
| /** | ||
| * Ensure urls are lower case and end with a / character. | ||
| * @param url | ||
| */ | ||
| static canonicalizeUri(url: string): string; | ||
| /** | ||
| * Throws if urlString passed is not a valid authority URI string. | ||
| */ | ||
| validateAsUri(): void; | ||
| /** | ||
| * Given a url and a query string return the url with provided query string appended | ||
| * @param url | ||
| * @param queryString | ||
| */ | ||
| static appendQueryString(url: string, queryString: string): string; | ||
| /** | ||
| * Returns a url with the hash removed | ||
| * @param url | ||
| */ | ||
| static removeHashFromUrl(url: string): string; | ||
| /** | ||
| * Given a url like https://a:b/common/d?e=f#g, and a tenantId, returns https://a:b/tenantId/d | ||
| * @param href The url | ||
| * @param tenantId The tenant id to replace | ||
| */ | ||
| replaceTenantPath(tenantId: string): UrlString; | ||
| /** | ||
| * Parses out the components from a url string. | ||
| * @returns An object with the various components. Please cache this value insted of calling this multiple times on the same url. | ||
| */ | ||
| getUrlComponents(): IUri; | ||
| static getDomainFromUrl(url: string): string; | ||
| static getAbsoluteUrl(relativeUrl: string, baseUrl: string): string; | ||
| static constructAuthorityUriFromObject(urlObject: IUri): UrlString; | ||
| } | ||
| //# sourceMappingURL=UrlString.d.ts.map |
| {"version":3,"file":"UrlString.d.ts","sourceRoot":"","sources":["../../src/url/UrlString.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC;;GAEG;AACH,qBAAa,SAAS;IAElB,OAAO,CAAC,UAAU,CAAS;IAC3B,IAAW,SAAS,IAAI,MAAM,CAE7B;gBAEW,GAAG,EAAE,MAAM;IAcvB;;;OAGG;IACH,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAoB3C;;OAEG;IACH,aAAa,IAAI,IAAI;IA6BrB;;;;OAIG;IACH,MAAM,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM;IAUlE;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAI7C;;;;OAIG;IACH,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS;IAc9C;;;OAGG;IACH,gBAAgB,IAAI,IAAI;IAsCxB,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAc5C,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM;IAgBnE,MAAM,CAAC,+BAA+B,CAAC,SAAS,EAAE,IAAI,GAAG,SAAS;CASrE"} |
| import { ClientAssertionCallback } from "../account/ClientCredentials.js"; | ||
| export declare function getClientAssertion(clientAssertion: string | ClientAssertionCallback, clientId: string, tokenEndpoint?: string): Promise<string>; | ||
| //# sourceMappingURL=ClientAssertionUtils.d.ts.map |
| {"version":3,"file":"ClientAssertionUtils.d.ts","sourceRoot":"","sources":["../../src/utils/ClientAssertionUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,uBAAuB,EAE1B,MAAM,iCAAiC,CAAC;AAEzC,wBAAsB,kBAAkB,CACpC,eAAe,EAAE,MAAM,GAAG,uBAAuB,EACjD,QAAQ,EAAE,MAAM,EAChB,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,MAAM,CAAC,CAUjB"} |
| export declare const SKU = "msal.js.common"; | ||
| export declare const DEFAULT_AUTHORITY = "https://login.microsoftonline.com/common/"; | ||
| export declare const DEFAULT_AUTHORITY_HOST = "login.microsoftonline.com"; | ||
| export declare const DEFAULT_COMMON_TENANT = "common"; | ||
| export declare const ADFS = "adfs"; | ||
| export declare const DSTS = "dstsv2"; | ||
| export declare const AAD_INSTANCE_DISCOVERY_ENDPT: string; | ||
| export declare const CIAM_AUTH_URL = ".ciamlogin.com"; | ||
| export declare const AAD_TENANT_DOMAIN_SUFFIX = ".onmicrosoft.com"; | ||
| export declare const RESOURCE_DELIM = "|"; | ||
| export declare const CONSUMER_UTID = "9188040d-6c67-4c5b-b112-36a304b66dad"; | ||
| export declare const OPENID_SCOPE = "openid"; | ||
| export declare const PROFILE_SCOPE = "profile"; | ||
| export declare const OFFLINE_ACCESS_SCOPE = "offline_access"; | ||
| export declare const EMAIL_SCOPE = "email"; | ||
| export declare const CODE_GRANT_TYPE = "authorization_code"; | ||
| export declare const S256_CODE_CHALLENGE_METHOD = "S256"; | ||
| export declare const URL_FORM_CONTENT_TYPE = "application/x-www-form-urlencoded;charset=utf-8"; | ||
| export declare const AUTHORIZATION_PENDING = "authorization_pending"; | ||
| export declare const NOT_APPLICABLE = "N/A"; | ||
| export declare const NOT_AVAILABLE = "Not Available"; | ||
| export declare const FORWARD_SLASH = "/"; | ||
| export declare const IMDS_ENDPOINT = "http://169.254.169.254/metadata/instance/compute/location"; | ||
| export declare const IMDS_VERSION = "2020-06-01"; | ||
| export declare const IMDS_TIMEOUT = 2000; | ||
| export declare const AZURE_REGION_AUTO_DISCOVER_FLAG = "TryAutoDetect"; | ||
| export declare const REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX = "login.microsoft.com"; | ||
| export declare const KNOWN_PUBLIC_CLOUDS: string[]; | ||
| export declare const SHR_NONCE_VALIDITY = 240; | ||
| export declare const INVALID_INSTANCE = "invalid_instance"; | ||
| export declare const HTTP_SUCCESS: number; | ||
| export declare const HTTP_SUCCESS_RANGE_START: number; | ||
| export declare const HTTP_SUCCESS_RANGE_END: number; | ||
| export declare const HTTP_REDIRECT: number; | ||
| export declare const HTTP_CLIENT_ERROR: number; | ||
| export declare const HTTP_CLIENT_ERROR_RANGE_START: number; | ||
| export declare const HTTP_BAD_REQUEST: number; | ||
| export declare const HTTP_UNAUTHORIZED: number; | ||
| export declare const HTTP_NOT_FOUND: number; | ||
| export declare const HTTP_REQUEST_TIMEOUT: number; | ||
| export declare const HTTP_GONE: number; | ||
| export declare const HTTP_TOO_MANY_REQUESTS: number; | ||
| export declare const HTTP_CLIENT_ERROR_RANGE_END: number; | ||
| export declare const HTTP_SERVER_ERROR: number; | ||
| export declare const HTTP_SERVER_ERROR_RANGE_START: number; | ||
| export declare const HTTP_SERVICE_UNAVAILABLE: number; | ||
| export declare const HTTP_GATEWAY_TIMEOUT: number; | ||
| export declare const HTTP_SERVER_ERROR_RANGE_END: number; | ||
| export declare const HTTP_MULTI_SIDED_ERROR: number; | ||
| export declare const HttpMethod: { | ||
| readonly GET: "GET"; | ||
| readonly POST: "POST"; | ||
| }; | ||
| export type HttpMethod = (typeof HttpMethod)[keyof typeof HttpMethod]; | ||
| export declare const OIDC_DEFAULT_SCOPES: string[]; | ||
| export declare const OIDC_SCOPES: string[]; | ||
| /** | ||
| * Request header names | ||
| */ | ||
| export declare const HeaderNames: { | ||
| readonly CONTENT_TYPE: "Content-Type"; | ||
| readonly CONTENT_LENGTH: "Content-Length"; | ||
| readonly RETRY_AFTER: "Retry-After"; | ||
| readonly CCS_HEADER: "X-AnchorMailbox"; | ||
| readonly WWWAuthenticate: "WWW-Authenticate"; | ||
| readonly AuthenticationInfo: "Authentication-Info"; | ||
| readonly X_MS_REQUEST_ID: "x-ms-request-id"; | ||
| readonly X_MS_HTTP_VERSION: "x-ms-httpver"; | ||
| }; | ||
| export type HeaderNames = (typeof HeaderNames)[keyof typeof HeaderNames]; | ||
| /** | ||
| * Persistent cache keys MSAL which stay while user is logged in. | ||
| */ | ||
| export declare const PersistentCacheKeys: { | ||
| readonly ACTIVE_ACCOUNT_FILTERS: "active-account-filters"; | ||
| }; | ||
| export type PersistentCacheKeys = (typeof PersistentCacheKeys)[keyof typeof PersistentCacheKeys]; | ||
| /** | ||
| * String constants related to AAD Authority | ||
| */ | ||
| export declare const AADAuthority: { | ||
| readonly COMMON: "common"; | ||
| readonly ORGANIZATIONS: "organizations"; | ||
| readonly CONSUMERS: "consumers"; | ||
| }; | ||
| export type AADAuthority = (typeof AADAuthority)[keyof typeof AADAuthority]; | ||
| /** | ||
| * Claims request keys | ||
| */ | ||
| export declare const ClaimsRequestKeys: { | ||
| readonly ACCESS_TOKEN: "access_token"; | ||
| readonly XMS_CC: "xms_cc"; | ||
| }; | ||
| export type ClaimsRequestKeys = (typeof ClaimsRequestKeys)[keyof typeof ClaimsRequestKeys]; | ||
| /** | ||
| * we considered making this "enum" in the request instead of string, however it looks like the allowed list of | ||
| * prompt values kept changing over past couple of years. There are some undocumented prompt values for some | ||
| * internal partners too, hence the choice of generic "string" type instead of the "enum" | ||
| */ | ||
| export declare const PromptValue: { | ||
| LOGIN: string; | ||
| SELECT_ACCOUNT: string; | ||
| CONSENT: string; | ||
| NONE: string; | ||
| CREATE: string; | ||
| NO_SESSION: string; | ||
| }; | ||
| /** | ||
| * allowed values for codeVerifier | ||
| */ | ||
| export declare const CodeChallengeMethodValues: { | ||
| PLAIN: string; | ||
| S256: string; | ||
| }; | ||
| /** | ||
| * Allowed values for response_type | ||
| */ | ||
| export declare const OAuthResponseType: { | ||
| readonly CODE: "code"; | ||
| readonly IDTOKEN_TOKEN: "id_token token"; | ||
| readonly IDTOKEN_TOKEN_REFRESHTOKEN: "id_token token refresh_token"; | ||
| }; | ||
| export type OAuthResponseType = (typeof OAuthResponseType)[keyof typeof OAuthResponseType]; | ||
| /** | ||
| * allowed values for response_mode | ||
| */ | ||
| export declare const ResponseMode: { | ||
| readonly QUERY: "query"; | ||
| readonly FRAGMENT: "fragment"; | ||
| readonly FORM_POST: "form_post"; | ||
| }; | ||
| export type ResponseMode = (typeof ResponseMode)[keyof typeof ResponseMode]; | ||
| /** | ||
| * allowed grant_type | ||
| */ | ||
| export declare const GrantType: { | ||
| readonly IMPLICIT_GRANT: "implicit"; | ||
| readonly AUTHORIZATION_CODE_GRANT: "authorization_code"; | ||
| readonly CLIENT_CREDENTIALS_GRANT: "client_credentials"; | ||
| readonly RESOURCE_OWNER_PASSWORD_GRANT: "password"; | ||
| readonly REFRESH_TOKEN_GRANT: "refresh_token"; | ||
| readonly DEVICE_CODE_GRANT: "device_code"; | ||
| readonly JWT_BEARER: "urn:ietf:params:oauth:grant-type:jwt-bearer"; | ||
| }; | ||
| export type GrantType = (typeof GrantType)[keyof typeof GrantType]; | ||
| /** | ||
| * Account types in Cache | ||
| */ | ||
| export declare const CACHE_ACCOUNT_TYPE_MSSTS: string; | ||
| export declare const CACHE_ACCOUNT_TYPE_ADFS: string; | ||
| export declare const CACHE_ACCOUNT_TYPE_MSAV1: string; | ||
| export declare const CACHE_ACCOUNT_TYPE_GENERIC: string; | ||
| /** | ||
| * Separators used in cache | ||
| */ | ||
| export declare const CACHE_KEY_SEPARATOR: string; | ||
| export declare const CLIENT_INFO_SEPARATOR: string; | ||
| /** | ||
| * Credential Type stored in the cache | ||
| */ | ||
| export declare const CredentialType: { | ||
| readonly ID_TOKEN: "IdToken"; | ||
| readonly ACCESS_TOKEN: "AccessToken"; | ||
| readonly ACCESS_TOKEN_WITH_AUTH_SCHEME: "AccessToken_With_AuthScheme"; | ||
| readonly REFRESH_TOKEN: "RefreshToken"; | ||
| }; | ||
| export type CredentialType = (typeof CredentialType)[keyof typeof CredentialType]; | ||
| /** | ||
| * Combine all cache types | ||
| */ | ||
| export declare const CacheType: { | ||
| readonly ADFS: 1001; | ||
| readonly MSA: 1002; | ||
| readonly MSSTS: 1003; | ||
| readonly GENERIC: 1004; | ||
| readonly ACCESS_TOKEN: 2001; | ||
| readonly REFRESH_TOKEN: 2002; | ||
| readonly ID_TOKEN: 2003; | ||
| readonly APP_METADATA: 3001; | ||
| readonly UNDEFINED: 9999; | ||
| }; | ||
| export type CacheType = (typeof CacheType)[keyof typeof CacheType]; | ||
| /** | ||
| * More Cache related constants | ||
| */ | ||
| export declare const APP_METADATA: string; | ||
| export declare const CLIENT_INFO: string; | ||
| export declare const THE_FAMILY_ID: string; | ||
| export declare const AUTHORITY_METADATA_CACHE_KEY: string; | ||
| export declare const AUTHORITY_METADATA_REFRESH_TIME_SECONDS: number; | ||
| export declare const AuthorityMetadataSource: { | ||
| readonly CONFIG: "config"; | ||
| readonly CACHE: "cache"; | ||
| readonly NETWORK: "network"; | ||
| readonly HARDCODED_VALUES: "hardcoded_values"; | ||
| }; | ||
| export type AuthorityMetadataSource = (typeof AuthorityMetadataSource)[keyof typeof AuthorityMetadataSource]; | ||
| export declare const SERVER_TELEM_SCHEMA_VERSION: number; | ||
| export declare const SERVER_TELEM_MAX_CUR_HEADER_BYTES: number; | ||
| export declare const SERVER_TELEM_MAX_LAST_HEADER_BYTES: number; | ||
| export declare const SERVER_TELEM_MAX_CACHED_ERRORS: number; | ||
| export declare const SERVER_TELEM_CACHE_KEY: string; | ||
| export declare const SERVER_TELEM_CATEGORY_SEPARATOR: string; | ||
| export declare const SERVER_TELEM_VALUE_SEPARATOR: string; | ||
| export declare const SERVER_TELEM_OVERFLOW_TRUE: string; | ||
| export declare const SERVER_TELEM_OVERFLOW_FALSE: string; | ||
| export declare const SERVER_TELEM_UNKNOWN_ERROR: string; | ||
| /** | ||
| * Type of the authentication request | ||
| */ | ||
| export declare const AuthenticationScheme: { | ||
| readonly BEARER: "Bearer"; | ||
| readonly POP: "pop"; | ||
| readonly SSH: "ssh-cert"; | ||
| }; | ||
| export type AuthenticationScheme = (typeof AuthenticationScheme)[keyof typeof AuthenticationScheme]; | ||
| /** | ||
| * Constants related to throttling | ||
| */ | ||
| export declare const DEFAULT_THROTTLE_TIME_SECONDS: number; | ||
| export declare const DEFAULT_MAX_THROTTLE_TIME_SECONDS: number; | ||
| export declare const THROTTLING_PREFIX: string; | ||
| export declare const X_MS_LIB_CAPABILITY_VALUE: string; | ||
| /** | ||
| * Errors | ||
| */ | ||
| export declare const INVALID_GRANT_ERROR: string; | ||
| export declare const CLIENT_MISMATCH_ERROR: string; | ||
| /** | ||
| * Password grant parameters | ||
| */ | ||
| export declare const PasswordGrantConstants: { | ||
| readonly username: "username"; | ||
| readonly password: "password"; | ||
| }; | ||
| export type PasswordGrantConstants = (typeof PasswordGrantConstants)[keyof typeof PasswordGrantConstants]; | ||
| /** | ||
| * Region Discovery Sources | ||
| */ | ||
| export declare const RegionDiscoverySources: { | ||
| readonly FAILED_AUTO_DETECTION: "1"; | ||
| readonly INTERNAL_CACHE: "2"; | ||
| readonly ENVIRONMENT_VARIABLE: "3"; | ||
| readonly IMDS: "4"; | ||
| }; | ||
| export type RegionDiscoverySources = (typeof RegionDiscoverySources)[keyof typeof RegionDiscoverySources]; | ||
| /** | ||
| * Region Discovery Outcomes | ||
| */ | ||
| export declare const RegionDiscoveryOutcomes: { | ||
| readonly CONFIGURED_MATCHES_DETECTED: "1"; | ||
| readonly CONFIGURED_NO_AUTO_DETECTION: "2"; | ||
| readonly CONFIGURED_NOT_DETECTED: "3"; | ||
| readonly AUTO_DETECTION_REQUESTED_SUCCESSFUL: "4"; | ||
| readonly AUTO_DETECTION_REQUESTED_FAILED: "5"; | ||
| }; | ||
| export type RegionDiscoveryOutcomes = (typeof RegionDiscoveryOutcomes)[keyof typeof RegionDiscoveryOutcomes]; | ||
| /** | ||
| * Specifies the reason for fetching the access token from the identity provider | ||
| */ | ||
| export declare const CacheOutcome: { | ||
| readonly NOT_APPLICABLE: "0"; | ||
| readonly FORCE_REFRESH_OR_CLAIMS: "1"; | ||
| readonly NO_CACHED_ACCESS_TOKEN: "2"; | ||
| readonly CACHED_ACCESS_TOKEN_EXPIRED: "3"; | ||
| readonly PROACTIVELY_REFRESHED: "4"; | ||
| }; | ||
| export type CacheOutcome = (typeof CacheOutcome)[keyof typeof CacheOutcome]; | ||
| export declare const JsonWebTokenTypes: { | ||
| readonly Jwt: "JWT"; | ||
| readonly Jwk: "JWK"; | ||
| readonly Pop: "pop"; | ||
| }; | ||
| export type JsonWebTokenTypes = (typeof JsonWebTokenTypes)[keyof typeof JsonWebTokenTypes]; | ||
| export declare const ONE_DAY_IN_MS = 86400000; | ||
| export declare const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300; | ||
| export declare const EncodingTypes: { | ||
| readonly BASE64: "base64"; | ||
| readonly HEX: "hex"; | ||
| readonly UTF8: "utf-8"; | ||
| }; | ||
| export type EncodingTypes = (typeof EncodingTypes)[keyof typeof EncodingTypes]; | ||
| //# sourceMappingURL=Constants.d.ts.map |
| {"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../src/utils/Constants.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,GAAG,mBAAmB,CAAC;AAEpC,eAAO,MAAM,iBAAiB,8CAA8C,CAAC;AAC7E,eAAO,MAAM,sBAAsB,8BAA8B,CAAC;AAClE,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAE9C,eAAO,MAAM,IAAI,SAAS,CAAC;AAC3B,eAAO,MAAM,IAAI,WAAW,CAAC;AAE7B,eAAO,MAAM,4BAA4B,QAAmF,CAAC;AAE7H,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,wBAAwB,qBAAqB,CAAC;AAE3D,eAAO,MAAM,cAAc,MAAM,CAAC;AAElC,eAAO,MAAM,aAAa,yCAAyC,CAAC;AAEpE,eAAO,MAAM,YAAY,WAAW,CAAC;AACrC,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,oBAAoB,mBAAmB,CAAC;AACrD,eAAO,MAAM,WAAW,UAAU,CAAC;AACnC,eAAO,MAAM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AsB,CAAC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;CAM1B,CAAC;AACX,MAAM,MAAM,uBAAuB,GAC/B,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;CAWf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE5E,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GACzB,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE/D,eAAO,MAAM,aAAa,WAAW,CAAC;AAGtC,eAAO,MAAM,gCAAgC,MAAM,CAAC;AAEpD,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC"} |
| import { Logger } from "../logger/Logger.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| /** | ||
| * Wraps a function with a performance measurement. | ||
| * Usage: invoke(functionToCall, performanceClient, "EventName", "correlationId")(...argsToPassToFunction) | ||
| * @param callback | ||
| * @param eventName | ||
| * @param logger | ||
| * @param telemetryClient | ||
| * @param correlationId | ||
| * @returns | ||
| * @internal | ||
| */ | ||
| export declare const invoke: <T extends any[], U>(callback: (...args: T) => U, eventName: string, logger: Logger, telemetryClient: IPerformanceClient, correlationId: string) => (...args: T) => U; | ||
| /** | ||
| * Wraps an async function with a performance measurement. | ||
| * Usage: invokeAsync(functionToCall, performanceClient, "EventName", "correlationId")(...argsToPassToFunction) | ||
| * @param callback | ||
| * @param eventName | ||
| * @param logger | ||
| * @param telemetryClient | ||
| * @param correlationId | ||
| * @returns | ||
| * @internal | ||
| * | ||
| */ | ||
| export declare const invokeAsync: <T extends any[], U>(callback: (...args: T) => Promise<U>, eventName: string, logger: Logger, telemetryClient: IPerformanceClient, correlationId: string) => (...args: T) => Promise<U>; | ||
| //# sourceMappingURL=FunctionWrappers.d.ts.map |
| {"version":3,"file":"FunctionWrappers.d.ts","sourceRoot":"","sources":["../../src/utils/FunctionWrappers.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEpF;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,MAAM,+DAEJ,MAAM,UACT,MAAM,mBACG,kBAAkB,iBACpB,MAAM,sBAsCxB,CAAC;AAEF;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,WAAW,wEAET,MAAM,UACT,MAAM,mBACG,kBAAkB,iBACpB,MAAM,+BA6CxB,CAAC"} |
| /** | ||
| * Key-Value type to support queryParams, extraQueryParams and claims | ||
| */ | ||
| export type StringDict = { | ||
| [key: string]: string; | ||
| }; | ||
| //# sourceMappingURL=MsalTypes.d.ts.map |
| {"version":3,"file":"MsalTypes.d.ts","sourceRoot":"","sources":["../../src/utils/MsalTypes.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC"} |
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { RequestStateObject } from "./StateTypes.js"; | ||
| /** | ||
| * Appends user state with random guid, or returns random guid. | ||
| * @param cryptoObj | ||
| * @param userState | ||
| * @param meta | ||
| */ | ||
| export declare function setRequestState(cryptoObj: ICrypto, userState?: string, meta?: Record<string, string>): string; | ||
| /** | ||
| * Generates the state value used by the common library. | ||
| * @param cryptoObj | ||
| * @param meta | ||
| */ | ||
| export declare function generateLibraryState(cryptoObj: ICrypto, meta?: Record<string, string>): string; | ||
| /** | ||
| * Parses the state into the RequestStateObject, which contains the LibraryState info and the state passed by the user. | ||
| * @param base64Decode | ||
| * @param state | ||
| */ | ||
| export declare function parseRequestState(base64Decode: (input: string) => string, state: string): RequestStateObject; | ||
| //# sourceMappingURL=ProtocolUtils.d.ts.map |
| {"version":3,"file":"ProtocolUtils.d.ts","sourceRoot":"","sources":["../../src/utils/ProtocolUtils.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAK/C,OAAO,EAAsB,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEzE;;;;;GAKG;AACH,wBAAgB,eAAe,CAC3B,SAAS,EAAE,OAAO,EAClB,SAAS,CAAC,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC9B,MAAM,CAKR;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAChC,SAAS,EAAE,OAAO,EAClB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC9B,MAAM,CAiBR;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC7B,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,EACvC,KAAK,EAAE,MAAM,GACd,kBAAkB,CA4BpB"} |
| /** | ||
| * Type which defines library state | ||
| */ | ||
| export type LibraryStateObject = { | ||
| id: string; | ||
| meta?: Record<string, string>; | ||
| }; | ||
| /** | ||
| * Type which defines the stringified and encoded state object sent to the service in the authorize request. | ||
| */ | ||
| export type RequestStateObject = { | ||
| userRequestState: string; | ||
| libraryState: LibraryStateObject; | ||
| }; | ||
| //# sourceMappingURL=StateTypes.d.ts.map |
| {"version":3,"file":"StateTypes.d.ts","sourceRoot":"","sources":["../../src/utils/StateTypes.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,kBAAkB,CAAC;CACpC,CAAC"} |
| /** | ||
| * @hidden | ||
| */ | ||
| export declare class StringUtils { | ||
| /** | ||
| * Check if stringified object is empty | ||
| * @param strObj | ||
| */ | ||
| static isEmptyObj(strObj?: string): boolean; | ||
| static startsWith(str: string, search: string): boolean; | ||
| static endsWith(str: string, search: string): boolean; | ||
| /** | ||
| * Parses string into an object. | ||
| * | ||
| * @param query | ||
| */ | ||
| static queryStringToObject<T>(query: string): T; | ||
| /** | ||
| * Trims entries in an array. | ||
| * | ||
| * @param arr | ||
| */ | ||
| static trimArrayEntries(arr: Array<string>): Array<string>; | ||
| /** | ||
| * Removes empty strings from array | ||
| * @param arr | ||
| */ | ||
| static removeEmptyStringsFromArray(arr: Array<string>): Array<string>; | ||
| /** | ||
| * Attempts to parse a string into JSON | ||
| * @param str | ||
| */ | ||
| static jsonParseHelper<T>(str: string): T | null; | ||
| } | ||
| //# sourceMappingURL=StringUtils.d.ts.map |
| {"version":3,"file":"StringUtils.d.ts","sourceRoot":"","sources":["../../src/utils/StringUtils.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,qBAAa,WAAW;IACpB;;;OAGG;IACH,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO;IAU3C,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO;IAIvD,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO;IAOrD;;;;OAIG;IACH,MAAM,CAAC,mBAAmB,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;IAe/C;;;;OAIG;IACH,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC;IAI1D;;;OAGG;IACH,MAAM,CAAC,2BAA2B,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC;IAMrE;;;OAGG;IACH,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI;CAOnD"} |
| /** | ||
| * Utility functions for managing date and time operations. | ||
| */ | ||
| /** | ||
| * return the current time in Unix time (seconds). | ||
| */ | ||
| export declare function nowSeconds(): number; | ||
| /** | ||
| * Converts JS Date object to seconds | ||
| * @param date Date | ||
| */ | ||
| export declare function toSecondsFromDate(date: Date): number; | ||
| /** | ||
| * Convert seconds to JS Date object. Seconds can be in a number or string format or undefined (will still return a date). | ||
| * @param seconds | ||
| */ | ||
| export declare function toDateFromSeconds(seconds: number | string | undefined): Date; | ||
| /** | ||
| * check if a token is expired based on given UTC time in seconds. | ||
| * @param expiresOn | ||
| */ | ||
| export declare function isTokenExpired(expiresOn: string, offset: number): boolean; | ||
| /** | ||
| * Checks if a cache entry is expired based on the last updated time and cache retention days. | ||
| * @param lastUpdatedAt | ||
| * @param cacheRetentionDays | ||
| * @returns | ||
| */ | ||
| export declare function isCacheExpired(lastUpdatedAt: string, cacheRetentionDays: number): boolean; | ||
| /** | ||
| * If the current time is earlier than the time that a token was cached at, we must discard the token | ||
| * i.e. The system clock was turned back after acquiring the cached token | ||
| * @param cachedAt | ||
| * @param offset | ||
| */ | ||
| export declare function wasClockTurnedBack(cachedAt: string): boolean; | ||
| /** | ||
| * Waits for t number of milliseconds | ||
| * @param t number | ||
| * @param value T | ||
| */ | ||
| export declare function delay<T>(t: number, value?: T): Promise<T | void>; | ||
| //# sourceMappingURL=TimeUtils.d.ts.map |
| {"version":3,"file":"TimeUtils.d.ts","sourceRoot":"","sources":["../../src/utils/TimeUtils.ts"],"names":[],"mappings":"AAKA;;GAEG;AAEH;;GAEG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAGnC;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAGpD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAK5E;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAOzE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC1B,aAAa,EAAE,MAAM,EACrB,kBAAkB,EAAE,MAAM,GAC3B,OAAO,CAIT;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAI5D;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAEhE"} |
| import { AuthorizeResponse } from "../response/AuthorizeResponse.js"; | ||
| /** | ||
| * Parses hash string from given string. Returns empty string if no hash symbol is found. | ||
| * @param hashString | ||
| */ | ||
| export declare function stripLeadingHashOrQuery(responseString: string): string; | ||
| /** | ||
| * Returns URL hash as server auth code response object. | ||
| */ | ||
| export declare function getDeserializedResponse(responseString: string): AuthorizeResponse | null; | ||
| /** | ||
| * Utility to create a URL from the params map | ||
| */ | ||
| export declare function mapToQueryString(parameters: Map<string, string>): string; | ||
| /** | ||
| * Normalizes URLs for comparison by removing hash, canonicalizing, | ||
| * and ensuring consistent URL encoding in query parameters. | ||
| * This fixes redirect loops when URLs contain encoded characters like apostrophes (%27). | ||
| * @param url - URL to normalize | ||
| * @returns Normalized URL string for comparison | ||
| */ | ||
| export declare function normalizeUrlForComparison(url: string): string; | ||
| //# sourceMappingURL=UrlUtils.d.ts.map |
| {"version":3,"file":"UrlUtils.d.ts","sourceRoot":"","sources":["../../src/utils/UrlUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAiCrE;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAWtE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACnC,cAAc,EAAE,MAAM,GACvB,iBAAiB,GAAG,IAAI,CA4B1B;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAQxE;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAwB7D"} |
| import { TokenClaims } from "./TokenClaims.js"; | ||
| export type DataBoundary = "EU" | "None"; | ||
| /** | ||
| * Account object with the following signature: | ||
| * - homeAccountId - Home account identifier for this account object | ||
| * - environment - Entity which issued the token represented by the domain of the issuer (e.g. login.microsoftonline.com) | ||
| * - tenantId - Full tenant or organizational id that this account belongs to | ||
| * - username - preferred_username claim of the id_token that represents this account | ||
| * - upn - The user's UPN used to populate the account username in cases where preferred_username is not present in the ID token claims. | ||
| * - localAccountId - Local, tenant-specific account identifer for this account object, usually used in legacy cases | ||
| * - name - Full name for the account, including given name and family name | ||
| * - idToken - raw ID token | ||
| * - idTokenClaims - Object contains claims from ID token | ||
| * - nativeAccountId - The user's native account ID | ||
| * - tenantProfiles - Map of tenant profile objects for each tenant that the account has authenticated with in the browser | ||
| * - dataBoundary - Data boundary extracted from clientInfo | ||
| */ | ||
| export type AccountInfo = { | ||
| homeAccountId: string; | ||
| environment: string; | ||
| tenantId: string; | ||
| username: string; | ||
| localAccountId: string; | ||
| loginHint?: string; | ||
| name?: string; | ||
| upn?: string; | ||
| idToken?: string; | ||
| idTokenClaims?: TokenClaims & { | ||
| [key: string]: string | number | string[] | object | undefined | unknown; | ||
| }; | ||
| nativeAccountId?: string; | ||
| authorityType?: string; | ||
| tenantProfiles?: Map<string, TenantProfile>; | ||
| dataBoundary?: DataBoundary; | ||
| }; | ||
| /** | ||
| * Account details that vary across tenants for the same user | ||
| */ | ||
| export type TenantProfile = Pick<AccountInfo, "tenantId" | "localAccountId" | "name" | "username" | "loginHint" | "upn"> & { | ||
| /** | ||
| * - isHomeTenant - True if this is the home tenant profile of the account, false if it's a guest tenant profile | ||
| */ | ||
| isHomeTenant?: boolean; | ||
| }; | ||
| export type ActiveAccountFilters = { | ||
| homeAccountId: string; | ||
| localAccountId: string; | ||
| tenantId?: string; | ||
| }; | ||
| /** | ||
| * Returns true if tenantId matches the utid portion of homeAccountId | ||
| * @param tenantId | ||
| * @param homeAccountId | ||
| * @returns | ||
| */ | ||
| export declare function tenantIdMatchesHomeTenant(tenantId?: string, homeAccountId?: string): boolean; | ||
| /** | ||
| * Build tenant profile | ||
| * @param homeAccountId - Home account identifier for this account object | ||
| * @param localAccountId - Local account identifer for this account object | ||
| * @param tenantId - Full tenant or organizational id that this account belongs to | ||
| * @param idTokenClaims - Claims from the ID token | ||
| * @returns | ||
| */ | ||
| export declare function buildTenantProfile(homeAccountId: string, localAccountId: string, tenantId: string, idTokenClaims?: TokenClaims): TenantProfile; | ||
| /** | ||
| * Replaces account info that varies by tenant profile sourced from the ID token claims passed in with the tenant-specific account info | ||
| * @param baseAccountInfo | ||
| * @param idTokenClaims | ||
| * @returns | ||
| */ | ||
| export declare function updateAccountTenantProfileData(baseAccountInfo: AccountInfo, tenantProfile?: TenantProfile, idTokenClaims?: TokenClaims, idTokenSecret?: string): AccountInfo; | ||
| //# sourceMappingURL=AccountInfo.d.ts.map |
| {"version":3,"file":"AccountInfo.d.ts","sourceRoot":"","sources":["../../src/account/AccountInfo.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,MAAM,CAAC;AA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B,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,MAAM,EAChB,aAAa,CAAC,EAAE,WAAW,GAC5B,aAAa,CAuCf;AAED;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAC1C,eAAe,EAAE,WAAW,EAC5B,aAAa,CAAC,EAAE,aAAa,EAC7B,aAAa,CAAC,EAAE,WAAW,EAC3B,aAAa,CAAC,EAAE,MAAM,GACvB,WAAW,CAgCb"} |
| import { TokenClaims } from "./TokenClaims.js"; | ||
| /** | ||
| * Extract token by decoding the rawToken | ||
| * | ||
| * @param encodedToken | ||
| */ | ||
| export declare function extractTokenClaims(encodedToken: string, base64Decode: (input: string) => string): TokenClaims; | ||
| /** | ||
| * Check if the signin_state claim contains "kmsi" | ||
| * @param idTokenClaims | ||
| * @returns | ||
| */ | ||
| export declare function isKmsi(idTokenClaims: TokenClaims): boolean; | ||
| /** | ||
| * decode a JWT | ||
| * | ||
| * @param authToken | ||
| */ | ||
| export declare function getJWSPayload(authToken: string): string; | ||
| /** | ||
| * Determine if the token's max_age has transpired | ||
| */ | ||
| export declare function checkMaxAge(authTime: number, maxAge: number): void; | ||
| //# sourceMappingURL=AuthToken.d.ts.map |
| {"version":3,"file":"AuthToken.d.ts","sourceRoot":"","sources":["../../src/account/AuthToken.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM/C;;;;GAIG;AACH,wBAAgB,kBAAkB,CAC9B,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GACxC,WAAW,CAWb;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,aAAa,EAAE,WAAW,GAAG,OAAO,CAe1D;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAkBvD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAUlE"} |
| export type CcsCredential = { | ||
| credential: string; | ||
| type: CcsCredentialType; | ||
| }; | ||
| export declare const CcsCredentialType: { | ||
| readonly HOME_ACCOUNT_ID: "home_account_id"; | ||
| readonly UPN: "UPN"; | ||
| }; | ||
| export type CcsCredentialType = (typeof CcsCredentialType)[keyof typeof CcsCredentialType]; | ||
| //# sourceMappingURL=CcsCredential.d.ts.map |
| {"version":3,"file":"CcsCredential.d.ts","sourceRoot":"","sources":["../../src/account/CcsCredential.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,aAAa,GAAG;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,iBAAiB,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GACzB,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC"} |
| export type ClientAssertionConfig = { | ||
| clientId: string; | ||
| tokenEndpoint?: string; | ||
| }; | ||
| export type ClientAssertionCallback = (config: ClientAssertionConfig) => Promise<string>; | ||
| /** | ||
| * Client Assertion credential for Confidential Clients | ||
| */ | ||
| export type ClientAssertion = { | ||
| assertion: string | ClientAssertionCallback; | ||
| assertionType: string; | ||
| }; | ||
| /** | ||
| * Client Credentials set for Confidential Clients | ||
| */ | ||
| export type ClientCredentials = { | ||
| clientSecret?: string; | ||
| clientAssertion?: ClientAssertion; | ||
| }; | ||
| //# sourceMappingURL=ClientCredentials.d.ts.map |
| {"version":3,"file":"ClientCredentials.d.ts","sourceRoot":"","sources":["../../src/account/ClientCredentials.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,qBAAqB,GAAG;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAClC,MAAM,EAAE,qBAAqB,KAC5B,OAAO,CAAC,MAAM,CAAC,CAAC;AAErB;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC1B,SAAS,EAAE,MAAM,GAAG,uBAAuB,CAAC;IAC5C,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC,CAAC"} |
| /** | ||
| * Client info object which consists of: | ||
| * uid: user id | ||
| * utid: tenant id | ||
| * xms_tdbr: optional, only for non-US tenants | ||
| */ | ||
| export type ClientInfo = { | ||
| uid: string; | ||
| utid: string; | ||
| xms_tdbr?: string; | ||
| }; | ||
| /** | ||
| * Function to build a client info object from server clientInfo string | ||
| * @param rawClientInfo | ||
| * @param crypto | ||
| */ | ||
| export declare function buildClientInfo(rawClientInfo: string, base64Decode: (input: string) => string): ClientInfo; | ||
| /** | ||
| * Function to build a client info object from cached homeAccountId string | ||
| * @param homeAccountId | ||
| */ | ||
| export declare function buildClientInfoFromHomeAccountId(homeAccountId: string): ClientInfo; | ||
| //# sourceMappingURL=ClientInfo.d.ts.map |
| {"version":3,"file":"ClientInfo.d.ts","sourceRoot":"","sources":["../../src/account/ClientInfo.ts"],"names":[],"mappings":"AAWA;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,eAAe,CAC3B,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GACxC,UAAU,CAaZ;AAED;;;GAGG;AACH,wBAAgB,gCAAgC,CAC5C,aAAa,EAAE,MAAM,GACtB,UAAU,CAcZ"} |
| /** | ||
| * Type which describes Id Token claims known by MSAL. | ||
| */ | ||
| export type TokenClaims = { | ||
| /** | ||
| * Audience | ||
| */ | ||
| aud?: string; | ||
| /** | ||
| * Issuer | ||
| */ | ||
| iss?: string; | ||
| /** | ||
| * Issued at | ||
| */ | ||
| iat?: number; | ||
| /** | ||
| * Not valid before | ||
| */ | ||
| nbf?: number; | ||
| /** | ||
| * Immutable object identifier, this ID uniquely identifies the user across applications | ||
| */ | ||
| oid?: string; | ||
| /** | ||
| * Immutable subject identifier, this is a pairwise identifier - it is unique to a particular application ID | ||
| */ | ||
| sub?: string; | ||
| /** | ||
| * Users' tenant or '9188040d-6c67-4c5b-b112-36a304b66dad' for personal accounts. | ||
| */ | ||
| tid?: string; | ||
| /** | ||
| * Trusted Framework Policy (B2C) The name of the policy that was used to acquire the ID token. | ||
| */ | ||
| tfp?: string; | ||
| /** | ||
| * Authentication Context Class Reference (B2C) Used only with older policies. | ||
| */ | ||
| acr?: string; | ||
| ver?: string; | ||
| upn?: string; | ||
| preferred_username?: string; | ||
| login_hint?: string; | ||
| /** | ||
| * Contains KMSI (Keep Me Signed In) status among other things | ||
| */ | ||
| signin_state?: Array<string>; | ||
| emails?: string[]; | ||
| name?: string; | ||
| nonce?: string; | ||
| /** | ||
| * Expiration | ||
| */ | ||
| exp?: number; | ||
| home_oid?: string; | ||
| sid?: string; | ||
| cloud_instance_host_name?: string; | ||
| cnf?: { | ||
| kid: string; | ||
| }; | ||
| x5c_ca?: string[]; | ||
| ts?: number; | ||
| at?: string; | ||
| u?: string; | ||
| p?: string; | ||
| m?: string; | ||
| roles?: string[]; | ||
| amr?: string[]; | ||
| idp?: string; | ||
| auth_time?: number; | ||
| /** | ||
| * Region of the resource tenant | ||
| */ | ||
| tenant_region_scope?: string; | ||
| tenant_region_sub_scope?: string; | ||
| }; | ||
| /** | ||
| * Gets tenantId from available ID token claims to set as credential realm with the following precedence: | ||
| * 1. tid - if the token is acquired from an Azure AD tenant tid will be present | ||
| * 2. tfp - if the token is acquired from a modern B2C tenant tfp should be present | ||
| * 3. acr - if the token is acquired from a legacy B2C tenant acr should be present | ||
| * Downcased to match the realm case-insensitive comparison requirements | ||
| * @param idTokenClaims | ||
| * @returns | ||
| */ | ||
| export declare function getTenantIdFromIdTokenClaims(idTokenClaims?: TokenClaims): string | null; | ||
| //# sourceMappingURL=TokenClaims.d.ts.map |
| {"version":3,"file":"TokenClaims.d.ts","sourceRoot":"","sources":["../../src/account/TokenClaims.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,GAAG,CAAC,EAAE;QACF,GAAG,EAAE,MAAM,CAAC;KACf,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,uBAAuB,CAAC,EAAE,MAAM,CAAC;CACpC,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,4BAA4B,CACxC,aAAa,CAAC,EAAE,WAAW,GAC5B,MAAM,GAAG,IAAI,CAOf"} |
| import { AuthorityType } from "./AuthorityType.js"; | ||
| import { OpenIdConfigResponse } from "./OpenIdConfigResponse.js"; | ||
| import { IUri } from "../url/IUri.js"; | ||
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { ProtocolMode } from "./ProtocolMode.js"; | ||
| import { ICacheManager } from "../cache/interface/ICacheManager.js"; | ||
| import { AuthorityOptions, StaticAuthorityOptions } from "./AuthorityOptions.js"; | ||
| import { CloudDiscoveryMetadata } from "./CloudDiscoveryMetadata.js"; | ||
| import { RegionDiscoveryMetadata } from "./RegionDiscoveryMetadata.js"; | ||
| import type { AzureCloudOptions } from "../config/ClientConfiguration.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| /** | ||
| * The authority class validates the authority URIs used by the user, and retrieves the OpenID Configuration Data from the | ||
| * endpoint. It will store the pertinent config data in this object for use during token calls. | ||
| * @internal | ||
| */ | ||
| export declare class Authority { | ||
| private _canonicalAuthority; | ||
| private _canonicalAuthorityUrlComponents; | ||
| protected networkInterface: INetworkModule; | ||
| protected cacheManager: ICacheManager; | ||
| private authorityOptions; | ||
| private metadata; | ||
| private regionDiscovery; | ||
| regionDiscoveryMetadata: RegionDiscoveryMetadata; | ||
| private logger; | ||
| protected performanceClient: IPerformanceClient; | ||
| protected correlationId: string; | ||
| private managedIdentity; | ||
| private static reservedTenantDomains; | ||
| constructor(authority: string, networkInterface: INetworkModule, cacheManager: ICacheManager, authorityOptions: AuthorityOptions, logger: Logger, correlationId: string, performanceClient: IPerformanceClient, managedIdentity?: boolean); | ||
| /** | ||
| * Get {@link AuthorityType} | ||
| * @param authorityUri {@link IUri} | ||
| * @private | ||
| */ | ||
| private getAuthorityType; | ||
| get authorityType(): AuthorityType; | ||
| /** | ||
| * ProtocolMode enum representing the way endpoints are constructed. | ||
| */ | ||
| get protocolMode(): ProtocolMode; | ||
| /** | ||
| * Returns authorityOptions which can be used to reinstantiate a new authority instance | ||
| */ | ||
| get options(): AuthorityOptions; | ||
| /** | ||
| * A URL that is the authority set by the developer | ||
| */ | ||
| get canonicalAuthority(): string; | ||
| /** | ||
| * Sets canonical authority. | ||
| */ | ||
| set canonicalAuthority(url: string); | ||
| /** | ||
| * Get authority components. | ||
| */ | ||
| get canonicalAuthorityUrlComponents(): IUri; | ||
| /** | ||
| * Get hostname and port i.e. login.microsoftonline.com | ||
| */ | ||
| get hostnameAndPort(): string; | ||
| /** | ||
| * Get tenant for authority. | ||
| */ | ||
| get tenant(): string; | ||
| /** | ||
| * OAuth /authorize endpoint for requests | ||
| */ | ||
| get authorizationEndpoint(): string; | ||
| /** | ||
| * OAuth /token endpoint for requests | ||
| */ | ||
| get tokenEndpoint(): string; | ||
| get deviceCodeEndpoint(): string; | ||
| /** | ||
| * OAuth logout endpoint for requests | ||
| */ | ||
| get endSessionEndpoint(): string; | ||
| /** | ||
| * OAuth issuer for requests | ||
| */ | ||
| get selfSignedJwtAudience(): string; | ||
| /** | ||
| * Jwks_uri for token signing keys | ||
| */ | ||
| get jwksUri(): string; | ||
| /** | ||
| * Returns a flag indicating that tenant name can be replaced in authority {@link IUri} | ||
| * @param authorityUri {@link IUri} | ||
| * @private | ||
| */ | ||
| private canReplaceTenant; | ||
| /** | ||
| * Replaces tenant in url path with current tenant. Defaults to common. | ||
| * @param urlString | ||
| */ | ||
| private replaceTenant; | ||
| /** | ||
| * Replaces path such as tenant or policy with the current tenant or policy. | ||
| * @param urlString | ||
| */ | ||
| private replacePath; | ||
| /** | ||
| * The default open id configuration endpoint for any canonical authority. | ||
| */ | ||
| protected get defaultOpenIdConfigurationEndpoint(): string; | ||
| /** | ||
| * Boolean that returns whether or not tenant discovery has been completed. | ||
| */ | ||
| discoveryComplete(): boolean; | ||
| /** | ||
| * Perform endpoint discovery to discover aliases, preferred_cache, preferred_network | ||
| * and the /authorize, /token and logout endpoints. | ||
| */ | ||
| resolveEndpointsAsync(): Promise<void>; | ||
| /** | ||
| * Returns metadata entity from cache if it exists, otherwiser returns a new metadata entity built | ||
| * from the configured canonical authority | ||
| * @returns | ||
| */ | ||
| private getCurrentMetadataEntity; | ||
| /** | ||
| * Updates cached metadata based on metadata source and sets the instance's metadata | ||
| * property to the same value | ||
| * @param metadataEntity | ||
| * @param cloudDiscoverySource | ||
| * @param endpointMetadataResult | ||
| */ | ||
| private updateCachedMetadata; | ||
| /** | ||
| * Update AuthorityMetadataEntity with new endpoints and return where the information came from | ||
| * @param metadataEntity | ||
| */ | ||
| private updateEndpointMetadata; | ||
| /** | ||
| * Updates endpoint metadata from local sources and returns where the information was retrieved from and the metadata config | ||
| * response if the source is hardcoded metadata | ||
| * @param metadataEntity | ||
| * @returns | ||
| */ | ||
| private updateEndpointMetadataFromLocalSources; | ||
| /** | ||
| * Compares the number of url components after the domain to determine if the cached | ||
| * authority metadata can be used for the requested authority. Protects against same domain different | ||
| * authority such as login.microsoftonline.com/tenant and login.microsoftonline.com/tfp/tenant/policy | ||
| * @param metadataEntity | ||
| */ | ||
| private isAuthoritySameType; | ||
| /** | ||
| * Parse authorityMetadata config option | ||
| */ | ||
| private getEndpointMetadataFromConfig; | ||
| /** | ||
| * Gets OAuth endpoints from the given OpenID configuration endpoint. | ||
| * | ||
| * @param hasHardcodedMetadata boolean | ||
| */ | ||
| private getEndpointMetadataFromNetwork; | ||
| /** | ||
| * Get OAuth endpoints for common authorities. | ||
| */ | ||
| private getEndpointMetadataFromHardcodedValues; | ||
| /** | ||
| * Update the retrieved metadata with regional information. | ||
| * User selected Azure region will be used if configured. | ||
| */ | ||
| private updateMetadataWithRegionalInformation; | ||
| /** | ||
| * Updates the AuthorityMetadataEntity with new aliases, preferred_network and preferred_cache | ||
| * and returns where the information was retrieved from | ||
| * @param metadataEntity | ||
| * @returns AuthorityMetadataSource | ||
| */ | ||
| private updateCloudDiscoveryMetadata; | ||
| private updateCloudDiscoveryMetadataFromLocalSources; | ||
| /** | ||
| * Parse cloudDiscoveryMetadata config or check knownAuthorities | ||
| */ | ||
| private getCloudDiscoveryMetadataFromConfig; | ||
| /** | ||
| * Called to get metadata from network if CloudDiscoveryMetadata was not populated by config | ||
| * | ||
| * @param hasHardcodedMetadata boolean | ||
| */ | ||
| private getCloudDiscoveryMetadataFromNetwork; | ||
| /** | ||
| * Helper function to determine if this host is included in the knownAuthorities config option | ||
| */ | ||
| private isInKnownAuthorities; | ||
| /** | ||
| * helper function to populate the authority based on azureCloudOptions | ||
| * @param authorityString | ||
| * @param azureCloudOptions | ||
| */ | ||
| static generateAuthority(authorityString: string, azureCloudOptions?: AzureCloudOptions): string; | ||
| /** | ||
| * Creates cloud discovery metadata object from a given host | ||
| * @param host | ||
| */ | ||
| static createCloudDiscoveryMetadataFromHost(host: string): CloudDiscoveryMetadata; | ||
| /** | ||
| * helper function to generate environment from authority object | ||
| */ | ||
| getPreferredCache(): string; | ||
| /** | ||
| * Returns whether or not the provided host is an alias of this authority instance | ||
| * @param host | ||
| */ | ||
| isAlias(host: string): boolean; | ||
| /** | ||
| * Returns whether or not the provided host is an alias of a known Microsoft authority for purposes of endpoint discovery | ||
| * @param host | ||
| */ | ||
| isAliasOfKnownMicrosoftAuthority(host: string): boolean; | ||
| /** | ||
| * Checks whether the provided host is that of a public cloud authority | ||
| * | ||
| * @param authority string | ||
| * @returns bool | ||
| */ | ||
| static isPublicCloudAuthority(host: string): boolean; | ||
| /** | ||
| * Rebuild the authority string with the region | ||
| * | ||
| * @param host string | ||
| * @param region string | ||
| */ | ||
| static buildRegionalAuthorityString(host: string, region: string, queryString?: string): string; | ||
| /** | ||
| * Replace the endpoints in the metadata object with their regional equivalents. | ||
| * | ||
| * @param metadata OpenIdConfigResponse | ||
| * @param azureRegion string | ||
| */ | ||
| static replaceWithRegionalInformation(metadata: OpenIdConfigResponse, azureRegion: string): OpenIdConfigResponse; | ||
| /** | ||
| * Transform CIAM_AUTHORIY as per the below rules: | ||
| * If no path segments found and it is a CIAM authority (hostname ends with .ciamlogin.com), then transform it | ||
| * | ||
| * NOTE: The transformation path should go away once STS supports CIAM with the format: `tenantIdorDomain.ciamlogin.com` | ||
| * `ciamlogin.com` can also change in the future and we should accommodate the same | ||
| * | ||
| * @param authority | ||
| */ | ||
| static transformCIAMAuthority(authority: string): string; | ||
| } | ||
| /** | ||
| * Extract tenantId from authority | ||
| */ | ||
| export declare function getTenantFromAuthorityString(authority: string): string | undefined; | ||
| export declare function formatAuthorityUri(authorityUri: string): string; | ||
| export declare function buildStaticAuthorityOptions(authOptions: Partial<AuthorityOptions>): StaticAuthorityOptions; | ||
| //# sourceMappingURL=Authority.d.ts.map |
| {"version":3,"file":"Authority.d.ts","sourceRoot":"","sources":["../../src/authority/Authority.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAEH,oBAAoB,EACvB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAKtC,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8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AAgB,CAAC,GACvC,sBAAsB,CAoBxB"} |
| import { Authority } from "./Authority.js"; | ||
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { ICacheManager } from "../cache/interface/ICacheManager.js"; | ||
| import { AuthorityOptions } from "./AuthorityOptions.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| /** | ||
| * Create an authority object of the correct type based on the url | ||
| * Performs basic authority validation - checks to see if the authority is of a valid type (i.e. aad, b2c, adfs) | ||
| * | ||
| * Also performs endpoint discovery. | ||
| * | ||
| * @param authorityUri | ||
| * @param networkClient | ||
| * @param cacheManager | ||
| * @param authorityOptions | ||
| * @param logger | ||
| * @param correlationId | ||
| * @param performanceClient | ||
| * @internal | ||
| */ | ||
| export declare function createDiscoveredInstance(authorityUri: string, networkClient: INetworkModule, cacheManager: ICacheManager, authorityOptions: AuthorityOptions, logger: Logger, correlationId: string, performanceClient: IPerformanceClient): Promise<Authority>; | ||
| //# sourceMappingURL=AuthorityFactory.d.ts.map |
| {"version":3,"file":"AuthorityFactory.d.ts","sourceRoot":"","sources":["../../src/authority/AuthorityFactory.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAsB,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAK9D,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAIpF;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,wBAAwB,CAC1C,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,cAAc,EAC7B,YAAY,EAAE,aAAa,EAC3B,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,EACrB,iBAAiB,EAAE,kBAAkB,GACtC,OAAO,CAAC,SAAS,CAAC,CAgCpB"} |
| import { Logger } from "../logger/Logger.js"; | ||
| import { AuthorityMetadataSource } from "../utils/Constants.js"; | ||
| import { StaticAuthorityOptions } from "./AuthorityOptions.js"; | ||
| import { CloudDiscoveryMetadata } from "./CloudDiscoveryMetadata.js"; | ||
| import { CloudInstanceDiscoveryResponse } from "./CloudInstanceDiscoveryResponse.js"; | ||
| import { OpenIdConfigResponse } from "./OpenIdConfigResponse.js"; | ||
| type RawMetadata = { | ||
| endpointMetadata: { | ||
| [key: string]: OpenIdConfigResponse; | ||
| }; | ||
| instanceDiscoveryMetadata: CloudInstanceDiscoveryResponse; | ||
| }; | ||
| export declare const rawMetdataJSON: RawMetadata; | ||
| export declare const EndpointMetadata: { | ||
| [key: string]: OpenIdConfigResponse; | ||
| }; | ||
| export declare const InstanceDiscoveryMetadata: CloudInstanceDiscoveryResponse; | ||
| export declare const InstanceDiscoveryMetadataAliases: Set<String>; | ||
| /** | ||
| * Attempts to get an aliases array from the static authority metadata sources based on the canonical authority host | ||
| * @param staticAuthorityOptions | ||
| * @param logger | ||
| * @returns | ||
| */ | ||
| export declare function getAliasesFromStaticSources(staticAuthorityOptions: StaticAuthorityOptions, logger: Logger, correlationId: string): string[]; | ||
| /** | ||
| * Returns aliases for from the raw cloud discovery metadata passed in | ||
| * @param authorityHost | ||
| * @param rawCloudDiscoveryMetadata | ||
| * @returns | ||
| */ | ||
| export declare function getAliasesFromMetadata(logger: Logger, correlationId: string, authorityHost?: string, cloudDiscoveryMetadata?: CloudDiscoveryMetadata[], source?: AuthorityMetadataSource): string[] | null; | ||
| /** | ||
| * Get cloud discovery metadata for common authorities | ||
| */ | ||
| export declare function getCloudDiscoveryMetadataFromHardcodedValues(authorityHost: string): CloudDiscoveryMetadata | null; | ||
| /** | ||
| * Searches instance discovery network response for the entry that contains the host in the aliases list | ||
| * @param response | ||
| * @param authority | ||
| */ | ||
| export declare function getCloudDiscoveryMetadataFromNetworkResponse(response: CloudDiscoveryMetadata[], authorityHost: string): CloudDiscoveryMetadata | null; | ||
| export {}; | ||
| //# sourceMappingURL=AuthorityMetadata.d.ts.map |
| {"version":3,"file":"AuthorityMetadata.d.ts","sourceRoot":"","sources":["../../src/authority/AuthorityMetadata.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,KAAK,WAAW,GAAG;IACf,gBAAgB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE,CAAC;IAC1D,yBAAyB,EAAE,8BAA8B,CAAC;CAC7D,CAAC;AAkCF,eAAO,MAAM,cAAc,EAAE,WA2D5B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;CAAkC,CAAC;AAChE,eAAO,MAAM,yBAAyB,gCACM,CAAC;AAE7C,eAAO,MAAM,gCAAgC,EAAE,GAAG,CAAC,MAAM,CAAa,CAAC;AASvE;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACvC,sBAAsB,EAAE,sBAAsB,EAC9C,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,GACtB,MAAM,EAAE,CA0BV;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAClC,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,EACrB,aAAa,CAAC,EAAE,MAAM,EACtB,sBAAsB,CAAC,EAAE,sBAAsB,EAAE,EACjD,MAAM,CAAC,EAAE,uBAAuB,GACjC,MAAM,EAAE,GAAG,IAAI,CA0BjB;AAED;;GAEG;AACH,wBAAgB,4CAA4C,CACxD,aAAa,EAAE,MAAM,GACtB,sBAAsB,GAAG,IAAI,CAM/B;AAED;;;;GAIG;AACH,wBAAgB,4CAA4C,CACxD,QAAQ,EAAE,sBAAsB,EAAE,EAClC,aAAa,EAAE,MAAM,GACtB,sBAAsB,GAAG,IAAI,CAS/B"} |
| import { ProtocolMode } from "./ProtocolMode.js"; | ||
| import { OIDCOptions } from "./OIDCOptions.js"; | ||
| import { AzureRegionConfiguration } from "./AzureRegionConfiguration.js"; | ||
| import { CloudInstanceDiscoveryResponse } from "./CloudInstanceDiscoveryResponse.js"; | ||
| export type AuthorityOptions = { | ||
| protocolMode: ProtocolMode; | ||
| OIDCOptions?: OIDCOptions | null; | ||
| knownAuthorities: Array<string>; | ||
| cloudDiscoveryMetadata: string; | ||
| authorityMetadata: string; | ||
| azureRegionConfiguration?: AzureRegionConfiguration; | ||
| authority?: string; | ||
| }; | ||
| export type StaticAuthorityOptions = Partial<Pick<AuthorityOptions, "knownAuthorities">> & { | ||
| canonicalAuthority?: string; | ||
| cloudDiscoveryMetadata?: CloudInstanceDiscoveryResponse; | ||
| }; | ||
| export declare const AzureCloudInstance: { | ||
| readonly None: "none"; | ||
| readonly AzurePublic: "https://login.microsoftonline.com"; | ||
| readonly AzurePpe: "https://login.windows-ppe.net"; | ||
| readonly AzureChina: "https://login.chinacloudapi.cn"; | ||
| readonly AzureGermany: "https://login.microsoftonline.de"; | ||
| readonly AzureUsGovernment: "https://login.microsoftonline.us"; | ||
| }; | ||
| export type AzureCloudInstance = (typeof AzureCloudInstance)[keyof typeof AzureCloudInstance]; | ||
| //# sourceMappingURL=AuthorityOptions.d.ts.map |
| {"version":3,"file":"AuthorityOptions.d.ts","sourceRoot":"","sources":["../../src/authority/AuthorityOptions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,YAAY,EAAE,YAAY,CAAC;IAC3B,WAAW,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACjC,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,OAAO,CACxC,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAC7C,GAAG;IACA,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,sBAAsB,CAAC,EAAE,8BAA8B,CAAC;CAC3D,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;CAkBrB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAC1B,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC"} |
| /** | ||
| * Authority types supported by MSAL. | ||
| */ | ||
| export declare const AuthorityType: { | ||
| readonly Default: 0; | ||
| readonly Adfs: 1; | ||
| readonly Dsts: 2; | ||
| readonly Ciam: 3; | ||
| }; | ||
| export type AuthorityType = (typeof AuthorityType)[keyof typeof AuthorityType]; | ||
| //# sourceMappingURL=AuthorityType.d.ts.map |
| {"version":3,"file":"AuthorityType.d.ts","sourceRoot":"","sources":["../../src/authority/AuthorityType.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC"} |
| export type AzureRegion = string; | ||
| //# sourceMappingURL=AzureRegion.d.ts.map |
| {"version":3,"file":"AzureRegion.d.ts","sourceRoot":"","sources":["../../src/authority/AzureRegion.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC"} |
| import { AzureRegion } from "./AzureRegion.js"; | ||
| export type AzureRegionConfiguration = { | ||
| azureRegion?: AzureRegion; | ||
| environmentRegion: string | undefined; | ||
| }; | ||
| //# sourceMappingURL=AzureRegionConfiguration.d.ts.map |
| {"version":3,"file":"AzureRegionConfiguration.d.ts","sourceRoot":"","sources":["../../src/authority/AzureRegionConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAO/C,MAAM,MAAM,wBAAwB,GAAG;IACnC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC,CAAC"} |
| export type CloudDiscoveryMetadata = { | ||
| preferred_network: string; | ||
| preferred_cache: string; | ||
| aliases: Array<string>; | ||
| }; | ||
| //# sourceMappingURL=CloudDiscoveryMetadata.d.ts.map |
| {"version":3,"file":"CloudDiscoveryMetadata.d.ts","sourceRoot":"","sources":["../../src/authority/CloudDiscoveryMetadata.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,sBAAsB,GAAG;IACjC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B,CAAC"} |
| /** | ||
| * The OpenID Configuration Endpoint Response type. Used by the authority class to get relevant OAuth endpoints. | ||
| */ | ||
| export type CloudInstanceDiscoveryErrorResponse = { | ||
| error: String; | ||
| error_description: String; | ||
| error_codes?: Array<Number>; | ||
| timestamp?: String; | ||
| trace_id?: String; | ||
| correlation_id?: String; | ||
| error_uri?: String; | ||
| }; | ||
| export declare function isCloudInstanceDiscoveryErrorResponse(response: object): boolean; | ||
| //# sourceMappingURL=CloudInstanceDiscoveryErrorResponse.d.ts.map |
| {"version":3,"file":"CloudInstanceDiscoveryErrorResponse.d.ts","sourceRoot":"","sources":["../../src/authority/CloudInstanceDiscoveryErrorResponse.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,qCAAqC,CACjD,QAAQ,EAAE,MAAM,GACjB,OAAO,CAKT"} |
| import { CloudDiscoveryMetadata } from "./CloudDiscoveryMetadata.js"; | ||
| /** | ||
| * The OpenID Configuration Endpoint Response type. Used by the authority class to get relevant OAuth endpoints. | ||
| */ | ||
| export type CloudInstanceDiscoveryResponse = { | ||
| tenant_discovery_endpoint: string; | ||
| metadata: Array<CloudDiscoveryMetadata>; | ||
| }; | ||
| export declare function isCloudInstanceDiscoveryResponse(response: object): boolean; | ||
| //# sourceMappingURL=CloudInstanceDiscoveryResponse.d.ts.map |
| {"version":3,"file":"CloudInstanceDiscoveryResponse.d.ts","sourceRoot":"","sources":["../../src/authority/CloudInstanceDiscoveryResponse.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG;IACzC,yBAAyB,EAAE,MAAM,CAAC;IAClC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;CAC3C,CAAC;AAEF,wBAAgB,gCAAgC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAK1E"} |
| export type ImdsOptions = { | ||
| headers?: { | ||
| Metadata: string; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=ImdsOptions.d.ts.map |
| {"version":3,"file":"ImdsOptions.d.ts","sourceRoot":"","sources":["../../src/authority/ImdsOptions.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,WAAW,GAAG;IACtB,OAAO,CAAC,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC;KACpB,CAAC;CACL,CAAC"} |
| import { ResponseMode } from "../utils/Constants.js"; | ||
| /** | ||
| * Options for the OIDC protocol mode. | ||
| */ | ||
| export type OIDCOptions = { | ||
| responseMode?: ResponseMode; | ||
| defaultScopes?: Array<string>; | ||
| }; | ||
| //# sourceMappingURL=OIDCOptions.d.ts.map |
| {"version":3,"file":"OIDCOptions.d.ts","sourceRoot":"","sources":["../../src/authority/OIDCOptions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACjC,CAAC"} |
| /** | ||
| * Tenant Discovery Response which contains the relevant OAuth endpoints and data needed for authentication and authorization. | ||
| */ | ||
| export type OpenIdConfigResponse = { | ||
| authorization_endpoint: string; | ||
| token_endpoint: string; | ||
| end_session_endpoint?: string; | ||
| issuer: string; | ||
| jwks_uri: string; | ||
| }; | ||
| export declare function isOpenIdConfigResponse(response: object): boolean; | ||
| //# sourceMappingURL=OpenIdConfigResponse.d.ts.map |
| {"version":3,"file":"OpenIdConfigResponse.d.ts","sourceRoot":"","sources":["../../src/authority/OpenIdConfigResponse.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAOhE"} |
| /** | ||
| * Protocol modes supported by MSAL. | ||
| */ | ||
| export declare const ProtocolMode: { | ||
| /** | ||
| * Auth Code + PKCE with Entra ID (formerly AAD) specific optimizations and features | ||
| */ | ||
| readonly AAD: "AAD"; | ||
| /** | ||
| * Auth Code + PKCE without Entra ID specific optimizations and features. For use only with non-Microsoft owned authorities. | ||
| * Support is limited for this mode. | ||
| */ | ||
| readonly OIDC: "OIDC"; | ||
| /** | ||
| * Encrypted Authorize Response (EAR) with Entra ID specific optimizations and features | ||
| */ | ||
| readonly EAR: "EAR"; | ||
| }; | ||
| export type ProtocolMode = (typeof ProtocolMode)[keyof typeof ProtocolMode]; | ||
| //# sourceMappingURL=ProtocolMode.d.ts.map |
| {"version":3,"file":"ProtocolMode.d.ts","sourceRoot":"","sources":["../../src/authority/ProtocolMode.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,YAAY;IACrB;;OAEG;;IAEH;;;OAGG;;IAEH;;OAEG;;CAEG,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"} |
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { RegionDiscoveryMetadata } from "./RegionDiscoveryMetadata.js"; | ||
| import { ImdsOptions } from "./ImdsOptions.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| export declare class RegionDiscovery { | ||
| protected networkInterface: INetworkModule; | ||
| private logger; | ||
| protected performanceClient: IPerformanceClient; | ||
| protected correlationId: string; | ||
| protected static IMDS_OPTIONS: ImdsOptions; | ||
| constructor(networkInterface: INetworkModule, logger: Logger, performanceClient: IPerformanceClient, correlationId: string); | ||
| /** | ||
| * Detect the region from the application's environment. | ||
| * | ||
| * @returns Promise<string | null> | ||
| */ | ||
| detectRegion(environmentRegion: string | undefined, regionDiscoveryMetadata: RegionDiscoveryMetadata): Promise<string | null>; | ||
| /** | ||
| * Make the call to the IMDS endpoint | ||
| * | ||
| * @param imdsEndpointUrl | ||
| * @returns Promise<NetworkResponse<string>> | ||
| */ | ||
| private getRegionFromIMDS; | ||
| /** | ||
| * Get the most recent version of the IMDS endpoint available | ||
| * | ||
| * @returns Promise<string | null> | ||
| */ | ||
| private getCurrentVersion; | ||
| } | ||
| //# sourceMappingURL=RegionDiscovery.d.ts.map |
| {"version":3,"file":"RegionDiscovery.d.ts","sourceRoot":"","sources":["../../src/authority/RegionDiscovery.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAI9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAGpF,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,qBAAa,eAAe;IAExB,SAAS,CAAC,gBAAgB,EAAE,cAAc,CAAC;IAE3C,OAAO,CAAC,MAAM,CAAS;IAEvB,SAAS,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;IAEhD,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC;IAEhC,SAAS,CAAC,MAAM,CAAC,YAAY,EAAE,WAAW,CAIxC;gBAGE,gBAAgB,EAAE,cAAc,EAChC,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,kBAAkB,EACrC,aAAa,EAAE,MAAM;IAQzB;;;;OAIG;IACU,YAAY,CACrB,iBAAiB,EAAE,MAAM,GAAG,SAAS,EACrC,uBAAuB,EAAE,uBAAuB,GACjD,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IA8EzB;;;;;OAKG;YACW,iBAAiB;IAW/B;;;;OAIG;YACW,iBAAiB;CAyBlC"} |
| import { RegionDiscoveryOutcomes, RegionDiscoverySources } from "../utils/Constants.js"; | ||
| export type RegionDiscoveryMetadata = { | ||
| region_used?: string; | ||
| region_source?: RegionDiscoverySources; | ||
| region_outcome?: RegionDiscoveryOutcomes; | ||
| }; | ||
| //# sourceMappingURL=RegionDiscoveryMetadata.d.ts.map |
| {"version":3,"file":"RegionDiscoveryMetadata.d.ts","sourceRoot":"","sources":["../../src/authority/RegionDiscoveryMetadata.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,uBAAuB,EACvB,sBAAsB,EACzB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,uBAAuB,GAAG;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC,cAAc,CAAC,EAAE,uBAAuB,CAAC;CAC5C,CAAC"} |
| /// <reference types="node" resolution-mode="require"/> | ||
| /// <reference types="node" resolution-mode="require"/> | ||
| import { AccountInfo } from "../../account/AccountInfo.js"; | ||
| import { LoggerOptions } from "../../config/ClientConfiguration.js"; | ||
| import { NativeRequest } from "../../request/NativeRequest.js"; | ||
| import { NativeSignOutRequest } from "../../request/NativeSignOutRequest.js"; | ||
| import { AuthenticationResult } from "../../response/AuthenticationResult.js"; | ||
| export interface INativeBrokerPlugin { | ||
| isBrokerAvailable: boolean; | ||
| setLogger(loggerOptions: LoggerOptions): void; | ||
| getAccountById(accountId: string, correlationId: string): Promise<AccountInfo>; | ||
| getAllAccounts(clientId: string, correlationId: string): Promise<AccountInfo[]>; | ||
| acquireTokenSilent(request: NativeRequest): Promise<AuthenticationResult>; | ||
| acquireTokenInteractive(request: NativeRequest, windowHandle?: Buffer): Promise<AuthenticationResult>; | ||
| signOut(request: NativeSignOutRequest): Promise<void>; | ||
| } | ||
| //# sourceMappingURL=INativeBrokerPlugin.d.ts.map |
| {"version":3,"file":"INativeBrokerPlugin.d.ts","sourceRoot":"","sources":["../../../src/broker/nativeBroker/INativeBrokerPlugin.ts"],"names":[],"mappings":";;AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAE9E,MAAM,WAAW,mBAAmB;IAChC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IAC9C,cAAc,CACV,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,WAAW,CAAC,CAAC;IACxB,cAAc,CACV,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAC1B,kBAAkB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAC1E,uBAAuB,CACnB,OAAO,EAAE,aAAa,EACtB,YAAY,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACjC,OAAO,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzD"} |
| import { AccountInfo } from "../account/AccountInfo.js"; | ||
| import { StaticAuthorityOptions } from "../authority/AuthorityOptions.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| import { StoreInCache } from "../request/StoreInCache.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { AccessTokenEntity } from "./entities/AccessTokenEntity.js"; | ||
| import { AccountEntity } from "./entities/AccountEntity.js"; | ||
| import { AppMetadataEntity } from "./entities/AppMetadataEntity.js"; | ||
| import { AuthorityMetadataEntity } from "./entities/AuthorityMetadataEntity.js"; | ||
| import { CacheRecord } from "./entities/CacheRecord.js"; | ||
| import { CredentialEntity } from "./entities/CredentialEntity.js"; | ||
| import { IdTokenEntity } from "./entities/IdTokenEntity.js"; | ||
| import { RefreshTokenEntity } from "./entities/RefreshTokenEntity.js"; | ||
| import { ServerTelemetryEntity } from "./entities/ServerTelemetryEntity.js"; | ||
| import { ThrottlingEntity } from "./entities/ThrottlingEntity.js"; | ||
| import { ICacheManager } from "./interface/ICacheManager.js"; | ||
| import { AccountFilter, AppMetadataCache, AppMetadataFilter, CredentialFilter, TokenKeys, ValidCredentialType } from "./utils/CacheTypes.js"; | ||
| /** | ||
| * Interface class which implement cache storage functions used by MSAL to perform validity checks, and store tokens. | ||
| * @internal | ||
| */ | ||
| export declare abstract class CacheManager implements ICacheManager { | ||
| protected clientId: string; | ||
| protected cryptoImpl: ICrypto; | ||
| private commonLogger; | ||
| private staticAuthorityOptions?; | ||
| protected performanceClient: IPerformanceClient; | ||
| constructor(clientId: string, cryptoImpl: ICrypto, logger: Logger, performanceClient: IPerformanceClient, staticAuthorityOptions?: StaticAuthorityOptions); | ||
| /** | ||
| * fetch the account entity from the platform cache | ||
| * @param accountKey | ||
| */ | ||
| abstract getAccount(accountKey: string, correlationId: string): AccountEntity | null; | ||
| /** | ||
| * set account entity in the platform cache | ||
| * @param account | ||
| * @param correlationId | ||
| */ | ||
| abstract setAccount(account: AccountEntity, correlationId: string, kmsi: boolean, apiId: number): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param idTokenKey | ||
| */ | ||
| abstract getIdTokenCredential(idTokenKey: string, correlationId: string): IdTokenEntity | null; | ||
| /** | ||
| * set idToken entity to the platform cache | ||
| * @param idToken | ||
| * @param correlationId | ||
| */ | ||
| abstract setIdTokenCredential(idToken: IdTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param accessTokenKey | ||
| */ | ||
| abstract getAccessTokenCredential(accessTokenKey: string, correlationId: string): AccessTokenEntity | null; | ||
| /** | ||
| * set accessToken entity to the platform cache | ||
| * @param accessToken | ||
| * @param correlationId | ||
| */ | ||
| abstract setAccessTokenCredential(accessToken: AccessTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param refreshTokenKey | ||
| */ | ||
| abstract getRefreshTokenCredential(refreshTokenKey: string, correlationId: string): RefreshTokenEntity | null; | ||
| /** | ||
| * set refreshToken entity to the platform cache | ||
| * @param refreshToken | ||
| * @param correlationId | ||
| */ | ||
| abstract setRefreshTokenCredential(refreshToken: RefreshTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch appMetadata entity from the platform cache | ||
| * @param appMetadataKey | ||
| * @param correlationId | ||
| */ | ||
| abstract getAppMetadata(appMetadataKey: string, correlationId: string): AppMetadataEntity | null; | ||
| /** | ||
| * set appMetadata entity to the platform cache | ||
| * @param appMetadata | ||
| */ | ||
| abstract setAppMetadata(appMetadata: AppMetadataEntity, correlationId: string): void; | ||
| /** | ||
| * fetch server telemetry entity from the platform cache | ||
| * @param serverTelemetryKey | ||
| * @param correlationId | ||
| */ | ||
| abstract getServerTelemetry(serverTelemetryKey: string, correlationId: string): ServerTelemetryEntity | null; | ||
| /** | ||
| * set server telemetry entity to the platform cache | ||
| * @param serverTelemetryKey | ||
| * @param serverTelemetry | ||
| * @param correlationId | ||
| */ | ||
| abstract setServerTelemetry(serverTelemetryKey: string, serverTelemetry: ServerTelemetryEntity, correlationId: string): void; | ||
| /** | ||
| * fetch cloud discovery metadata entity from the platform cache | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| abstract getAuthorityMetadata(key: string, correlationId: string): AuthorityMetadataEntity | null; | ||
| /** | ||
| * | ||
| */ | ||
| abstract getAuthorityMetadataKeys(): Array<string>; | ||
| /** | ||
| * set cloud discovery metadata entity to the platform cache | ||
| * @param key | ||
| * @param value | ||
| * @param correlationId | ||
| */ | ||
| abstract setAuthorityMetadata(key: string, value: AuthorityMetadataEntity, correlationId: string): void; | ||
| /** | ||
| * fetch throttling entity from the platform cache | ||
| * @param throttlingCacheKey | ||
| * @param correlationId | ||
| */ | ||
| abstract getThrottlingCache(throttlingCacheKey: string, correlationId: string): ThrottlingEntity | null; | ||
| /** | ||
| * set throttling entity to the platform cache | ||
| * @param throttlingCacheKey | ||
| * @param throttlingCache | ||
| */ | ||
| abstract setThrottlingCache(throttlingCacheKey: string, throttlingCache: ThrottlingEntity, correlationId: string): void; | ||
| /** | ||
| * Function to remove an item from cache given its key. | ||
| * @param key | ||
| */ | ||
| abstract removeItem(key: string, correlationId: string): void; | ||
| /** | ||
| * Function which retrieves all current keys from the cache. | ||
| */ | ||
| abstract getKeys(): string[]; | ||
| /** | ||
| * Function which retrieves all account keys from the cache | ||
| */ | ||
| abstract getAccountKeys(): string[]; | ||
| /** | ||
| * Function which retrieves all token keys from the cache | ||
| */ | ||
| abstract getTokenKeys(): TokenKeys; | ||
| /** | ||
| * Returns credential cache key from the entity | ||
| * @param credential | ||
| */ | ||
| abstract generateCredentialKey(credential: CredentialEntity): string; | ||
| /** | ||
| * Returns the account cache key from the account info | ||
| * @param account | ||
| */ | ||
| abstract generateAccountKey(account: AccountInfo): string; | ||
| /** | ||
| * Returns all the accounts in the cache that match the optional filter. If no filter is provided, all accounts are returned. | ||
| * @param accountFilter - (Optional) filter to narrow down the accounts returned | ||
| * @returns Array of AccountInfo objects in cache | ||
| */ | ||
| getAllAccounts(accountFilter: AccountFilter | undefined, correlationId: string): AccountInfo[]; | ||
| /** | ||
| * Gets first tenanted AccountInfo object found based on provided filters | ||
| */ | ||
| getAccountInfoFilteredBy(accountFilter: AccountFilter, correlationId: string): AccountInfo | null; | ||
| /** | ||
| * Returns a single matching | ||
| * @param accountFilter | ||
| * @returns | ||
| */ | ||
| getBaseAccountInfo(accountFilter: AccountFilter, correlationId: string): AccountInfo | null; | ||
| /** | ||
| * Matches filtered account entities with cached ID tokens that match the tenant profile-specific account filters | ||
| * and builds the account info objects from the matching ID token's claims | ||
| * @param cachedAccounts | ||
| * @param accountFilter | ||
| * @returns Array of AccountInfo objects that match account and tenant profile filters | ||
| */ | ||
| private buildTenantProfiles; | ||
| private getTenantedAccountInfoByFilter; | ||
| private getTenantProfilesFromAccountEntity; | ||
| private tenantProfileMatchesFilter; | ||
| private idTokenClaimsMatchTenantProfileFilter; | ||
| /** | ||
| * saves a cache record | ||
| * @param cacheRecord {CacheRecord} | ||
| * @param storeInCache {?StoreInCache} | ||
| * @param correlationId {?string} correlation id | ||
| */ | ||
| saveCacheRecord(cacheRecord: CacheRecord, correlationId: string, kmsi: boolean, apiId: number, storeInCache?: StoreInCache): Promise<void>; | ||
| /** | ||
| * saves access token credential | ||
| * @param credential | ||
| */ | ||
| private saveAccessToken; | ||
| /** | ||
| * Retrieve account entities matching all provided tenant-agnostic filters; if no filter is set, get all account entities in the cache | ||
| * Not checking for casing as keys are all generated in lower case, remember to convert to lower case if object properties are compared | ||
| * @param accountFilter - An object containing Account properties to filter by | ||
| */ | ||
| getAccountsFilteredBy(accountFilter: AccountFilter, correlationId: string): AccountEntity[]; | ||
| /** | ||
| * Returns whether or not the given credential entity matches the filter | ||
| * @param entity | ||
| * @param filter | ||
| * @param correlationId | ||
| * @returns | ||
| */ | ||
| credentialMatchesFilter(entity: ValidCredentialType, filter: CredentialFilter, correlationId: string): boolean; | ||
| /** | ||
| * retrieve appMetadata matching all provided filters; if no filter is set, get all appMetadata | ||
| * @param filter | ||
| * @param correlationId | ||
| */ | ||
| getAppMetadataFilteredBy(filter: AppMetadataFilter, correlationId: string): AppMetadataCache; | ||
| /** | ||
| * retrieve authorityMetadata that contains a matching alias | ||
| * @param host | ||
| * @param correlationId | ||
| */ | ||
| getAuthorityMetadataByAlias(host: string, correlationId: string): AuthorityMetadataEntity | null; | ||
| /** | ||
| * Removes all accounts and related tokens from cache. | ||
| */ | ||
| removeAllAccounts(correlationId: string): void; | ||
| /** | ||
| * Removes the account and related tokens for a given account key | ||
| * @param account | ||
| */ | ||
| removeAccount(account: AccountInfo, correlationId: string): void; | ||
| /** | ||
| * Removes credentials associated with the provided account | ||
| * @param account | ||
| */ | ||
| removeAccountContext(account: AccountInfo, correlationId: string): void; | ||
| /** | ||
| * returns a boolean if the given credential is removed | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| removeAccessToken(key: string, correlationId: string): void; | ||
| /** | ||
| * Removes all app metadata objects from cache. | ||
| */ | ||
| removeAppMetadata(correlationId: string): boolean; | ||
| /** | ||
| * Retrieve IdTokenEntity from cache | ||
| * @param account {AccountInfo} | ||
| * @param tokenKeys {?TokenKeys} | ||
| * @param targetRealm {?string} | ||
| * @param performanceClient {?IPerformanceClient} | ||
| * @param correlationId {?string} | ||
| */ | ||
| getIdToken(account: AccountInfo, correlationId: string, tokenKeys?: TokenKeys, targetRealm?: string): IdTokenEntity | null; | ||
| /** | ||
| * Gets all idTokens matching the given filter | ||
| * @param filter | ||
| * @returns | ||
| */ | ||
| getIdTokensByFilter(filter: CredentialFilter, correlationId: string, tokenKeys?: TokenKeys): Map<string, IdTokenEntity>; | ||
| /** | ||
| * Validate the cache key against filter before retrieving and parsing cache value | ||
| * @param key | ||
| * @param filter | ||
| * @returns | ||
| */ | ||
| idTokenKeyMatchesFilter(inputKey: string, filter: CredentialFilter): boolean; | ||
| /** | ||
| * Removes idToken from the cache | ||
| * @param key | ||
| */ | ||
| removeIdToken(key: string, correlationId: string): void; | ||
| /** | ||
| * Removes refresh token from the cache | ||
| * @param key | ||
| */ | ||
| removeRefreshToken(key: string, correlationId: string): void; | ||
| /** | ||
| * Retrieve AccessTokenEntity from cache | ||
| * @param account {AccountInfo} | ||
| * @param request {BaseAuthRequest} | ||
| * @param tokenKeys {?TokenKeys} | ||
| * @param performanceClient {?IPerformanceClient} | ||
| */ | ||
| getAccessToken(account: AccountInfo, request: BaseAuthRequest, tokenKeys?: TokenKeys, targetRealm?: string): AccessTokenEntity | null; | ||
| /** | ||
| * Validate the cache key against filter before retrieving and parsing cache value | ||
| * @param key | ||
| * @param filter | ||
| * @param keyMustContainAllScopes | ||
| * @returns | ||
| */ | ||
| accessTokenKeyMatchesFilter(inputKey: string, filter: CredentialFilter, keyMustContainAllScopes: boolean): boolean; | ||
| /** | ||
| * Gets all access tokens matching the filter | ||
| * @param filter | ||
| * @returns | ||
| */ | ||
| getAccessTokensByFilter(filter: CredentialFilter, correlationId: string): AccessTokenEntity[]; | ||
| /** | ||
| * Helper to retrieve the appropriate refresh token from cache | ||
| * @param account {AccountInfo} | ||
| * @param familyRT {boolean} | ||
| * @param tokenKeys {?TokenKeys} | ||
| * @param performanceClient {?IPerformanceClient} | ||
| * @param correlationId {?string} | ||
| */ | ||
| getRefreshToken(account: AccountInfo, familyRT: boolean, correlationId: string, tokenKeys?: TokenKeys): RefreshTokenEntity | null; | ||
| /** | ||
| * Validate the cache key against filter before retrieving and parsing cache value | ||
| * @param key | ||
| * @param filter | ||
| */ | ||
| refreshTokenKeyMatchesFilter(inputKey: string, filter: CredentialFilter): boolean; | ||
| /** | ||
| * Retrieve AppMetadataEntity from cache | ||
| */ | ||
| readAppMetadataFromCache(environment: string, correlationId: string): AppMetadataEntity | null; | ||
| /** | ||
| * Return the family_id value associated with FOCI | ||
| * @param environment | ||
| * @param clientId | ||
| */ | ||
| isAppMetadataFOCI(environment: string, correlationId: string): boolean; | ||
| /** | ||
| * helper to match account ids | ||
| * @param value | ||
| * @param homeAccountId | ||
| */ | ||
| private matchHomeAccountId; | ||
| /** | ||
| * helper to match account ids | ||
| * @param entity | ||
| * @param localAccountId | ||
| * @returns | ||
| */ | ||
| private matchLocalAccountIdFromTokenClaims; | ||
| private matchLocalAccountIdFromTenantProfile; | ||
| /** | ||
| * helper to match names | ||
| * @param entity | ||
| * @param name | ||
| * @returns true if the downcased name properties are present and match in the filter and the entity | ||
| */ | ||
| private matchName; | ||
| /** | ||
| * helper to match usernames | ||
| * @param entity | ||
| * @param username | ||
| * @returns | ||
| */ | ||
| private matchUsername; | ||
| /** | ||
| * helper to match loginhints | ||
| * @param entity | ||
| * @param loginHint | ||
| * @returns | ||
| */ | ||
| private matchLoginHintWithTenantProfile; | ||
| /** | ||
| * helper to match assertion | ||
| * @param value | ||
| * @param oboAssertion | ||
| */ | ||
| private matchUserAssertionHash; | ||
| /** | ||
| * helper to match environment | ||
| * @param value | ||
| * @param environment | ||
| */ | ||
| private matchEnvironment; | ||
| /** | ||
| * helper to match credential type | ||
| * @param entity | ||
| * @param credentialType | ||
| */ | ||
| private matchCredentialType; | ||
| /** | ||
| * helper to match client ids | ||
| * @param entity | ||
| * @param clientId | ||
| */ | ||
| private matchClientId; | ||
| /** | ||
| * helper to match family ids | ||
| * @param entity | ||
| * @param familyId | ||
| */ | ||
| private matchFamilyId; | ||
| /** | ||
| * helper to match realm | ||
| * @param entity | ||
| * @param realm | ||
| */ | ||
| private matchRealm; | ||
| /** | ||
| * helper to match nativeAccountId | ||
| * @param entity | ||
| * @param nativeAccountId | ||
| * @returns boolean indicating the match result | ||
| */ | ||
| private matchNativeAccountId; | ||
| /** | ||
| * helper to match loginHint which can be either: | ||
| * 1. login_hint ID token claim | ||
| * 2. username in cached account object | ||
| * 3. upn in ID token claims | ||
| * @param entity | ||
| * @param loginHint | ||
| * @returns | ||
| */ | ||
| private matchLoginHintFromTokenClaims; | ||
| /** | ||
| * Helper to match sid | ||
| * @param entity | ||
| * @param sid | ||
| * @returns true if the sid claim is present and matches the filter | ||
| */ | ||
| private matchSid; | ||
| private matchAuthorityType; | ||
| /** | ||
| * Returns true if the target scopes are a subset of the current entity's scopes, false otherwise. | ||
| * @param entity | ||
| * @param target | ||
| */ | ||
| private matchTarget; | ||
| /** | ||
| * Returns true if the credential's tokenType or Authentication Scheme matches the one in the request, false otherwise | ||
| * @param entity | ||
| * @param tokenType | ||
| */ | ||
| private matchTokenType; | ||
| /** | ||
| * Returns true if the credential's keyId matches the one in the request, false otherwise | ||
| * @param entity | ||
| * @param keyId | ||
| */ | ||
| private matchKeyId; | ||
| /** | ||
| * returns if a given cache entity is of the type appmetadata | ||
| * @param key | ||
| */ | ||
| private isAppMetadata; | ||
| /** | ||
| * returns if a given cache entity is of the type authoritymetadata | ||
| * @param key | ||
| */ | ||
| protected isAuthorityMetadata(key: string): boolean; | ||
| /** | ||
| * returns cache key used for cloud instance metadata | ||
| */ | ||
| generateAuthorityMetadataCacheKey(authority: string): string; | ||
| /** | ||
| * Helper to convert serialized data to object | ||
| * @param obj | ||
| * @param json | ||
| */ | ||
| static toObject<T>(obj: T, json: object): T; | ||
| } | ||
| /** @internal */ | ||
| export declare class DefaultStorageClass extends CacheManager { | ||
| setAccount(): Promise<void>; | ||
| getAccount(): AccountEntity; | ||
| setIdTokenCredential(): Promise<void>; | ||
| getIdTokenCredential(): IdTokenEntity; | ||
| setAccessTokenCredential(): Promise<void>; | ||
| getAccessTokenCredential(): AccessTokenEntity; | ||
| setRefreshTokenCredential(): Promise<void>; | ||
| getRefreshTokenCredential(): RefreshTokenEntity; | ||
| setAppMetadata(): void; | ||
| getAppMetadata(): AppMetadataEntity; | ||
| setServerTelemetry(): void; | ||
| getServerTelemetry(): ServerTelemetryEntity; | ||
| setAuthorityMetadata(): void; | ||
| getAuthorityMetadata(): AuthorityMetadataEntity | null; | ||
| getAuthorityMetadataKeys(): Array<string>; | ||
| setThrottlingCache(): void; | ||
| getThrottlingCache(): ThrottlingEntity; | ||
| removeItem(): boolean; | ||
| getKeys(): string[]; | ||
| getAccountKeys(): string[]; | ||
| getTokenKeys(): TokenKeys; | ||
| generateCredentialKey(): string; | ||
| generateAccountKey(): string; | ||
| } | ||
| //# sourceMappingURL=CacheManager.d.ts.map |
| {"version":3,"file":"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AkB,IAAI,gBAAgB;IAGtC,UAAU,IAAI,OAAO;IAGrB,OAAO,IAAI,MAAM,EAAE;IAGnB,cAAc,IAAI,MAAM,EAAE;IAG1B,YAAY,IAAI,SAAS;IAGzB,qBAAqB,IAAI,MAAM;IAG/B,kBAAkB,IAAI,MAAM;CAG/B"} |
| import { CredentialEntity } from "./CredentialEntity.js"; | ||
| import { AuthenticationScheme } from "../../utils/Constants.js"; | ||
| /** | ||
| * Access token cache type | ||
| */ | ||
| export type AccessTokenEntity = CredentialEntity & { | ||
| /** Full tenant or organizational identifier that the account belongs to */ | ||
| realm: string; | ||
| /** Permissions that are included in the token, or for refresh tokens, the resource identifier. */ | ||
| target: string; | ||
| /** Absolute device time when entry was created in the cache. */ | ||
| cachedAt: string; | ||
| /** Token expiry time, calculated based on current UTC time in seconds. Represented as a string. */ | ||
| expiresOn: string; | ||
| /** Additional extended expiry time until when token is valid in case of server-side outage. Represented as string in UTC seconds. */ | ||
| extendedExpiresOn?: string; | ||
| /** Used for proactive refresh */ | ||
| refreshOn?: string; | ||
| /** Matches the authentication scheme for which the token was issued (i.e. Bearer or pop) */ | ||
| tokenType?: AuthenticationScheme; | ||
| /** Matches the resource passed into the request for MCP flows */ | ||
| resource?: string; | ||
| }; | ||
| //# sourceMappingURL=AccessTokenEntity.d.ts.map |
| {"version":3,"file":"AccessTokenEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/AccessTokenEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,GAAG;IAC/C,2EAA2E;IAC3E,KAAK,EAAE,MAAM,CAAC;IACd,kGAAkG;IAClG,MAAM,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,QAAQ,EAAE,MAAM,CAAC;IACjB,mGAAmG;IACnG,SAAS,EAAE,MAAM,CAAC;IAClB,qIAAqI;IACrI,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4FAA4F;IAC5F,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"} |
| import { TenantProfile, DataBoundary } from "../../account/AccountInfo.js"; | ||
| /** | ||
| * Type that defines required and optional parameters for an Account field (based on universal cache schema implemented by all MSALs). | ||
| * | ||
| * Key : Value Schema | ||
| * | ||
| * Key: <home_account_id>-<environment>-<realm*> | ||
| * | ||
| * Value Schema: | ||
| * { | ||
| * homeAccountId: home account identifier for the auth scheme, | ||
| * environment: entity that issued the token, represented as a full host | ||
| * realm: Full tenant or organizational identifier that the account belongs to | ||
| * localAccountId: Original tenant-specific accountID, usually used for legacy cases | ||
| * username: primary username that represents the user, usually corresponds to preferred_username in the v2 endpt | ||
| * authorityType: Accounts authority type as a string | ||
| * name: Full name for the account, including given name and family name, | ||
| * lastModificationTime: last time this entity was modified in the cache | ||
| * lastModificationApp: | ||
| * nativeAccountId: Account identifier on the native device | ||
| * tenantProfiles: Array of tenant profile objects for each tenant that the account has authenticated with in the browser | ||
| * } | ||
| * @internal | ||
| */ | ||
| export type AccountEntity = { | ||
| homeAccountId: string; | ||
| environment: string; | ||
| realm: string; | ||
| localAccountId: string; | ||
| username: string; | ||
| authorityType: string; | ||
| loginHint?: string; | ||
| clientInfo?: string; | ||
| name?: string; | ||
| lastModificationTime?: string; | ||
| lastModificationApp?: string; | ||
| cloudGraphHostName?: string; | ||
| msGraphHost?: string; | ||
| nativeAccountId?: string; | ||
| tenantProfiles?: Array<TenantProfile>; | ||
| /** Timestamp when the entry was last updated */ | ||
| lastUpdatedAt: string; | ||
| dataBoundary?: DataBoundary; | ||
| /** API identifier for telemetry to indicate which API cached this account */ | ||
| cachedByApiId?: number; | ||
| }; | ||
| //# sourceMappingURL=AccountEntity.d.ts.map |
| {"version":3,"file":"AccountEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/AccountEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,aAAa,GAAG;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IACtC,gDAAgD;IAChD,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,6EAA6E;IAC7E,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC"} |
| /** | ||
| * App Metadata Cache Type | ||
| */ | ||
| export type AppMetadataEntity = { | ||
| /** clientId of the application */ | ||
| clientId: string; | ||
| /** entity that issued the token, represented as a full host */ | ||
| environment: string; | ||
| /** Family identifier, '1' represents Microsoft Family */ | ||
| familyId?: string; | ||
| }; | ||
| //# sourceMappingURL=AppMetadataEntity.d.ts.map |
| {"version":3,"file":"AppMetadataEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/AppMetadataEntity.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,kCAAkC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,+DAA+D;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"} |
| /** @internal */ | ||
| export type AuthorityMetadataEntity = { | ||
| aliases: Array<string>; | ||
| preferred_cache: string; | ||
| preferred_network: string; | ||
| canonical_authority: string; | ||
| authorization_endpoint: string; | ||
| token_endpoint: string; | ||
| end_session_endpoint?: string; | ||
| issuer: string; | ||
| aliasesFromNetwork: boolean; | ||
| endpointsFromNetwork: boolean; | ||
| expiresAt: number; | ||
| jwks_uri: string; | ||
| }; | ||
| //# sourceMappingURL=AuthorityMetadataEntity.d.ts.map |
| {"version":3,"file":"AuthorityMetadataEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/AuthorityMetadataEntity.ts"],"names":[],"mappings":"AAKA,gBAAgB;AAChB,MAAM,MAAM,uBAAuB,GAAG;IAClC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,OAAO,CAAC;IAC5B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"} |
| import { IdTokenEntity } from "./IdTokenEntity.js"; | ||
| import { AccessTokenEntity } from "./AccessTokenEntity.js"; | ||
| import { RefreshTokenEntity } from "./RefreshTokenEntity.js"; | ||
| import { AccountEntity } from "./AccountEntity.js"; | ||
| import { AppMetadataEntity } from "./AppMetadataEntity.js"; | ||
| /** @internal */ | ||
| export type CacheRecord = { | ||
| account?: AccountEntity | null; | ||
| idToken?: IdTokenEntity | null; | ||
| accessToken?: AccessTokenEntity | null; | ||
| refreshToken?: RefreshTokenEntity | null; | ||
| appMetadata?: AppMetadataEntity | null; | ||
| }; | ||
| //# sourceMappingURL=CacheRecord.d.ts.map |
| {"version":3,"file":"CacheRecord.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/CacheRecord.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,gBAAgB;AAChB,MAAM,MAAM,WAAW,GAAG;IACtB,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAC/B,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAC/B,WAAW,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACvC,YAAY,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACzC,WAAW,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;CAC1C,CAAC"} |
| import { CredentialType, AuthenticationScheme } from "../../utils/Constants.js"; | ||
| /** | ||
| * Credential Cache Type | ||
| */ | ||
| export type CredentialEntity = { | ||
| /** Identifier for the user in their home tenant*/ | ||
| homeAccountId: string; | ||
| /** Entity that issued the token, represented as a full host */ | ||
| environment: string; | ||
| /** Type of credential */ | ||
| credentialType: CredentialType; | ||
| /** Client ID of the application */ | ||
| clientId: string; | ||
| /** Actual credential as a string */ | ||
| secret: string; | ||
| /** Family ID identifier, usually only used for refresh tokens */ | ||
| familyId?: string; | ||
| /** Full tenant or organizational identifier that the account belongs to */ | ||
| realm?: string; | ||
| /** Permissions that are included in the token, or for refresh tokens, the resource identifier. */ | ||
| target?: string; | ||
| /** Matches the SHA 256 hash of the obo_assertion for the OBO flow */ | ||
| userAssertionHash?: string; | ||
| /** Matches the authentication scheme for which the token was issued (i.e. Bearer or pop) */ | ||
| tokenType?: AuthenticationScheme; | ||
| /** KeyId for PoP and SSH tokens stored in the kid claim */ | ||
| keyId?: string; | ||
| /** Timestamp when the entry was last updated */ | ||
| lastUpdatedAt: string; | ||
| }; | ||
| //# sourceMappingURL=CredentialEntity.d.ts.map |
| {"version":3,"file":"CredentialEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/CredentialEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC3B,kDAAkD;IAClD,aAAa,EAAE,MAAM,CAAC;IACtB,+DAA+D;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB,yBAAyB;IACzB,cAAc,EAAE,cAAc,CAAC;IAC/B,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,oCAAoC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kGAAkG;IAClG,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,4FAA4F;IAC5F,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC"} |
| import { CredentialEntity } from "./CredentialEntity.js"; | ||
| /** | ||
| * Id Token Cache Type | ||
| */ | ||
| export type IdTokenEntity = CredentialEntity & { | ||
| /** Full tenant or organizational identifier that the account belongs to */ | ||
| realm: string; | ||
| }; | ||
| //# sourceMappingURL=IdTokenEntity.d.ts.map |
| {"version":3,"file":"IdTokenEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/IdTokenEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,gBAAgB,GAAG;IAC3C,4EAA4E;IAC5E,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC"} |
| import { CredentialEntity } from "./CredentialEntity.js"; | ||
| /** | ||
| * Refresh Token Cache Type | ||
| */ | ||
| export type RefreshTokenEntity = CredentialEntity & { | ||
| expiresOn?: string; | ||
| }; | ||
| //# sourceMappingURL=RefreshTokenEntity.d.ts.map |
| {"version":3,"file":"RefreshTokenEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/RefreshTokenEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"} |
| export type ServerTelemetryEntity = { | ||
| failedRequests: Array<string | number>; | ||
| errors: string[]; | ||
| cacheHits: number; | ||
| nativeBrokerErrorCode?: string; | ||
| }; | ||
| //# sourceMappingURL=ServerTelemetryEntity.d.ts.map |
| {"version":3,"file":"ServerTelemetryEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/ServerTelemetryEntity.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,qBAAqB,GAAG;IAChC,cAAc,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACvC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAClC,CAAC"} |
| export type ThrottlingEntity = { | ||
| throttleTime: number; | ||
| error?: string; | ||
| errorCodes?: Array<string>; | ||
| errorMessage?: string; | ||
| subError?: string; | ||
| }; | ||
| //# sourceMappingURL=ThrottlingEntity.d.ts.map |
| {"version":3,"file":"ThrottlingEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/ThrottlingEntity.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,gBAAgB,GAAG;IAE3B,YAAY,EAAE,MAAM,CAAC;IAErB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"} |
| import { AccountFilter } from "../utils/CacheTypes.js"; | ||
| import { CacheRecord } from "../entities/CacheRecord.js"; | ||
| import { AccountEntity } from "../entities/AccountEntity.js"; | ||
| import { AccountInfo } from "../../account/AccountInfo.js"; | ||
| import { AppMetadataEntity } from "../entities/AppMetadataEntity.js"; | ||
| import { ServerTelemetryEntity } from "../entities/ServerTelemetryEntity.js"; | ||
| import { ThrottlingEntity } from "../entities/ThrottlingEntity.js"; | ||
| import { IdTokenEntity } from "../entities/IdTokenEntity.js"; | ||
| import { AccessTokenEntity } from "../entities/AccessTokenEntity.js"; | ||
| import { RefreshTokenEntity } from "../entities/RefreshTokenEntity.js"; | ||
| import { AuthorityMetadataEntity } from "../entities/AuthorityMetadataEntity.js"; | ||
| import { StoreInCache } from "../../request/StoreInCache.js"; | ||
| export interface ICacheManager { | ||
| /** | ||
| * fetch the account entity from the platform cache | ||
| * @param accountKey | ||
| * @param correlationId | ||
| */ | ||
| getAccount(accountKey: string, correlationId: string): AccountEntity | null; | ||
| /** | ||
| * set account entity in the platform cache | ||
| * @param account | ||
| * @param correlationId | ||
| */ | ||
| setAccount(account: AccountEntity, correlationId: string, kmsi: boolean, apiId: number): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param idTokenKey | ||
| * @param correlationId | ||
| */ | ||
| getIdTokenCredential(idTokenKey: string, correlationId: string): IdTokenEntity | null; | ||
| /** | ||
| * set idToken entity to the platform cache | ||
| * @param idToken | ||
| * @param correlationId | ||
| */ | ||
| setIdTokenCredential(idToken: IdTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param accessTokenKey | ||
| * @param correlationId | ||
| */ | ||
| getAccessTokenCredential(accessTokenKey: string, correlationId: string): AccessTokenEntity | null; | ||
| /** | ||
| * set idToken entity to the platform cache | ||
| * @param accessToken | ||
| * @param correlationId | ||
| */ | ||
| setAccessTokenCredential(accessToken: AccessTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param refreshTokenKey | ||
| * @param correlationId | ||
| */ | ||
| getRefreshTokenCredential(refreshTokenKey: string, correlationId: string): RefreshTokenEntity | null; | ||
| /** | ||
| * set idToken entity to the platform cache | ||
| * @param refreshToken | ||
| * @param correlationId | ||
| */ | ||
| setRefreshTokenCredential(refreshToken: RefreshTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch appMetadata entity from the platform cache | ||
| * @param appMetadataKey | ||
| * @param correlationId | ||
| */ | ||
| getAppMetadata(appMetadataKey: string, correlationId: string): AppMetadataEntity | null; | ||
| /** | ||
| * set appMetadata entity to the platform cache | ||
| * @param appMetadata | ||
| * @param correlationId | ||
| */ | ||
| setAppMetadata(appMetadata: AppMetadataEntity, correlationId: string): void; | ||
| /** | ||
| * fetch server telemetry entity from the platform cache | ||
| * @param serverTelemetryKey | ||
| * @param correlationId | ||
| */ | ||
| getServerTelemetry(serverTelemetryKey: string, correlationId: string): ServerTelemetryEntity | null; | ||
| /** | ||
| * set server telemetry entity to the platform cache | ||
| * @param serverTelemetryKey | ||
| * @param serverTelemetry | ||
| * @param correlationId | ||
| */ | ||
| setServerTelemetry(serverTelemetryKey: string, serverTelemetry: ServerTelemetryEntity, correlationId: string): void; | ||
| /** | ||
| * fetch cloud discovery metadata entity from the platform cache | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| getAuthorityMetadata(key: string, correlationId: string): AuthorityMetadataEntity | null; | ||
| /** | ||
| * Get cache keys for authority metadata | ||
| * @param correlationId | ||
| */ | ||
| getAuthorityMetadataKeys(correlationId: string): Array<string>; | ||
| /** | ||
| * set cloud discovery metadata entity to the platform cache | ||
| * @param key | ||
| * @param value | ||
| * @param correlationId | ||
| */ | ||
| setAuthorityMetadata(key: string, value: AuthorityMetadataEntity, correlationId: string): void; | ||
| /** | ||
| * Provide an alias to find a matching AuthorityMetadataEntity in cache | ||
| * @param host | ||
| * @param correlationId | ||
| */ | ||
| getAuthorityMetadataByAlias(host: string, correlationId: string): AuthorityMetadataEntity | null; | ||
| /** | ||
| * given an authority generates the cache key for authorityMetadata | ||
| * @param authority | ||
| * @param correlationId | ||
| */ | ||
| generateAuthorityMetadataCacheKey(authority: string, correlationId: string): string; | ||
| /** | ||
| * fetch throttling entity from the platform cache | ||
| * @param throttlingCacheKey | ||
| * @param correlationId | ||
| */ | ||
| getThrottlingCache(throttlingCacheKey: string, correlationId: string): ThrottlingEntity | null; | ||
| /** | ||
| * set throttling entity to the platform cache | ||
| * @param throttlingCacheKey | ||
| * @param throttlingCache | ||
| * @param correlationId | ||
| */ | ||
| setThrottlingCache(throttlingCacheKey: string, throttlingCache: ThrottlingEntity, correlationId: string): void; | ||
| /** | ||
| * Returns all accounts in cache | ||
| * @param filter | ||
| * @param correlationId | ||
| */ | ||
| getAllAccounts(filter: AccountFilter, correlationId: string): AccountInfo[]; | ||
| /** | ||
| * saves a cache record | ||
| * @param cacheRecord | ||
| * @param correlationId | ||
| * @param storeInCache | ||
| */ | ||
| saveCacheRecord(cacheRecord: CacheRecord, correlationId: string, kmsi: boolean, apiId: number, storeInCache?: StoreInCache): Promise<void>; | ||
| /** | ||
| * retrieve accounts matching all provided filters; if no filter is set, get all accounts | ||
| * @param filter | ||
| * @param correlationId | ||
| */ | ||
| getAccountsFilteredBy(filter: AccountFilter, correlationId: string): AccountEntity[]; | ||
| /** | ||
| * Get AccountInfo object based on provided filters | ||
| * @param filter | ||
| * @param correlationId | ||
| */ | ||
| getAccountInfoFilteredBy(filter: AccountFilter, correlationId: string): AccountInfo | null; | ||
| /** | ||
| * Removes all accounts and related tokens from cache. | ||
| * @param correlationId | ||
| */ | ||
| removeAllAccounts(correlationId: string): void; | ||
| /** | ||
| * returns a boolean if the given account is removed | ||
| * @param account | ||
| * @param correlationId | ||
| */ | ||
| removeAccount(account: AccountInfo, correlationId: string): void; | ||
| /** | ||
| * returns a boolean if the given account is removed | ||
| * @param account | ||
| * @param correlationId | ||
| */ | ||
| removeAccountContext(account: AccountInfo, correlationId: string): void; | ||
| /** | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| removeIdToken(key: string, correlationId: string): void; | ||
| /** | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| removeAccessToken(key: string, correlationId: string): void; | ||
| /** | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| removeRefreshToken(key: string, correlationId: string): void; | ||
| } | ||
| //# sourceMappingURL=ICacheManager.d.ts.map |
| {"version":3,"file":"ICacheManager.d.ts","sourceRoot":"","sources":["../../../src/cache/interface/ICacheManager.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAA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H,kBAAkB,CACd,kBAAkB,EAAE,MAAM,EAC1B,eAAe,EAAE,gBAAgB,EACjC,aAAa,EAAE,MAAM,GACtB,IAAI,CAAC;IAER;;;;OAIG;IACH,cAAc,CAAC,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,GAAG,WAAW,EAAE,CAAC;IAE5E;;;;;OAKG;IACH,eAAe,CACX,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,MAAM,EACb,YAAY,CAAC,EAAE,YAAY,GAC5B,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;OAIG;IACH,qBAAqB,CACjB,MAAM,EAAE,aAAa,EACrB,aAAa,EAAE,MAAM,GACtB,aAAa,EAAE,CAAC;IAEnB;;;;OAIG;IACH,wBAAwB,CACpB,MAAM,EAAE,aAAa,EACrB,aAAa,EAAE,MAAM,GACtB,WAAW,GAAG,IAAI,CAAC;IAEtB;;;OAGG;IACH,iBAAiB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/C;;;;OAIG;IACH,aAAa,CAAC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjE;;;;OAIG;IACH,oBAAoB,CAAC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAExE;;;OAGG;IACH,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAExD;;;OAGG;IACH,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5D;;;OAGG;IACH,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAChE"} |
| import { TokenCacheContext } from "../persistence/TokenCacheContext.js"; | ||
| export interface ICachePlugin { | ||
| beforeCacheAccess: (tokenCacheContext: TokenCacheContext) => Promise<void>; | ||
| afterCacheAccess: (tokenCacheContext: TokenCacheContext) => Promise<void>; | ||
| } | ||
| //# sourceMappingURL=ICachePlugin.d.ts.map |
| {"version":3,"file":"ICachePlugin.d.ts","sourceRoot":"","sources":["../../../src/cache/interface/ICachePlugin.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,MAAM,WAAW,YAAY;IACzB,iBAAiB,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3E,gBAAgB,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7E"} |
| export interface ISerializableTokenCache { | ||
| deserialize: (cache: string) => void; | ||
| serialize: () => string; | ||
| } | ||
| //# sourceMappingURL=ISerializableTokenCache.d.ts.map |
| {"version":3,"file":"ISerializableTokenCache.d.ts","sourceRoot":"","sources":["../../../src/cache/interface/ISerializableTokenCache.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,uBAAuB;IACpC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,SAAS,EAAE,MAAM,MAAM,CAAC;CAC3B"} |
| import { ISerializableTokenCache } from "../interface/ISerializableTokenCache.js"; | ||
| /** | ||
| * This class instance helps track the memory changes facilitating | ||
| * decisions to read from and write to the persistent cache | ||
| */ export declare class TokenCacheContext { | ||
| /** | ||
| * boolean indicating cache change | ||
| */ | ||
| hasChanged: boolean; | ||
| /** | ||
| * serializable token cache interface | ||
| */ | ||
| cache: ISerializableTokenCache; | ||
| constructor(tokenCache: ISerializableTokenCache, hasChanged: boolean); | ||
| /** | ||
| * boolean which indicates the changes in cache | ||
| */ | ||
| get cacheHasChanged(): boolean; | ||
| /** | ||
| * function to retrieve the token cache | ||
| */ | ||
| get tokenCache(): ISerializableTokenCache; | ||
| } | ||
| //# sourceMappingURL=TokenCacheContext.d.ts.map |
| {"version":3,"file":"TokenCacheContext.d.ts","sourceRoot":"","sources":["../../../src/cache/persistence/TokenCacheContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAElF;;;GAGG,CAAC,qBAAa,iBAAiB;IAC9B;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,uBAAuB,CAAC;gBAEnB,UAAU,EAAE,uBAAuB,EAAE,UAAU,EAAE,OAAO;IAKpE;;OAEG;IACH,IAAI,eAAe,IAAI,OAAO,CAE7B;IAED;;OAEG;IACH,IAAI,UAAU,IAAI,uBAAuB,CAExC;CACJ"} |
| import { Authority } from "../../authority/Authority.js"; | ||
| import { ICrypto } from "../../crypto/ICrypto.js"; | ||
| import { AccountInfo, TenantProfile } from "../../account/AccountInfo.js"; | ||
| import { AuthorityType } from "../../authority/AuthorityType.js"; | ||
| import { Logger } from "../../logger/Logger.js"; | ||
| import { TokenClaims } from "../../account/TokenClaims.js"; | ||
| import { AccountEntity } from "../entities/AccountEntity.js"; | ||
| /** | ||
| * Generate Account Id key component as per the schema: <home_account_id>-<environment> | ||
| */ | ||
| export declare function generateAccountId(accountEntity: AccountEntity): string; | ||
| /** | ||
| * Returns the AccountInfo interface for this account. | ||
| */ | ||
| export declare function getAccountInfo(accountEntity: AccountEntity): AccountInfo; | ||
| /** | ||
| * Returns true if the account entity is in single tenant format (outdated), false otherwise | ||
| */ | ||
| export declare function isSingleTenant(accountEntity: AccountEntity): boolean; | ||
| /** | ||
| * Build Account cache from IdToken, clientInfo and authority/policy. Associated with AAD. | ||
| * @param accountDetails | ||
| */ | ||
| export declare function createAccountEntity(accountDetails: { | ||
| homeAccountId: string; | ||
| idTokenClaims?: TokenClaims; | ||
| clientInfo?: string; | ||
| cloudGraphHostName?: string; | ||
| msGraphHost?: string; | ||
| environment?: string; | ||
| nativeAccountId?: string; | ||
| tenantProfiles?: Array<TenantProfile>; | ||
| }, authority: Authority, base64Decode?: (input: string) => string): AccountEntity; | ||
| /** | ||
| * Creates an AccountEntity object from AccountInfo | ||
| * @param accountInfo | ||
| * @param cloudGraphHostName | ||
| * @param msGraphHost | ||
| * @returns | ||
| */ | ||
| export declare function createAccountEntityFromAccountInfo(accountInfo: AccountInfo, cloudGraphHostName?: string, msGraphHost?: string): AccountEntity; | ||
| /** | ||
| * Generate HomeAccountId from server response | ||
| * @param serverClientInfo | ||
| * @param authType | ||
| */ | ||
| export declare function generateHomeAccountId(serverClientInfo: string, authType: AuthorityType, logger: Logger, cryptoObj: ICrypto, correlationId: string, idTokenClaims?: TokenClaims): string; | ||
| /** | ||
| * Validates an entity: checks for all expected params | ||
| * @param entity | ||
| */ | ||
| export declare function isAccountEntity(entity: object): entity is AccountEntity; | ||
| //# sourceMappingURL=AccountEntityUtils.d.ts.map |
| {"version":3,"file":"AccountEntityUtils.d.ts","sourceRoot":"","sources":["../../../src/cache/utils/AccountEntityUtils.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,OAAO,EACH,WAAW,EACX,aAAa,EAGhB,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EACH,WAAW,EAEd,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAMtE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,aAAa,EAAE,aAAa,GAAG,WAAW,CAkCxE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,aAAa,EAAE,aAAa,GAAG,OAAO,CAEpE;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAC/B,cAAc,EAAE;IACZ,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,WAAW,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CACzC,EACD,SAAS,EAAE,SAAS,EACpB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GACzC,aAAa,CAuFf;AAED;;;;;;GAMG;AACH,wBAAgB,kCAAkC,CAC9C,WAAW,EAAE,WAAW,EACxB,kBAAkB,CAAC,EAAE,MAAM,EAC3B,WAAW,CAAC,EAAE,MAAM,GACrB,aAAa,CAoCf;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACjC,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,aAAa,EACvB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,OAAO,EAClB,aAAa,EAAE,MAAM,EACrB,aAAa,CAAC,EAAE,WAAW,GAC5B,MAAM,CAoBR;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,aAAa,CAavE"} |
| import { CloudDiscoveryMetadata } from "../../authority/CloudDiscoveryMetadata.js"; | ||
| import { OpenIdConfigResponse } from "../../authority/OpenIdConfigResponse.js"; | ||
| import * as Constants from "../../utils/Constants.js"; | ||
| import { AccessTokenEntity } from "../entities/AccessTokenEntity.js"; | ||
| import { AppMetadataEntity } from "../entities/AppMetadataEntity.js"; | ||
| import { AuthorityMetadataEntity } from "../entities/AuthorityMetadataEntity.js"; | ||
| import { CredentialEntity } from "../entities/CredentialEntity.js"; | ||
| import { IdTokenEntity } from "../entities/IdTokenEntity.js"; | ||
| import { RefreshTokenEntity } from "../entities/RefreshTokenEntity.js"; | ||
| /** | ||
| * Create IdTokenEntity | ||
| * @param homeAccountId | ||
| * @param authenticationResult | ||
| * @param clientId | ||
| * @param authority | ||
| */ | ||
| export declare function createIdTokenEntity(homeAccountId: string, environment: string, idToken: string, clientId: string, tenantId: string): IdTokenEntity; | ||
| /** | ||
| * Create AccessTokenEntity | ||
| * @param homeAccountId | ||
| * @param environment | ||
| * @param accessToken | ||
| * @param clientId | ||
| * @param tenantId | ||
| * @param scopes | ||
| * @param expiresOn | ||
| * @param extExpiresOn | ||
| */ | ||
| export declare function createAccessTokenEntity(homeAccountId: string, environment: string, accessToken: string, clientId: string, tenantId: string, scopes: string, expiresOn: number, extExpiresOn: number, base64Decode: (input: string) => string, refreshOn?: number, tokenType?: Constants.AuthenticationScheme, userAssertionHash?: string, keyId?: string): AccessTokenEntity; | ||
| /** | ||
| * Create RefreshTokenEntity | ||
| * @param homeAccountId | ||
| * @param authenticationResult | ||
| * @param clientId | ||
| * @param authority | ||
| */ | ||
| export declare function createRefreshTokenEntity(homeAccountId: string, environment: string, refreshToken: string, clientId: string, familyId?: string, userAssertionHash?: string, expiresOn?: number): RefreshTokenEntity; | ||
| export declare function isCredentialEntity(entity: object): entity is CredentialEntity; | ||
| /** | ||
| * Validates an entity: checks for all expected params | ||
| * @param entity | ||
| */ | ||
| export declare function isAccessTokenEntity(entity: object): entity is AccessTokenEntity; | ||
| /** | ||
| * Validates an entity: checks for all expected params | ||
| * @param entity | ||
| */ | ||
| export declare function isIdTokenEntity(entity: object): entity is IdTokenEntity; | ||
| /** | ||
| * Validates an entity: checks for all expected params | ||
| * @param entity | ||
| */ | ||
| export declare function isRefreshTokenEntity(entity: object): entity is RefreshTokenEntity; | ||
| /** | ||
| * validates if a given cache entry is "Telemetry", parses <key,value> | ||
| * @param key | ||
| * @param entity | ||
| */ | ||
| export declare function isServerTelemetryEntity(key: string, entity?: object): boolean; | ||
| /** | ||
| * validates if a given cache entry is "Throttling", parses <key,value> | ||
| * @param key | ||
| * @param entity | ||
| */ | ||
| export declare function isThrottlingEntity(key: string, entity?: object): boolean; | ||
| /** | ||
| * Generate AppMetadata Cache Key as per the schema: appmetadata-<environment>-<client_id> | ||
| */ | ||
| export declare function generateAppMetadataKey({ environment, clientId, }: AppMetadataEntity): string; | ||
| export declare function isAppMetadataEntity(key: string, entity: object): boolean; | ||
| /** | ||
| * Validates an entity: checks for all expected params | ||
| * @param entity | ||
| */ | ||
| export declare function isAuthorityMetadataEntity(key: string, entity: object): boolean; | ||
| /** | ||
| * Reset the exiresAt value | ||
| */ | ||
| export declare function generateAuthorityMetadataExpiresAt(): number; | ||
| export declare function updateAuthorityEndpointMetadata(authorityMetadata: AuthorityMetadataEntity, updatedValues: OpenIdConfigResponse, fromNetwork: boolean): void; | ||
| export declare function updateCloudDiscoveryMetadata(authorityMetadata: AuthorityMetadataEntity, updatedValues: CloudDiscoveryMetadata, fromNetwork: boolean): void; | ||
| /** | ||
| * Returns whether or not the data needs to be refreshed | ||
| */ | ||
| export declare function isAuthorityMetadataExpired(metadata: AuthorityMetadataEntity): boolean; | ||
| //# sourceMappingURL=CacheHelpers.d.ts.map |
| {"version":3,"file":"CacheHelpers.d.ts","sourceRoot":"","sources":["../../../src/cache/utils/CacheHelpers.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAK/E,OAAO,KAAK,SAAS,MAAM,0BAA0B,CAAC;AAEtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EA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CAUvE;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAChC,MAAM,EAAE,MAAM,GACf,MAAM,IAAI,kBAAkB,CAS9B;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAa7E;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAYxE;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,EACnC,WAAW,EACX,QAAQ,GACX,EAAE,iBAAiB,GAAG,MAAM,CAS5B;AAMD,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAUxE;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACrC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,GACf,OAAO,CAmBT;AAED;;GAEG;AACH,wBAAgB,kCAAkC,IAAI,MAAM,CAK3D;AAED,wBAAgB,+BAA+B,CAC3C,iBAAiB,EAAE,uBAAuB,EAC1C,aAAa,EAAE,oBAAoB,EACnC,WAAW,EAAE,OAAO,GACrB,IAAI,CAQN;AAED,wBAAgB,4BAA4B,CACxC,iBAAiB,EAAE,uBAAuB,EAC1C,aAAa,EAAE,sBAAsB,EACrC,WAAW,EAAE,OAAO,GACrB,IAAI,CAKN;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CACtC,QAAQ,EAAE,uBAAuB,GAClC,OAAO,CAET"} |
| import { AccountEntity } from "../entities/AccountEntity.js"; | ||
| import { IdTokenEntity } from "../entities/IdTokenEntity.js"; | ||
| import { AccessTokenEntity } from "../entities/AccessTokenEntity.js"; | ||
| import { RefreshTokenEntity } from "../entities/RefreshTokenEntity.js"; | ||
| import { AppMetadataEntity } from "../entities/AppMetadataEntity.js"; | ||
| import { ServerTelemetryEntity } from "../entities/ServerTelemetryEntity.js"; | ||
| import { ThrottlingEntity } from "../entities/ThrottlingEntity.js"; | ||
| import { AuthorityMetadataEntity } from "../entities/AuthorityMetadataEntity.js"; | ||
| import { AuthenticationScheme } from "../../utils/Constants.js"; | ||
| import { ScopeSet } from "../../request/ScopeSet.js"; | ||
| import { AccountInfo } from "../../account/AccountInfo.js"; | ||
| /** @internal */ | ||
| export type AccountCache = Record<string, AccountEntity>; | ||
| /** @internal */ | ||
| export type IdTokenCache = Record<string, IdTokenEntity>; | ||
| /** @internal */ | ||
| export type AccessTokenCache = Record<string, AccessTokenEntity>; | ||
| /** @internal */ | ||
| export type RefreshTokenCache = Record<string, RefreshTokenEntity>; | ||
| /** @internal */ | ||
| export type AppMetadataCache = Record<string, AppMetadataEntity>; | ||
| /** | ||
| * Object type of all accepted cache types | ||
| * @internal | ||
| */ | ||
| export type ValidCacheType = AccountEntity | IdTokenEntity | AccessTokenEntity | RefreshTokenEntity | AppMetadataEntity | AuthorityMetadataEntity | ServerTelemetryEntity | ThrottlingEntity | string; | ||
| /** | ||
| * Object type of all credential types | ||
| * @internal | ||
| */ | ||
| export type ValidCredentialType = IdTokenEntity | AccessTokenEntity | RefreshTokenEntity; | ||
| /** | ||
| * Account: <home_account_id>-<environment>-<realm*> | ||
| */ | ||
| export type AccountFilter = Omit<Partial<AccountInfo>, "idToken" | "idTokenClaims"> & { | ||
| realm?: string; | ||
| loginHint?: string; | ||
| sid?: string; | ||
| isHomeTenant?: boolean; | ||
| }; | ||
| export type TenantProfileFilter = Pick<AccountFilter, "localAccountId" | "loginHint" | "name" | "sid" | "isHomeTenant" | "username" | "upn">; | ||
| /** | ||
| * Credential: <home_account_id*>-<environment>-<credential_type>-<client_id>-<realm*>-<target*>-<scheme*> | ||
| */ | ||
| export type CredentialFilter = { | ||
| homeAccountId?: string; | ||
| environment?: string; | ||
| credentialType?: string; | ||
| clientId?: string; | ||
| familyId?: string; | ||
| realm?: string; | ||
| target?: ScopeSet; | ||
| userAssertionHash?: string; | ||
| tokenType?: AuthenticationScheme; | ||
| keyId?: string; | ||
| }; | ||
| /** | ||
| * AppMetadata: appmetadata-<environment>-<client_id> | ||
| */ | ||
| export type AppMetadataFilter = { | ||
| environment?: string; | ||
| clientId?: string; | ||
| }; | ||
| export type TokenKeys = { | ||
| idToken: string[]; | ||
| accessToken: string[]; | ||
| refreshToken: string[]; | ||
| }; | ||
| //# sourceMappingURL=CacheTypes.d.ts.map |
| {"version":3,"file":"CacheTypes.d.ts","sourceRoot":"","sources":["../../../src/cache/utils/CacheTypes.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,gBAAgB;AAChB,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AACzD,gBAAgB;AAChB,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AACzD,gBAAgB;AAChB,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;AACjE,gBAAgB;AAChB,MAAM,MAAM,iBAAi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C;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,EAAE,MAAM,EAAE,CAAC;CAC1B,CAAC"} |
| import { CommonAuthorizationCodeRequest } from "../request/CommonAuthorizationCodeRequest.js"; | ||
| import { Authority } from "../authority/Authority.js"; | ||
| import { ClientConfiguration, CommonClientConfiguration } from "../config/ClientConfiguration.js"; | ||
| import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
| import { CommonEndSessionRequest } from "../request/CommonEndSessionRequest.js"; | ||
| import { AuthorizationCodePayload } from "../response/AuthorizationCodePayload.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| /** | ||
| * Oauth2.0 Authorization Code client | ||
| * @internal | ||
| */ | ||
| export declare class AuthorizationCodeClient { | ||
| protected includeRedirectUri: boolean; | ||
| private oidcDefaultScopes; | ||
| logger: Logger; | ||
| protected config: CommonClientConfiguration; | ||
| protected cryptoUtils: ICrypto; | ||
| protected cacheManager: CacheManager; | ||
| protected networkClient: INetworkModule; | ||
| protected serverTelemetryManager: ServerTelemetryManager | null; | ||
| authority: Authority; | ||
| protected performanceClient: IPerformanceClient; | ||
| constructor(configuration: ClientConfiguration, performanceClient: IPerformanceClient); | ||
| /** | ||
| * API to acquire a token in exchange of 'authorization_code` acquired by the user in the first leg of the | ||
| * authorization_code_grant | ||
| * @param request | ||
| */ | ||
| acquireToken(request: CommonAuthorizationCodeRequest, apiId: number, authCodePayload?: AuthorizationCodePayload): Promise<AuthenticationResult>; | ||
| /** | ||
| * Used to log out the current user, and redirect the user to the postLogoutRedirectUri. | ||
| * Default behaviour is to redirect the user to `window.location.href`. | ||
| * @param authorityUri | ||
| */ | ||
| getLogoutUri(logoutRequest: CommonEndSessionRequest): string; | ||
| /** | ||
| * Executes POST request to token endpoint | ||
| * @param authority | ||
| * @param request | ||
| */ | ||
| private executeTokenRequest; | ||
| /** | ||
| * Generates a map for all the params to be sent to the service | ||
| * @param request | ||
| */ | ||
| private createTokenRequestBody; | ||
| /** | ||
| * This API validates the `EndSessionRequest` and creates a URL | ||
| * @param request | ||
| */ | ||
| private createLogoutUrlQueryString; | ||
| /** | ||
| * Updates the authority to the cloud instance provided in the authorization response | ||
| * @param cloudInstanceHostName - cloud instance host name from authorization code payload | ||
| * @param correlationId - request correlation id | ||
| */ | ||
| private updateTokenEndpointAuthority; | ||
| } | ||
| //# sourceMappingURL=AuthorizationCodeClient.d.ts.map |
| {"version":3,"file":"AuthorizationCodeClient.d.ts","sourceRoot":"","sources":["../../src/client/AuthorizationCodeClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,8BAA8B,EAAE,MAAM,8CAA8C,CAAC;AAC9F,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAKtD,OAAO,EAEH,mBAAmB,EACnB,yBAAyB,EAE5B,MAAM,kCAAkC,CAAC;AAI1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAM3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAEhF,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AAWnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAYpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG9D;;;GAGG;AACH,qBAAa,uBAAuB;IAEhC,SAAS,CAAC,kBAAkB,EAAE,OAAO,CAAQ;IAC7C,OAAO,CAAC,iBAAiB,CAAC;IAGnB,MAAM,EAAE,MAAM,CAAC;IAGtB,SAAS,CAAC,MAAM,EAAE,yBAAyB,CAAC;IAG5C,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC;IAG/B,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAGrC,SAAS,CAAC,aAAa,EAAE,cAAc,CAAC;IAGxC,SAAS,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAGzD,SAAS,EAAE,SAAS,CAAC;IAG5B,SAAS,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;gBAG5C,aAAa,EAAE,mBAAmB,EAClC,iBAAiB,EAAE,kBAAkB;IA6BzC;;;;OAIG;IACG,YAAY,CACd,OAAO,EAAE,8BAA8B,EACvC,KAAK,EAAE,MAAM,EACb,eAAe,CAAC,EAAE,wBAAwB,GAC3C,OAAO,CAAC,oBAAoB,CAAC;IAmEhC;;;;OAIG;IACH,YAAY,CAAC,aAAa,EAAE,uBAAuB,GAAG,MAAM;IAgB5D;;;;OAIG;YACW,mBAAmB;IAyEjC;;;OAGG;YACW,sBAAsB;IAoOpC;;;OAGG;IACH,OAAO,CAAC,0BAA0B;IAmDlC;;;;OAIG;YACW,4BAA4B;CAgB7C"} |
| import { ClientConfiguration, CommonClientConfiguration } from "../config/ClientConfiguration.js"; | ||
| import { CommonRefreshTokenRequest } from "../request/CommonRefreshTokenRequest.js"; | ||
| import { Authority } from "../authority/Authority.js"; | ||
| import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
| import { CommonSilentFlowRequest } from "../request/CommonSilentFlowRequest.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| /** | ||
| * OAuth2.0 refresh token client | ||
| * @internal | ||
| */ | ||
| export declare class RefreshTokenClient { | ||
| logger: Logger; | ||
| protected config: CommonClientConfiguration; | ||
| protected cryptoUtils: ICrypto; | ||
| protected cacheManager: CacheManager; | ||
| protected networkClient: INetworkModule; | ||
| protected serverTelemetryManager: ServerTelemetryManager | null; | ||
| authority: Authority; | ||
| protected performanceClient: IPerformanceClient; | ||
| constructor(configuration: ClientConfiguration, performanceClient: IPerformanceClient); | ||
| acquireToken(request: CommonRefreshTokenRequest, apiId: number): Promise<AuthenticationResult>; | ||
| /** | ||
| * Gets cached refresh token and attaches to request, then calls acquireToken API | ||
| * @param request | ||
| */ | ||
| acquireTokenByRefreshToken(request: CommonSilentFlowRequest, apiId: number): Promise<AuthenticationResult>; | ||
| /** | ||
| * makes a network call to acquire tokens by exchanging RefreshToken available in userCache; throws if refresh token is not cached | ||
| * @param request | ||
| */ | ||
| private acquireTokenWithCachedRefreshToken; | ||
| /** | ||
| * Constructs the network message and makes a NW call to the underlying secure token service | ||
| * @param request | ||
| * @param authority | ||
| */ | ||
| private executeTokenRequest; | ||
| /** | ||
| * Helper function to create the token request body | ||
| * @param request | ||
| */ | ||
| private createTokenRequestBody; | ||
| } | ||
| //# sourceMappingURL=RefreshTokenClient.d.ts.map |
| {"version":3,"file":"RefreshTokenClient.d.ts","sourceRoot":"","sources":["../../src/client/RefreshTokenClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,mBAAmB,EACnB,yBAAyB,EAE5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAA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AGG;YACW,sBAAsB;CAgLvC"} |
| import { ClientConfiguration, CommonClientConfiguration } from "../config/ClientConfiguration.js"; | ||
| import { CommonSilentFlowRequest } from "../request/CommonSilentFlowRequest.js"; | ||
| import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
| import { CacheOutcome } from "../utils/Constants.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { Authority } from "../authority/Authority.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| /** @internal */ | ||
| export declare class SilentFlowClient { | ||
| logger: Logger; | ||
| protected config: CommonClientConfiguration; | ||
| protected cryptoUtils: ICrypto; | ||
| protected cacheManager: CacheManager; | ||
| protected networkClient: INetworkModule; | ||
| protected serverTelemetryManager: ServerTelemetryManager | null; | ||
| authority: Authority; | ||
| protected performanceClient: IPerformanceClient; | ||
| constructor(configuration: ClientConfiguration, performanceClient: IPerformanceClient); | ||
| /** | ||
| * Retrieves token from cache or throws an error if it must be refreshed. | ||
| * @param request | ||
| */ | ||
| acquireCachedToken(request: CommonSilentFlowRequest): Promise<[AuthenticationResult, CacheOutcome]>; | ||
| private setCacheOutcome; | ||
| /** | ||
| * Helper function to build response object from the CacheRecord | ||
| * @param cacheRecord | ||
| */ | ||
| private generateResultFromCacheRecord; | ||
| } | ||
| //# sourceMappingURL=SilentFlowClient.d.ts.map |
| {"version":3,"file":"SilentFlowClient.d.ts","sourceRoot":"","sources":["../../src/client/SilentFlowClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,mBAAmB,EACnB,yBAAyB,EAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAQ3E,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAMpF,OAAO,EACH,SAAS,EAEZ,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AAGvF,gBAAgB;AAChB,qBAAa,gBAAgB;IAElB,MAAM,EAAE,MAAM,CAAC;IAGtB,SAAS,CAAC,MAAM,EAAE,yBAAyB,CAAC;IAG5C,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC;IAG/B,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAGrC,SAAS,CAAC,aAAa,EAAE,cAAc,CAAC;IAGxC,SAAS,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAGzD,SAAS,EAAE,SAAS,CAAC;IAG5B,SAAS,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;gBAG5C,aAAa,EAAE,mBAAmB,EAClC,iBAAiB,EAAE,kBAAkB;IA2BzC;;;OAGG;IACG,kBAAkB,CACpB,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,CAAC,oBAAoB,EAAE,YAAY,CAAC,CAAC;IAoHhD,OAAO,CAAC,eAAe;IAmBvB;;;OAGG;YACW,6BAA6B;CAkC9C"} |
| /** | ||
| * Extensibility interface, which allows the app developer to return a token, based on the passed-in parameters, instead of fetching tokens from | ||
| * the Identity Provider (AAD). | ||
| * Developers need to construct and return an AppTokenProviderResult object back to MSAL. MSAL will cache the token response | ||
| * in the same way it would do if the result were comming from AAD. | ||
| * This extensibility point is only defined for the client_credential flow, i.e. acquireTokenByClientCredential and | ||
| * meant for Azure SDK to enhance Managed Identity support. | ||
| */ | ||
| export interface IAppTokenProvider { | ||
| (appTokenProviderParameters: AppTokenProviderParameters): Promise<AppTokenProviderResult>; | ||
| } | ||
| /** | ||
| * Input object for the IAppTokenProvider extensiblity. MSAL will create this object, which can be used | ||
| * to help create an AppTokenProviderResult. | ||
| * | ||
| * - correlationId - the correlation Id associated with the request | ||
| * - tenantId - the tenant Id for which the token must be provided | ||
| * - scopes - the scopes for which the token must be provided | ||
| * - claims - any extra claims that the token must satisfy | ||
| */ | ||
| export type AppTokenProviderParameters = { | ||
| readonly correlationId?: string; | ||
| readonly tenantId: string; | ||
| readonly scopes: Array<string>; | ||
| readonly claims?: string; | ||
| }; | ||
| /** | ||
| * Output object for IAppTokenProvider extensiblity. | ||
| * | ||
| * - accessToken - the actual access token, typically in JWT format, that satisfies the request data AppTokenProviderParameters | ||
| * - expiresInSeconds - how long the tokens has before expiry, in seconds. Similar to the "expires_in" field in an AAD token response. | ||
| * - refreshInSeconds - how long the token has before it should be proactively refreshed. Similar to the "refresh_in" field in an AAD token response. | ||
| */ | ||
| export type AppTokenProviderResult = { | ||
| accessToken: string; | ||
| expiresInSeconds: number; | ||
| refreshInSeconds?: number; | ||
| }; | ||
| //# sourceMappingURL=AppTokenProvider.d.ts.map |
| {"version":3,"file":"AppTokenProvider.d.ts","sourceRoot":"","sources":["../../src/config/AppTokenProvider.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAC9B,CACI,0BAA0B,EAAE,0BAA0B,GACvD,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACtC;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACrC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC"} |
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { ILoggerCallback, LogLevel } from "../logger/Logger.js"; | ||
| import type { Authority } from "../authority/Authority.js"; | ||
| import { AzureCloudInstance } from "../authority/AuthorityOptions.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| import { ICachePlugin } from "../cache/interface/ICachePlugin.js"; | ||
| import { ISerializableTokenCache } from "../cache/interface/ISerializableTokenCache.js"; | ||
| import { ClientCredentials } from "../account/ClientCredentials.js"; | ||
| /** | ||
| * Use the configuration object to configure MSAL Modules and initialize the base interfaces for MSAL. | ||
| * | ||
| * This object allows you to configure important elements of MSAL functionality: | ||
| * - authOptions - Authentication for application | ||
| * - cryptoInterface - Implementation of crypto functions | ||
| * - libraryInfo - Library metadata | ||
| * - telemetry - Telemetry options and data | ||
| * - loggerOptions - Logging for application | ||
| * - networkInterface - Network implementation | ||
| * - storageInterface - Storage implementation | ||
| * - systemOptions - Additional library options | ||
| * - clientCredentials - Credentials options for confidential clients | ||
| * @internal | ||
| */ | ||
| export type ClientConfiguration = { | ||
| authOptions: AuthOptions; | ||
| systemOptions?: SystemOptions; | ||
| loggerOptions?: LoggerOptions; | ||
| storageInterface?: CacheManager; | ||
| networkInterface?: INetworkModule; | ||
| cryptoInterface?: ICrypto; | ||
| clientCredentials?: ClientCredentials; | ||
| libraryInfo?: LibraryInfo; | ||
| telemetry?: TelemetryOptions; | ||
| serverTelemetryManager?: ServerTelemetryManager | null; | ||
| persistencePlugin?: ICachePlugin | null; | ||
| serializableCache?: ISerializableTokenCache | null; | ||
| }; | ||
| export type CommonClientConfiguration = { | ||
| authOptions: Required<AuthOptions>; | ||
| systemOptions: Required<SystemOptions>; | ||
| loggerOptions: Required<LoggerOptions>; | ||
| storageInterface: CacheManager; | ||
| networkInterface: INetworkModule; | ||
| cryptoInterface: Required<ICrypto>; | ||
| libraryInfo: LibraryInfo; | ||
| telemetry: Required<TelemetryOptions>; | ||
| serverTelemetryManager: ServerTelemetryManager | null; | ||
| clientCredentials: ClientCredentials; | ||
| persistencePlugin: ICachePlugin | null; | ||
| serializableCache: ISerializableTokenCache | null; | ||
| }; | ||
| /** | ||
| * Use this to configure the auth options in the ClientConfiguration object | ||
| * | ||
| * - clientId - Client ID of your app registered with our Application registration portal : https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredAppsPreview in Microsoft Identity Platform | ||
| * - authority - You can configure a specific authority, defaults to " " or "https://login.microsoftonline.com/common" | ||
| * - knownAuthorities - An array of URIs that are known to be valid. Used in B2C scenarios. | ||
| * - cloudDiscoveryMetadata - A string containing the cloud discovery response. Used in AAD scenarios. | ||
| * - clientCapabilities - Array of capabilities which will be added to the claims.access_token.xms_cc request property on every network request. | ||
| * - instanceAware - A flag of whether the STS will send back additional parameters to specify where the tokens should be retrieved from. | ||
| * - redirectUri - 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. | ||
| * - isMcp - A flag of whether the application is an MCP application, which requires a resource parameter to be sent in token requests. | ||
| * @internal | ||
| */ | ||
| export type AuthOptions = { | ||
| clientId: string; | ||
| authority: Authority; | ||
| redirectUri: string; | ||
| clientCapabilities?: Array<string>; | ||
| azureCloudOptions?: AzureCloudOptions; | ||
| instanceAware?: boolean; | ||
| isMcp?: boolean; | ||
| }; | ||
| /** | ||
| * Use this to configure token renewal info in the Configuration object | ||
| * | ||
| * - tokenRenewalOffsetSeconds - Sets the window of offset needed to renew the token before expiry | ||
| * - protocolMode - Enum that represents the protocol that msal follows. Used for configuring proper endpoints. | ||
| */ | ||
| export type SystemOptions = { | ||
| tokenRenewalOffsetSeconds?: number; | ||
| preventCorsPreflight?: boolean; | ||
| }; | ||
| /** | ||
| * Use this to configure the logging that MSAL does, by configuring logger options in the Configuration object | ||
| * | ||
| * - loggerCallback - Callback for logger | ||
| * - piiLoggingEnabled - Sets whether pii logging is enabled | ||
| * - logLevel - Sets the level at which logging happens | ||
| * - correlationId - Sets the correlationId printed by the logger | ||
| */ | ||
| export type LoggerOptions = { | ||
| loggerCallback?: ILoggerCallback; | ||
| piiLoggingEnabled?: boolean; | ||
| logLevel?: LogLevel; | ||
| correlationId?: string; | ||
| }; | ||
| /** | ||
| * Library-specific options | ||
| */ | ||
| export type LibraryInfo = { | ||
| sku: string; | ||
| version: string; | ||
| cpu: string; | ||
| os: string; | ||
| }; | ||
| /** | ||
| * AzureCloudInstance specific options | ||
| * | ||
| * - azureCloudInstance - string enum providing short notation for soverign and public cloud authorities | ||
| * - tenant - provision to provide the tenant info | ||
| */ | ||
| export type AzureCloudOptions = { | ||
| azureCloudInstance: AzureCloudInstance; | ||
| tenant?: string; | ||
| }; | ||
| export type TelemetryOptions = { | ||
| application: ApplicationTelemetry; | ||
| }; | ||
| /** | ||
| * Telemetry information sent on request | ||
| * - appName: Unique string name of an application | ||
| * - appVersion: Version of the application using MSAL | ||
| */ | ||
| export type ApplicationTelemetry = { | ||
| appName: string; | ||
| appVersion: string; | ||
| }; | ||
| export declare const DEFAULT_SYSTEM_OPTIONS: Required<SystemOptions>; | ||
| /** | ||
| * Function that sets the default options when not explicitly configured from app developer | ||
| * | ||
| * @param Configuration | ||
| * | ||
| * @returns Configuration | ||
| */ | ||
| export declare function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions: userSystemOptions, loggerOptions: userLoggerOption, storageInterface: storageImplementation, networkInterface: networkImplementation, cryptoInterface: cryptoImplementation, clientCredentials: clientCredentials, libraryInfo: libraryInfo, telemetry: telemetry, serverTelemetryManager: serverTelemetryManager, persistencePlugin: persistencePlugin, serializableCache: serializableCache, }: ClientConfiguration): CommonClientConfiguration; | ||
| /** | ||
| * Returns true if config has protocolMode set to ProtocolMode.OIDC, false otherwise | ||
| * @param ClientConfiguration | ||
| */ | ||
| export declare function isOidcProtocolMode(config: ClientConfiguration): boolean; | ||
| //# sourceMappingURL=ClientConfiguration.d.ts.map |
| {"version":3,"file":"ClientConfiguration.d.ts","sourceRoot":"","sources":["../../src/config/ClientConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAiC,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAU,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAOxE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAuB,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAQpE;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAC9B,WAAW,EAAE,WAAW,CAAC;IACzB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,gBAAgB,CAAC,EAAE,YAAY,CAAC;IAChC,gBAAgB,CAAC,EAAE,cAAc,CAAC;IAClC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,iBAAiB,CA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,CA4BjD;AAgBD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAIvE"} |
| export declare const CLIENT_ID = "client_id"; | ||
| export declare const REDIRECT_URI = "redirect_uri"; | ||
| export declare const RESPONSE_TYPE = "response_type"; | ||
| export declare const RESPONSE_MODE = "response_mode"; | ||
| export declare const GRANT_TYPE = "grant_type"; | ||
| export declare const CLAIMS = "claims"; | ||
| export declare const SCOPE = "scope"; | ||
| export declare const ERROR = "error"; | ||
| export declare const ERROR_DESCRIPTION = "error_description"; | ||
| export declare const ACCESS_TOKEN = "access_token"; | ||
| export declare const ID_TOKEN = "id_token"; | ||
| export declare const REFRESH_TOKEN = "refresh_token"; | ||
| export declare const EXPIRES_IN = "expires_in"; | ||
| export declare const REFRESH_TOKEN_EXPIRES_IN = "refresh_token_expires_in"; | ||
| export declare const STATE = "state"; | ||
| export declare const NONCE = "nonce"; | ||
| export declare const PROMPT = "prompt"; | ||
| export declare const SESSION_STATE = "session_state"; | ||
| export declare const CLIENT_INFO = "client_info"; | ||
| export declare const CODE = "code"; | ||
| export declare const CODE_CHALLENGE = "code_challenge"; | ||
| export declare const CODE_CHALLENGE_METHOD = "code_challenge_method"; | ||
| export declare const CODE_VERIFIER = "code_verifier"; | ||
| export declare const CLIENT_REQUEST_ID = "client-request-id"; | ||
| export declare const X_CLIENT_SKU = "x-client-SKU"; | ||
| export declare const X_CLIENT_VER = "x-client-VER"; | ||
| export declare const X_CLIENT_OS = "x-client-OS"; | ||
| export declare const X_CLIENT_CPU = "x-client-CPU"; | ||
| export declare const X_CLIENT_CURR_TELEM = "x-client-current-telemetry"; | ||
| export declare const X_CLIENT_LAST_TELEM = "x-client-last-telemetry"; | ||
| export declare const X_MS_LIB_CAPABILITY = "x-ms-lib-capability"; | ||
| export declare const X_APP_NAME = "x-app-name"; | ||
| export declare const X_APP_VER = "x-app-ver"; | ||
| export declare const POST_LOGOUT_URI = "post_logout_redirect_uri"; | ||
| export declare const ID_TOKEN_HINT = "id_token_hint"; | ||
| export declare const DEVICE_CODE = "device_code"; | ||
| export declare const CLIENT_SECRET = "client_secret"; | ||
| export declare const CLIENT_ASSERTION = "client_assertion"; | ||
| export declare const CLIENT_ASSERTION_TYPE = "client_assertion_type"; | ||
| export declare const TOKEN_TYPE = "token_type"; | ||
| export declare const REQ_CNF = "req_cnf"; | ||
| export declare const OBO_ASSERTION = "assertion"; | ||
| export declare const REQUESTED_TOKEN_USE = "requested_token_use"; | ||
| export declare const ON_BEHALF_OF = "on_behalf_of"; | ||
| export declare const FOCI = "foci"; | ||
| export declare const CCS_HEADER = "X-AnchorMailbox"; | ||
| export declare const RETURN_SPA_CODE = "return_spa_code"; | ||
| export declare const NATIVE_BROKER = "nativebroker"; | ||
| export declare const LOGOUT_HINT = "logout_hint"; | ||
| export declare const SID = "sid"; | ||
| export declare const LOGIN_HINT = "login_hint"; | ||
| export declare const DOMAIN_HINT = "domain_hint"; | ||
| export declare const X_CLIENT_EXTRA_SKU = "x-client-xtra-sku"; | ||
| export declare const BROKER_CLIENT_ID = "brk_client_id"; | ||
| export declare const BROKER_REDIRECT_URI = "brk_redirect_uri"; | ||
| export declare const INSTANCE_AWARE = "instance_aware"; | ||
| export declare const EAR_JWK = "ear_jwk"; | ||
| export declare const EAR_JWE_CRYPTO = "ear_jwe_crypto"; | ||
| export declare const RESOURCE = "resource"; | ||
| export declare const CLI_DATA = "clidata"; | ||
| //# sourceMappingURL=AADServerParamKeys.d.ts.map |
| {"version":3,"file":"AADServerParamKeys.d.ts","sourceRoot":"","sources":["../../src/constants/AADServerParamKeys.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS,cAAc,CAAC;AACrC,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,MAAM,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AO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAC7D,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,aAAa,cAAc,CAAC;AACzC,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,IAAI,SAAS,CAAC;AAC3B,eAAO,MAAM,UAAU,oBAAoB,CAAC;AAC5C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,aAAa,iBAAiB,CAAC;AAC5C,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,GAAG,QAAQ,CAAC;AACzB,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AACtD,eAAO,MAAM,gBAAgB,kBAAkB,CAAC;AAChD,eAAO,MAAM,mBAAmB,qBAAqB,CAAC;AACtD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,QAAQ,aAAa,CAAC;AACnC,eAAO,MAAM,QAAQ,YAAY,CAAC"} |
| import type { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| import type { ShrOptions, SignedHttpRequest } from "./SignedHttpRequest.js"; | ||
| /** | ||
| * The PkceCodes type describes the structure | ||
| * of objects that contain PKCE code | ||
| * challenge and verifier pairs | ||
| */ | ||
| export type PkceCodes = { | ||
| verifier: string; | ||
| challenge: string; | ||
| }; | ||
| export type SignedHttpRequestParameters = Pick<BaseAuthRequest, "resourceRequestMethod" | "resourceRequestUri" | "shrClaims" | "shrNonce" | "shrOptions"> & { | ||
| correlationId: string; | ||
| }; | ||
| /** | ||
| * Interface for crypto functions used by library | ||
| */ | ||
| export interface ICrypto { | ||
| /** | ||
| * Creates a guid randomly. | ||
| */ | ||
| createNewGuid(): string; | ||
| /** | ||
| * base64 Encode string | ||
| * @param input | ||
| */ | ||
| base64Encode(input: string): string; | ||
| /** | ||
| * base64 decode string | ||
| * @param input | ||
| */ | ||
| base64Decode(input: string): string; | ||
| /** | ||
| * base64 URL safe encoded string | ||
| */ | ||
| base64UrlEncode(input: string): string; | ||
| /** | ||
| * Stringifies and base64Url encodes input public key | ||
| * @param inputKid | ||
| * @returns Base64Url encoded public key | ||
| */ | ||
| encodeKid(inputKid: string): string; | ||
| /** | ||
| * Generates an JWK RSA S256 Thumbprint | ||
| * @param request | ||
| */ | ||
| getPublicKeyThumbprint(request: SignedHttpRequestParameters): Promise<string>; | ||
| /** | ||
| * Removes cryptographic keypair from key store matching the keyId passed in | ||
| * @param kid | ||
| * @param correlationId | ||
| */ | ||
| removeTokenBindingKey(kid: string, correlationId: string): Promise<void>; | ||
| /** | ||
| * Removes all cryptographic keys from IndexedDB storage | ||
| * @param correlationId | ||
| */ | ||
| clearKeystore(correlationId: string): Promise<boolean>; | ||
| /** | ||
| * Returns a signed proof-of-possession token with a given acces token that contains a cnf claim with the required kid. | ||
| * @param accessToken | ||
| */ | ||
| signJwt(payload: SignedHttpRequest, kid: string, shrOptions?: ShrOptions, correlationId?: string): Promise<string>; | ||
| /** | ||
| * Returns the SHA-256 hash of an input string | ||
| * @param plainText | ||
| */ | ||
| hashString(plainText: string): Promise<string>; | ||
| } | ||
| export declare const DEFAULT_CRYPTO_IMPLEMENTATION: ICrypto; | ||
| //# sourceMappingURL=ICrypto.d.ts.map |
| {"version":3,"file":"ICrypto.d.ts","sourceRoot":"","sources":["../../src/crypto/ICrypto.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM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OA+B3C,CAAC"} |
| export interface IGuidGenerator { | ||
| generateGuid(): string; | ||
| isGuid(guid: string): boolean; | ||
| } | ||
| //# sourceMappingURL=IGuidGenerator.d.ts.map |
| {"version":3,"file":"IGuidGenerator.d.ts","sourceRoot":"","sources":["../../src/crypto/IGuidGenerator.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,cAAc;IAC3B,YAAY,IAAI,MAAM,CAAC;IACvB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACjC"} |
| import { JsonWebTokenTypes } from "../utils/Constants.js"; | ||
| export type JoseHeaderOptions = { | ||
| typ?: JsonWebTokenTypes; | ||
| alg?: string; | ||
| kid?: string; | ||
| }; | ||
| /** @internal */ | ||
| export declare class JoseHeader { | ||
| typ?: JsonWebTokenTypes; | ||
| alg?: string; | ||
| kid?: string; | ||
| constructor(options: JoseHeaderOptions); | ||
| /** | ||
| * Builds SignedHttpRequest formatted JOSE Header from the | ||
| * JOSE Header options provided or previously set on the object and returns | ||
| * the stringified header object. | ||
| * Throws if keyId or algorithm aren't provided since they are required for Access Token Binding. | ||
| * @param shrHeaderOptions | ||
| * @returns | ||
| */ | ||
| static getShrHeaderString(shrHeaderOptions: JoseHeaderOptions): string; | ||
| } | ||
| //# sourceMappingURL=JoseHeader.d.ts.map |
| {"version":3,"file":"JoseHeader.d.ts","sourceRoot":"","sources":["../../src/crypto/JoseHeader.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,MAAM,iBAAiB,GAAG;IAC5B,GAAG,CAAC,EAAE,iBAAiB,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,qBAAa,UAAU;IACZ,GAAG,CAAC,EAAE,iBAAiB,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;gBAER,OAAO,EAAE,iBAAiB;IAMtC;;;;;;;OAOG;IACH,MAAM,CAAC,kBAAkB,CAAC,gBAAgB,EAAE,iBAAiB,GAAG,MAAM;CAoBzE"} |
| import { ICrypto, SignedHttpRequestParameters } from "./ICrypto.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| /** | ||
| * See eSTS docs for more info. | ||
| * - A kid element, with the value containing an RFC 7638-compliant JWK thumbprint that is base64 encoded. | ||
| * - xms_ksl element, representing the storage location of the key's secret component on the client device. One of two values: | ||
| * - sw: software storage | ||
| * - uhw: hardware storage | ||
| */ | ||
| type ReqCnf = { | ||
| kid: string; | ||
| xms_ksl: KeyLocation; | ||
| }; | ||
| export type ReqCnfData = { | ||
| kid: string; | ||
| reqCnfString: string; | ||
| }; | ||
| declare const KeyLocation: { | ||
| readonly SW: "sw"; | ||
| readonly UHW: "uhw"; | ||
| }; | ||
| export type KeyLocation = (typeof KeyLocation)[keyof typeof KeyLocation]; | ||
| /** @internal */ | ||
| export declare class PopTokenGenerator { | ||
| private cryptoUtils; | ||
| private performanceClient; | ||
| constructor(cryptoUtils: ICrypto, performanceClient: IPerformanceClient); | ||
| /** | ||
| * Generates the req_cnf validated at the RP in the POP protocol for SHR parameters | ||
| * and returns an object containing the keyid, the full req_cnf string and the req_cnf string hash | ||
| * @param request | ||
| * @returns | ||
| */ | ||
| generateCnf(request: SignedHttpRequestParameters, logger: Logger): Promise<ReqCnfData>; | ||
| /** | ||
| * Generates key_id for a SHR token request | ||
| * @param request | ||
| * @returns | ||
| */ | ||
| generateKid(request: SignedHttpRequestParameters): Promise<ReqCnf>; | ||
| /** | ||
| * Signs the POP access_token with the local generated key-pair | ||
| * @param accessToken | ||
| * @param request | ||
| * @returns | ||
| */ | ||
| signPopToken(accessToken: string, keyId: string, request: SignedHttpRequestParameters): Promise<string>; | ||
| /** | ||
| * Utility function to generate the signed JWT for an access_token | ||
| * @param payload | ||
| * @param kid | ||
| * @param request | ||
| * @param claims | ||
| * @returns | ||
| */ | ||
| signPayload(payload: string, keyId: string, request: SignedHttpRequestParameters, claims?: object): Promise<string>; | ||
| } | ||
| export {}; | ||
| //# sourceMappingURL=PopTokenGenerator.d.ts.map |
| {"version":3,"file":"PopTokenGenerator.d.ts","sourceRoot":"","sources":["../../src/crypto/PopTokenGenerator.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAGpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAGpF,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C;;;;;;GAMG;AACH,KAAK,MAAM,GAAG;IACV,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,WAAW,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,WAAW;;;CAGP,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEzE,gBAAgB;AAChB,qBAAa,iBAAiB;IAC1B,OAAO,CAAC,WAAW,CAAU;IAC7B,OAAO,CAAC,iBAAiB,CAAqB;gBAElC,WAAW,EAAE,OAAO,EAAE,iBAAiB,EAAE,kBAAkB;IAKvE;;;;;OAKG;IACG,WAAW,CACb,OAAO,EAAE,2BAA2B,EACpC,MAAM,EAAE,MAAM,GACf,OAAO,CAAC,UAAU,CAAC;IAkBtB;;;;OAIG;IACG,WAAW,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,MAAM,CAAC;IAWxE;;;;;OAKG;IACG,YAAY,CACd,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,2BAA2B,GACrC,OAAO,CAAC,MAAM,CAAC;IAIlB;;;;;;;OAOG;IACG,WAAW,CACb,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,2BAA2B,EACpC,MAAM,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,MAAM,CAAC;CAiCrB"} |
| import { JoseHeaderOptions } from "./JoseHeader.js"; | ||
| export type SignedHttpRequest = { | ||
| at?: string; | ||
| cnf?: object; | ||
| m?: string; | ||
| u?: string; | ||
| p?: string; | ||
| q?: [Array<string>, string]; | ||
| ts?: number; | ||
| nonce?: string; | ||
| client_claims?: string; | ||
| }; | ||
| export type ShrOptions = { | ||
| header: JoseHeaderOptions; | ||
| }; | ||
| //# sourceMappingURL=SignedHttpRequest.d.ts.map |
| {"version":3,"file":"SignedHttpRequest.d.ts","sourceRoot":"","sources":["../../src/crypto/SignedHttpRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GAAG;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACrB,MAAM,EAAE,iBAAiB,CAAC;CAC7B,CAAC"} |
| import * as AuthErrorCodes from "./AuthErrorCodes.js"; | ||
| import type { PlatformBrokerError } from "./PlatformBrokerError.js"; | ||
| export { AuthErrorCodes }; | ||
| export declare function getDefaultErrorMessage(code: string): string; | ||
| /** | ||
| * General error class thrown by the MSAL.js library. | ||
| */ | ||
| export declare class AuthError extends Error { | ||
| /** | ||
| * Short string denoting error | ||
| */ | ||
| errorCode: string; | ||
| /** | ||
| * Detailed description of error | ||
| */ | ||
| errorMessage: string; | ||
| /** | ||
| * Describes the subclass of an error | ||
| */ | ||
| subError: string; | ||
| /** | ||
| * CorrelationId associated with the error | ||
| */ | ||
| correlationId: string; | ||
| /** | ||
| * Default PlatformBrokerError from MsalNodeRuntime when broker is enabled | ||
| */ | ||
| platformBrokerError?: PlatformBrokerError; | ||
| constructor(errorCode?: string, errorMessage?: string, suberror?: string); | ||
| setCorrelationId(correlationId: string): void; | ||
| } | ||
| export declare function createAuthError(code: string, additionalMessage?: string): AuthError; | ||
| //# sourceMappingURL=AuthError.d.ts.map |
| {"version":3,"file":"AuthError.d.ts","sourceRoot":"","sources":["../../src/error/AuthError.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,KAAK;IAChC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;gBAE9B,SAAS,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM;IAcxE,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI;CAGhD;AAED,wBAAgB,eAAe,CAC3B,IAAI,EAAE,MAAM,EACZ,iBAAiB,CAAC,EAAE,MAAM,GAC3B,SAAS,CAKX"} |
| /** | ||
| * AuthErrorMessage class containing string constants used by error codes and messages. | ||
| */ | ||
| export declare const unexpectedError = "unexpected_error"; | ||
| export declare const postRequestFailed = "post_request_failed"; | ||
| //# sourceMappingURL=AuthErrorCodes.d.ts.map |
| {"version":3,"file":"AuthErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/AuthErrorCodes.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,iBAAiB,wBAAwB,CAAC"} |
| import * as CacheErrorCodes from "./CacheErrorCodes.js"; | ||
| export { CacheErrorCodes }; | ||
| /** | ||
| * Error thrown when there is an error with the cache | ||
| */ | ||
| export declare class CacheError extends Error { | ||
| /** | ||
| * Short string denoting error | ||
| */ | ||
| errorCode: string; | ||
| /** | ||
| * Detailed description of error | ||
| */ | ||
| errorMessage: string; | ||
| constructor(errorCode: string, errorMessage?: string); | ||
| } | ||
| /** | ||
| * Helper function to wrap browser errors in a CacheError object | ||
| * @param e | ||
| * @returns | ||
| */ | ||
| export declare function createCacheError(e: unknown): CacheError; | ||
| //# sourceMappingURL=CacheError.d.ts.map |
| {"version":3,"file":"CacheError.d.ts","sourceRoot":"","sources":["../../src/error/CacheError.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAC;AAExD,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B;;GAEG;AACH,qBAAa,UAAW,SAAQ,KAAK;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;gBAET,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;CASvD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,OAAO,GAAG,UAAU,CAcvD"} |
| export declare const cacheQuotaExceeded = "cache_quota_exceeded"; | ||
| export declare const cacheErrorUnknown = "cache_error_unknown"; | ||
| //# sourceMappingURL=CacheErrorCodes.d.ts.map |
| {"version":3,"file":"CacheErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/CacheErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,iBAAiB,wBAAwB,CAAC"} |
| import { AuthError } from "./AuthError.js"; | ||
| import * as ClientAuthErrorCodes from "./ClientAuthErrorCodes.js"; | ||
| export { ClientAuthErrorCodes }; | ||
| /** | ||
| * ClientAuthErrorMessage class containing string constants used by error codes and messages. | ||
| */ | ||
| /** | ||
| * Error thrown when there is an error in the client code running on the browser. | ||
| */ | ||
| export declare class ClientAuthError extends AuthError { | ||
| constructor(errorCode: string, additionalMessage?: string); | ||
| } | ||
| export declare function createClientAuthError(errorCode: string, additionalMessage?: string): ClientAuthError; | ||
| //# sourceMappingURL=ClientAuthError.d.ts.map |
| {"version":3,"file":"ClientAuthError.d.ts","sourceRoot":"","sources":["../../src/error/ClientAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC;;GAEG;AAEH;;GAEG;AACH,qBAAa,eAAgB,SAAQ,SAAS;gBAC9B,SAAS,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,MAAM;CAM5D;AAED,wBAAgB,qBAAqB,CACjC,SAAS,EAAE,MAAM,EACjB,iBAAiB,CAAC,EAAE,MAAM,GAC3B,eAAe,CAEjB"} |
| export declare const clientInfoDecodingError = "client_info_decoding_error"; | ||
| export declare const clientInfoEmptyError = "client_info_empty_error"; | ||
| export declare const tokenParsingError = "token_parsing_error"; | ||
| export declare const nullOrEmptyToken = "null_or_empty_token"; | ||
| export declare const endpointResolutionError = "endpoints_resolution_error"; | ||
| export declare const networkError = "network_error"; | ||
| export declare const openIdConfigError = "openid_config_error"; | ||
| export declare const hashNotDeserialized = "hash_not_deserialized"; | ||
| export declare const invalidState = "invalid_state"; | ||
| export declare const stateMismatch = "state_mismatch"; | ||
| export declare const stateNotFound = "state_not_found"; | ||
| export declare const nonceMismatch = "nonce_mismatch"; | ||
| export declare const authTimeNotFound = "auth_time_not_found"; | ||
| export declare const maxAgeTranspired = "max_age_transpired"; | ||
| export declare const multipleMatchingTokens = "multiple_matching_tokens"; | ||
| export declare const multipleMatchingAppMetadata = "multiple_matching_appMetadata"; | ||
| export declare const requestCannotBeMade = "request_cannot_be_made"; | ||
| export declare const cannotRemoveEmptyScope = "cannot_remove_empty_scope"; | ||
| export declare const cannotAppendScopeSet = "cannot_append_scopeset"; | ||
| export declare const emptyInputScopeSet = "empty_input_scopeset"; | ||
| export declare const noAccountInSilentRequest = "no_account_in_silent_request"; | ||
| export declare const invalidCacheRecord = "invalid_cache_record"; | ||
| export declare const invalidCacheEnvironment = "invalid_cache_environment"; | ||
| export declare const noAccountFound = "no_account_found"; | ||
| export declare const noCryptoObject = "no_crypto_object"; | ||
| export declare const unexpectedCredentialType = "unexpected_credential_type"; | ||
| export declare const tokenRefreshRequired = "token_refresh_required"; | ||
| export declare const tokenClaimsCnfRequiredForSignedJwt = "token_claims_cnf_required_for_signedjwt"; | ||
| export declare const authorizationCodeMissingFromServerResponse = "authorization_code_missing_from_server_response"; | ||
| export declare const bindingKeyNotRemoved = "binding_key_not_removed"; | ||
| export declare const endSessionEndpointNotSupported = "end_session_endpoint_not_supported"; | ||
| export declare const keyIdMissing = "key_id_missing"; | ||
| export declare const noNetworkConnectivity = "no_network_connectivity"; | ||
| export declare const userCanceled = "user_canceled"; | ||
| export declare const methodNotImplemented = "method_not_implemented"; | ||
| export declare const nestedAppAuthBridgeDisabled = "nested_app_auth_bridge_disabled"; | ||
| export declare const platformBrokerError = "platform_broker_error"; | ||
| export declare const resourceParameterRequired = "resource_parameter_required"; | ||
| export declare const misplacedResourceParam = "misplaced_resource_parameter"; | ||
| //# sourceMappingURL=ClientAuthErrorCodes.d.ts.map |
| {"version":3,"file":"ClientAuthErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/ClientAuthErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB,+BAA+B,CAAC;AACpE,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AACtD,eAAO,MAAM,uBAAuB,+BAA+B,CAAC;AACpE,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAC5C,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAC3D,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAC5C,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AACtD,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,eAAO,MAAM,sBAAsB,6BAA6B,CAAC;AACjE,eAAO,MAAM,2BAA2B,kCAAkC,CAAC;AAC3E,eAAO,MAAM,mBAAmB,2BAA2B,CAAC;AAC5D,eAAO,MAAM,sBAAsB,8BAA8B,CAAC;AAClE,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,wBAAwB,iCAAiC,CAAC;AACvE,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,uBAAuB,8BAA8B,CAAC;AACnE,eAAO,MAAM,cAAc,qBAAqB,CAAC;AACjD,eAAO,MAAM,cAAc,qBAAqB,CAAC;AACjD,eAAO,MAAM,wBAAwB,+BAA+B,CAAC;AACrE,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,kCAAkC,4CACF,CAAC;AAC9C,eAAO,MAAM,0CAA0C,oDACF,CAAC;AACtD,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,8BAA8B,uCACH,CAAC;AACzC,eAAO,MAAM,YAAY,mBAAmB,CAAC;AAC7C,eAAO,MAAM,qBAAqB,4BAA4B,CAAC;AAC/D,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAC5C,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,2BAA2B,oCAAoC,CAAC;AAC7E,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAC3D,eAAO,MAAM,yBAAyB,gCAAgC,CAAC;AACvE,eAAO,MAAM,sBAAsB,iCAAiC,CAAC"} |
| import { AuthError } from "./AuthError.js"; | ||
| import * as ClientConfigurationErrorCodes from "./ClientConfigurationErrorCodes.js"; | ||
| export { ClientConfigurationErrorCodes }; | ||
| /** | ||
| * Error thrown when there is an error in configuration of the MSAL.js library. | ||
| */ | ||
| export declare class ClientConfigurationError extends AuthError { | ||
| constructor(errorCode: string); | ||
| } | ||
| export declare function createClientConfigurationError(errorCode: string): ClientConfigurationError; | ||
| //# sourceMappingURL=ClientConfigurationError.d.ts.map |
| {"version":3,"file":"ClientConfigurationError.d.ts","sourceRoot":"","sources":["../../src/error/ClientConfigurationError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,6BAA6B,MAAM,oCAAoC,CAAC;AACpF,OAAO,EAAE,6BAA6B,EAAE,CAAC;AAEzC;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,SAAS;gBACvC,SAAS,EAAE,MAAM;CAKhC;AAED,wBAAgB,8BAA8B,CAC1C,SAAS,EAAE,MAAM,GAClB,wBAAwB,CAE1B"} |
| export declare const redirectUriEmpty = "redirect_uri_empty"; | ||
| export declare const claimsRequestParsingError = "claims_request_parsing_error"; | ||
| export declare const authorityUriInsecure = "authority_uri_insecure"; | ||
| export declare const urlParseError = "url_parse_error"; | ||
| export declare const urlEmptyError = "empty_url_error"; | ||
| export declare const emptyInputScopesError = "empty_input_scopes_error"; | ||
| export declare const invalidClaims = "invalid_claims"; | ||
| export declare const tokenRequestEmpty = "token_request_empty"; | ||
| export declare const logoutRequestEmpty = "logout_request_empty"; | ||
| export declare const invalidCodeChallengeMethod = "invalid_code_challenge_method"; | ||
| export declare const pkceParamsMissing = "pkce_params_missing"; | ||
| export declare const invalidCloudDiscoveryMetadata = "invalid_cloud_discovery_metadata"; | ||
| export declare const invalidAuthorityMetadata = "invalid_authority_metadata"; | ||
| export declare const untrustedAuthority = "untrusted_authority"; | ||
| export declare const missingSshJwk = "missing_ssh_jwk"; | ||
| export declare const missingSshKid = "missing_ssh_kid"; | ||
| export declare const missingNonceAuthenticationHeader = "missing_nonce_authentication_header"; | ||
| export declare const invalidAuthenticationHeader = "invalid_authentication_header"; | ||
| export declare const cannotSetOIDCOptions = "cannot_set_OIDCOptions"; | ||
| export declare const cannotAllowPlatformBroker = "cannot_allow_platform_broker"; | ||
| export declare const authorityMismatch = "authority_mismatch"; | ||
| export declare const invalidRequestMethodForEAR = "invalid_request_method_for_EAR"; | ||
| //# sourceMappingURL=ClientConfigurationErrorCodes.d.ts.map |
| {"version":3,"file":"ClientConfigurationErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/ClientConfigurationErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,eAAO,MAAM,yBAAyB,iCAAiC,CAAC;AACxE,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,qBAAqB,6BAA6B,CAAC;AAChE,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,0BAA0B,kCAAkC,CAAC;AAC1E,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,6BAA6B,qCAAqC,CAAC;AAChF,eAAO,MAAM,wBAAwB,+BAA+B,CAAC;AACrE,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AACxD,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,gCAAgC,wCACJ,CAAC;AAC1C,eAAO,MAAM,2BAA2B,kCAAkC,CAAC;AAC3E,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,yBAAyB,iCAAiC,CAAC;AACxE,eAAO,MAAM,iBAAiB,uBAAuB,CAAC;AACtD,eAAO,MAAM,0BAA0B,mCAAmC,CAAC"} |
| import { AuthError } from "./AuthError.js"; | ||
| import * as InteractionRequiredAuthErrorCodes from "./InteractionRequiredAuthErrorCodes.js"; | ||
| export { InteractionRequiredAuthErrorCodes }; | ||
| /** | ||
| * InteractionRequiredServerErrorMessage contains string constants used by error codes and messages returned by the server indicating interaction is required | ||
| */ | ||
| export declare const InteractionRequiredServerErrorMessage: string[]; | ||
| export declare const InteractionRequiredAuthSubErrorMessage: string[]; | ||
| /** | ||
| * Error thrown when user interaction is required. | ||
| */ | ||
| export declare class InteractionRequiredAuthError extends AuthError { | ||
| /** | ||
| * The time the error occured at | ||
| */ | ||
| timestamp: string; | ||
| /** | ||
| * TraceId associated with the error | ||
| */ | ||
| traceId: string; | ||
| /** | ||
| * https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-common/docs/claims-challenge.md | ||
| * | ||
| * A string with extra claims needed for the token request to succeed | ||
| * web site: redirect the user to the authorization page and set the extra claims | ||
| * web api: include the claims in the WWW-Authenticate header that are sent back to the client so that it knows to request a token with the extra claims | ||
| * desktop application or browser context: include the claims when acquiring the token interactively | ||
| * app to app context (client_credentials): include the claims in the AcquireTokenByClientCredential request | ||
| */ | ||
| claims: string; | ||
| /** | ||
| * Server error number; | ||
| */ | ||
| readonly errorNo?: string; | ||
| constructor(errorCode?: string, errorMessage?: string, subError?: string, timestamp?: string, traceId?: string, correlationId?: string, claims?: string, errorNo?: string); | ||
| } | ||
| /** | ||
| * Helper function used to determine if an error thrown by the server requires interaction to resolve | ||
| * @param errorCode | ||
| * @param errorString | ||
| * @param subError | ||
| */ | ||
| export declare function isInteractionRequiredError(errorCode?: string, errorString?: string, subError?: string): boolean; | ||
| /** | ||
| * Creates an InteractionRequiredAuthError | ||
| */ | ||
| export declare function createInteractionRequiredAuthError(errorCode: string, errorMessage?: string): InteractionRequiredAuthError; | ||
| //# sourceMappingURL=InteractionRequiredAuthError.d.ts.map |
| {"version":3,"file":"InteractionRequiredAuthError.d.ts","sourceRoot":"","sources":["../../src/error/InteractionRequiredAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,iCAAiC,MAAM,wCAAwC,CAAC;AAC5F,OAAO,EAAE,iCAAiC,EAAE,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,qCAAqC,UAOjD,CAAC;AAEF,eAAO,MAAM,sCAAsC,UASlD,CAAC;AAEF;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,SAAS;IACvD;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;;;OAQG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;gBAGtB,SAAS,CAAC,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,MAAM,EACrB,QAAQ,CAAC,EAAE,MAAM,EACjB,SAAS,CAAC,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,EAChB,aAAa,CAAC,EAAE,MAAM,EACtB,MAAM,CAAC,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,MAAM;CAYvB;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACtC,SAAS,CAAC,EAAE,MAAM,EAClB,WAAW,CAAC,EAAE,MAAM,EACpB,QAAQ,CAAC,EAAE,MAAM,GAClB,OAAO,CAkBT;AAED;;GAEG;AACH,wBAAgB,kCAAkC,CAC9C,SAAS,EAAE,MAAM,EACjB,YAAY,CAAC,EAAE,MAAM,GACtB,4BAA4B,CAE9B"} |
| /** | ||
| * MSAL-defined interaction required error code indicating no tokens are found in cache. | ||
| * @public | ||
| */ | ||
| export declare const noTokensFound = "no_tokens_found"; | ||
| /** | ||
| * MSAL-defined error code indicating a native account is unavailable on the platform. | ||
| * @public | ||
| */ | ||
| export declare const nativeAccountUnavailable = "native_account_unavailable"; | ||
| /** | ||
| * MSAL-defined error code indicating the refresh token has expired and user interaction is needed. | ||
| * @public | ||
| */ | ||
| export declare const refreshTokenExpired = "refresh_token_expired"; | ||
| /** | ||
| * MSAL-defined error code indicating UI/UX is not allowed (e.g., blocked by policy), requiring alternate interaction. | ||
| * @public | ||
| */ | ||
| export declare const uxNotAllowed = "ux_not_allowed"; | ||
| /** | ||
| * Server-originated error code indicating interaction is required to complete the request. | ||
| * @public | ||
| */ | ||
| export declare const interactionRequired = "interaction_required"; | ||
| /** | ||
| * Server-originated error code indicating user consent is required. | ||
| * @public | ||
| */ | ||
| export declare const consentRequired = "consent_required"; | ||
| /** | ||
| * Server-originated error code indicating user login is required. | ||
| * @public | ||
| */ | ||
| export declare const loginRequired = "login_required"; | ||
| /** | ||
| * Server-originated error code indicating the token is invalid or corrupted. | ||
| * @public | ||
| */ | ||
| export declare const badToken = "bad_token"; | ||
| /** | ||
| * Server-originated error code indicating the user is in an interrupted state and interaction is required. | ||
| * @public | ||
| */ | ||
| export declare const interruptedUser = "interrupted_user"; | ||
| //# sourceMappingURL=InteractionRequiredAuthErrorCodes.d.ts.map |
| {"version":3,"file":"InteractionRequiredAuthErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/InteractionRequiredAuthErrorCodes.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C;;;GAGG;AACH,eAAO,MAAM,wBAAwB,+BAA+B,CAAC;AACrE;;;GAGG;AACH,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAC3D;;;GAGG;AACH,eAAO,MAAM,YAAY,mBAAmB,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,mBAAmB,yBAAyB,CAAC;AAC1D;;;GAGG;AACH,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD;;;GAGG;AACH,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C;;;GAGG;AACH,eAAO,MAAM,QAAQ,cAAc,CAAC;AACpC;;;GAGG;AACH,eAAO,MAAM,eAAe,qBAAqB,CAAC"} |
| import { AuthError } from "./AuthError.js"; | ||
| import * as JoseHeaderErrorCodes from "./JoseHeaderErrorCodes.js"; | ||
| export { JoseHeaderErrorCodes }; | ||
| /** | ||
| * Error thrown when there is an error in the client code running on the browser. | ||
| */ | ||
| export declare class JoseHeaderError extends AuthError { | ||
| constructor(errorCode: string, errorMessage?: string); | ||
| } | ||
| /** Returns JoseHeaderError object */ | ||
| export declare function createJoseHeaderError(code: string): JoseHeaderError; | ||
| //# sourceMappingURL=JoseHeaderError.d.ts.map |
| {"version":3,"file":"JoseHeaderError.d.ts","sourceRoot":"","sources":["../../src/error/JoseHeaderError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC;;GAEG;AACH,qBAAa,eAAgB,SAAQ,SAAS;gBAC9B,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;CAMvD;AAED,qCAAqC;AACrC,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAEnE"} |
| export declare const missingKidError = "missing_kid_error"; | ||
| export declare const missingAlgError = "missing_alg_error"; | ||
| //# sourceMappingURL=JoseHeaderErrorCodes.d.ts.map |
| {"version":3,"file":"JoseHeaderErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/JoseHeaderErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe,sBAAsB,CAAC;AACnD,eAAO,MAAM,eAAe,sBAAsB,CAAC"} |
| import { AuthError } from "./AuthError.js"; | ||
| /** | ||
| * Represents network related errors | ||
| */ | ||
| export declare class NetworkError extends AuthError { | ||
| error: AuthError; | ||
| httpStatus?: number; | ||
| responseHeaders?: Record<string, string>; | ||
| constructor(error: AuthError, httpStatus?: number, responseHeaders?: Record<string, string>); | ||
| } | ||
| /** | ||
| * Creates NetworkError object for a failed network request | ||
| * @param error - Error to be thrown back to the caller | ||
| * @param httpStatus - Status code of the network request | ||
| * @param responseHeaders - Response headers of the network request, when available | ||
| * @returns NetworkError object | ||
| */ | ||
| export declare function createNetworkError(error: AuthError, httpStatus?: number, responseHeaders?: Record<string, string>, additionalError?: Error): NetworkError; | ||
| //# sourceMappingURL=NetworkError.d.ts.map |
| {"version":3,"file":"NetworkError.d.ts","sourceRoot":"","sources":["../../src/error/NetworkError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;GAEG;AACH,qBAAa,YAAa,SAAQ,SAAS;IACvC,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;gBAGrC,KAAK,EAAE,SAAS,EAChB,UAAU,CAAC,EAAE,MAAM,EACnB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAU/C;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAC9B,KAAK,EAAE,SAAS,EAChB,UAAU,CAAC,EAAE,MAAM,EACnB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACxC,eAAe,CAAC,EAAE,KAAK,GACxB,YAAY,CAGd"} |
| import { AuthError } from "./AuthError.js"; | ||
| /** | ||
| * Error class for MSAL Runtime errors that preserves detailed broker information | ||
| */ | ||
| export declare class PlatformBrokerError extends AuthError { | ||
| /** | ||
| * Numeric error code from MSAL Runtime | ||
| */ | ||
| statusCode: number; | ||
| /** | ||
| * Error tag from MSAL Runtime | ||
| */ | ||
| tag: string; | ||
| constructor(errorStatus: string, errorContext: string, errorCode: number, errorTag: number); | ||
| } | ||
| //# sourceMappingURL=PlatformBrokerError.d.ts.map |
| {"version":3,"file":"PlatformBrokerError.d.ts","sourceRoot":"","sources":["../../src/error/PlatformBrokerError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AA8B3C;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,SAAS;IAC9C;;OAEG;IACI,UAAU,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACI,GAAG,EAAE,MAAM,CAAC;gBAGf,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM;CAavB"} |
| import { AuthError } from "./AuthError.js"; | ||
| /** | ||
| * Error thrown when there is an error with the server code, for example, unavailability. | ||
| */ | ||
| export declare class ServerError extends AuthError { | ||
| /** | ||
| * Server error number; | ||
| */ | ||
| readonly errorNo?: string; | ||
| /** | ||
| * Http status number; | ||
| */ | ||
| readonly status?: number; | ||
| constructor(errorCode?: string, errorMessage?: string, subError?: string, errorNo?: string, status?: number); | ||
| } | ||
| //# sourceMappingURL=ServerError.d.ts.map |
| {"version":3,"file":"ServerError.d.ts","sourceRoot":"","sources":["../../src/error/ServerError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;GAEG;AACH,qBAAa,WAAY,SAAQ,SAAS;IACtC;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;gBAGrB,SAAS,CAAC,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,MAAM,EACrB,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,MAAM;CAStB"} |
| export { SignedHttpRequest, ShrOptions } from "./crypto/SignedHttpRequest.js"; | ||
| export { JoseHeader } from "./crypto/JoseHeader.js"; | ||
| export { ExternalTokenResponse } from "./response/ExternalTokenResponse.js"; | ||
| export { IPerformanceClient, PerformanceCallbackFunction, InProgressPerformanceEvent, } from "./telemetry/performance/IPerformanceClient.js"; | ||
| export { IntFields, PerformanceEvent, PerformanceEventStatus, SubMeasurement, } from "./telemetry/performance/PerformanceEvent.js"; | ||
| export * as PerformanceEvents from "./telemetry/performance/PerformanceEvents.js"; | ||
| export { IPerformanceMeasurement } from "./telemetry/performance/IPerformanceMeasurement.js"; | ||
| export { PerformanceClient } from "./telemetry/performance/PerformanceClient.js"; | ||
| export { StubPerformanceClient } from "./telemetry/performance/StubPerformanceClient.js"; | ||
| export { PopTokenGenerator } from "./crypto/PopTokenGenerator.js"; | ||
| //# sourceMappingURL=exports-browser-only.d.ts.map |
| {"version":3,"file":"exports-browser-only.d.ts","sourceRoot":"","sources":["../src/exports-browser-only.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EACH,kBAAkB,EAClB,2BAA2B,EAC3B,0BAA0B,GAC7B,MAAM,+CAA+C,CAAC;AACvD,OAAO,EACH,SAAS,EACT,gBAAgB,EAChB,sBAAsB,EACtB,cAAc,GACjB,MAAM,6CAA6C,CAAC;AACrD,OAAO,KAAK,iBAAiB,MAAM,8CAA8C,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,oDAAoD,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AAEzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC"} |
| import * as AuthToken from "./account/AuthToken.js"; | ||
| import * as AuthorityFactory from "./authority/AuthorityFactory.js"; | ||
| import * as CacheHelpers from "./cache/utils/CacheHelpers.js"; | ||
| import * as TimeUtils from "./utils/TimeUtils.js"; | ||
| import * as UrlUtils from "./utils/UrlUtils.js"; | ||
| import * as AADServerParamKeys from "./constants/AADServerParamKeys.js"; | ||
| import * as AccountEntityUtils from "./cache/utils/AccountEntityUtils.js"; | ||
| export { AuthToken }; | ||
| export { AuthorityFactory }; | ||
| export { CacheHelpers }; | ||
| export { TimeUtils }; | ||
| export { UrlUtils }; | ||
| export { AADServerParamKeys }; | ||
| export { AccountEntityUtils }; | ||
| export { AuthorizationCodeClient } from "./client/AuthorizationCodeClient.js"; | ||
| export { RefreshTokenClient } from "./client/RefreshTokenClient.js"; | ||
| export { SilentFlowClient } from "./client/SilentFlowClient.js"; | ||
| export { AuthOptions, SystemOptions, LoggerOptions, DEFAULT_SYSTEM_OPTIONS, AzureCloudOptions, ApplicationTelemetry, } from "./config/ClientConfiguration.js"; | ||
| export { ClientConfiguration } from "./config/ClientConfiguration.js"; | ||
| export { AccountInfo, ActiveAccountFilters, TenantProfile, updateAccountTenantProfileData, tenantIdMatchesHomeTenant, buildTenantProfile, } from "./account/AccountInfo.js"; | ||
| export { TokenClaims, getTenantIdFromIdTokenClaims, } from "./account/TokenClaims.js"; | ||
| export { TokenClaims as IdTokenClaims } from "./account/TokenClaims.js"; | ||
| export { CcsCredential, CcsCredentialType } from "./account/CcsCredential.js"; | ||
| export { ClientInfo, buildClientInfo, buildClientInfoFromHomeAccountId, } from "./account/ClientInfo.js"; | ||
| export { Authority, formatAuthorityUri, buildStaticAuthorityOptions, } from "./authority/Authority.js"; | ||
| export { AuthorityOptions, AzureCloudInstance, StaticAuthorityOptions, } from "./authority/AuthorityOptions.js"; | ||
| export { AuthorityType } from "./authority/AuthorityType.js"; | ||
| export { ProtocolMode } from "./authority/ProtocolMode.js"; | ||
| export { OIDCOptions } from "./authority/OIDCOptions.js"; | ||
| export { CacheManager, DefaultStorageClass } from "./cache/CacheManager.js"; | ||
| export { AccountCache, AccountFilter, AccessTokenCache, IdTokenCache, RefreshTokenCache, AppMetadataCache, CredentialFilter, ValidCacheType, ValidCredentialType, TokenKeys, } from "./cache/utils/CacheTypes.js"; | ||
| export { CacheRecord } from "./cache/entities/CacheRecord.js"; | ||
| export { CredentialEntity } from "./cache/entities/CredentialEntity.js"; | ||
| export { AppMetadataEntity } from "./cache/entities/AppMetadataEntity.js"; | ||
| export { AccountEntity } from "./cache/entities/AccountEntity.js"; | ||
| export { IdTokenEntity } from "./cache/entities/IdTokenEntity.js"; | ||
| export { AccessTokenEntity } from "./cache/entities/AccessTokenEntity.js"; | ||
| export { RefreshTokenEntity } from "./cache/entities/RefreshTokenEntity.js"; | ||
| export { ServerTelemetryEntity } from "./cache/entities/ServerTelemetryEntity.js"; | ||
| export { AuthorityMetadataEntity } from "./cache/entities/AuthorityMetadataEntity.js"; | ||
| export { ThrottlingEntity } from "./cache/entities/ThrottlingEntity.js"; | ||
| export { INetworkModule, NetworkRequestOptions, StubbedNetworkModule, } from "./network/INetworkModule.js"; | ||
| export { NetworkResponse } from "./network/NetworkResponse.js"; | ||
| export { ThrottlingUtils } from "./network/ThrottlingUtils.js"; | ||
| export { RequestThumbprint, getRequestThumbprint, } from "./network/RequestThumbprint.js"; | ||
| export { IUri } from "./url/IUri.js"; | ||
| export { UrlString } from "./url/UrlString.js"; | ||
| export { ICrypto, PkceCodes, DEFAULT_CRYPTO_IMPLEMENTATION, SignedHttpRequestParameters, } from "./crypto/ICrypto.js"; | ||
| export * as AuthorizeProtocol from "./protocol/Authorize.js"; | ||
| export * as TokenProtocol from "./protocol/Token.js"; | ||
| export { BaseAuthRequest, enforceResourceParameter, } from "./request/BaseAuthRequest.js"; | ||
| export { CommonAuthorizationUrlRequest } from "./request/CommonAuthorizationUrlRequest.js"; | ||
| export { CommonAuthorizationCodeRequest } from "./request/CommonAuthorizationCodeRequest.js"; | ||
| export { CommonRefreshTokenRequest } from "./request/CommonRefreshTokenRequest.js"; | ||
| export { CommonSilentFlowRequest } from "./request/CommonSilentFlowRequest.js"; | ||
| export { CommonEndSessionRequest } from "./request/CommonEndSessionRequest.js"; | ||
| export * as RequestParameterBuilder from "./request/RequestParameterBuilder.js"; | ||
| export { StoreInCache } from "./request/StoreInCache.js"; | ||
| export { AzureRegion } from "./authority/AzureRegion.js"; | ||
| export { AzureRegionConfiguration } from "./authority/AzureRegionConfiguration.js"; | ||
| export { AuthenticationResult } from "./response/AuthenticationResult.js"; | ||
| export { AuthorizationCodePayload } from "./response/AuthorizationCodePayload.js"; | ||
| export { AuthorizeResponse } from "./response/AuthorizeResponse.js"; | ||
| export { ServerAuthorizationTokenResponse } from "./response/ServerAuthorizationTokenResponse.js"; | ||
| export { ResponseHandler, buildAccountToCache, } from "./response/ResponseHandler.js"; | ||
| export { ScopeSet } from "./request/ScopeSet.js"; | ||
| export { AuthenticationHeaderParser } from "./request/AuthenticationHeaderParser.js"; | ||
| export { ILoggerCallback, LogLevel, Logger } from "./logger/Logger.js"; | ||
| export { InteractionRequiredAuthError, InteractionRequiredAuthErrorCodes, createInteractionRequiredAuthError, } from "./error/InteractionRequiredAuthError.js"; | ||
| export { AuthError, AuthErrorCodes, createAuthError, } from "./error/AuthError.js"; | ||
| export { PlatformBrokerError } from "./error/PlatformBrokerError.js"; | ||
| export { ServerError } from "./error/ServerError.js"; | ||
| export { NetworkError, createNetworkError } from "./error/NetworkError.js"; | ||
| export { CacheError, CacheErrorCodes, createCacheError, } from "./error/CacheError.js"; | ||
| export { ClientAuthError, ClientAuthErrorCodes, createClientAuthError, } from "./error/ClientAuthError.js"; | ||
| export { ClientConfigurationError, ClientConfigurationErrorCodes, createClientConfigurationError, } from "./error/ClientConfigurationError.js"; | ||
| export * as Constants from "./utils/Constants.js"; | ||
| export { StringUtils } from "./utils/StringUtils.js"; | ||
| export { StringDict } from "./utils/MsalTypes.js"; | ||
| export { RequestStateObject, LibraryStateObject } from "./utils/StateTypes.js"; | ||
| export * as ProtocolUtils from "./utils/ProtocolUtils.js"; | ||
| export * from "./utils/FunctionWrappers.js"; | ||
| export { ServerTelemetryManager } from "./telemetry/server/ServerTelemetryManager.js"; | ||
| export { ServerTelemetryRequest } from "./telemetry/server/ServerTelemetryRequest.js"; | ||
| export { version } from "./packageMetadata.js"; | ||
| //# sourceMappingURL=exports-common.d.ts.map |
| {"version":3,"file":"exports-common.d.ts","sourceRoot":"","sources":["../src/exports-common.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,gBAAgB,MAAM,iCAAiC,CAAC;AACpE,OAAO,KAAK,YAAY,MAAM,+BAA+B,CAAC;AAC9D,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,kBAAkB,MAAM,mCAAmC,CAAC;AACxE,OAAO,KAAK,kBAAkB,MAAM,qCAAqC,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,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E,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EACH,UAAU,EACV,eAAe,EACf,gBAAgB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACH,eAAe,EACf,oBAAoB,EACpB,qBAAqB,GACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,wBAAwB,EACxB,6BAA6B,EAC7B,8BAA8B,GACjC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC"} |
| import * as ClientAssertionUtils from "./utils/ClientAssertionUtils.js"; | ||
| export { ClientAssertionUtils }; | ||
| export { IAppTokenProvider, AppTokenProviderParameters, AppTokenProviderResult, } from "./config/AppTokenProvider.js"; | ||
| export { INativeBrokerPlugin } from "./broker/nativeBroker/INativeBrokerPlugin.js"; | ||
| export { ICachePlugin } from "./cache/interface/ICachePlugin.js"; | ||
| export { TokenCacheContext } from "./cache/persistence/TokenCacheContext.js"; | ||
| export { ISerializableTokenCache } from "./cache/interface/ISerializableTokenCache.js"; | ||
| export { NativeRequest } from "./request/NativeRequest.js"; | ||
| export { NativeSignOutRequest } from "./request/NativeSignOutRequest.js"; | ||
| export { ClientAssertion, ClientAssertionConfig, ClientAssertionCallback, } from "./account/ClientCredentials.js"; | ||
| export { DeviceCodeResponse, ServerDeviceCodeResponse, } from "./response/DeviceCodeResponse.js"; | ||
| export { getClientAssertion } from "./utils/ClientAssertionUtils.js"; | ||
| export { IGuidGenerator } from "./crypto/IGuidGenerator.js"; | ||
| export { StubPerformanceClient } from "./telemetry/performance/StubPerformanceClient.js"; | ||
| export { buildClientConfiguration, CommonClientConfiguration, } from "./config/ClientConfiguration.js"; | ||
| //# sourceMappingURL=exports-node-only.d.ts.map |
| {"version":3,"file":"exports-node-only.d.ts","sourceRoot":"","sources":["../src/exports-node-only.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,oBAAoB,MAAM,iCAAiC,CAAC;AAExE,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC,OAAO,EACH,iBAAiB,EACjB,0BAA0B,EAC1B,sBAAsB,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EACH,eAAe,EACf,qBAAqB,EACrB,uBAAuB,GAC1B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACH,kBAAkB,EAClB,wBAAwB,GAC3B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AACzF,OAAO,EACH,wBAAwB,EACxB,yBAAyB,GAC5B,MAAM,iCAAiC,CAAC"} |
| /** | ||
| * This file is the entrypoint when importing with the browser subpath e.g. "import { someExport } from @azure/msal-common/browser" | ||
| * Additional exports should be added to the applicable exports-*.ts files | ||
| */ | ||
| export * from "./exports-common.js"; | ||
| export * from "./exports-browser-only.js"; | ||
| //# sourceMappingURL=index-browser.d.ts.map |
| {"version":3,"file":"index-browser.d.ts","sourceRoot":"","sources":["../src/index-browser.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC"} |
| /** | ||
| * This file is the entrypoint when importing with the node subpath e.g. "import { someExport } from @azure/msal-common/node" | ||
| * Additional exports should be added to the applicable exports-*.ts files | ||
| */ | ||
| export * from "./exports-common.js"; | ||
| export * from "./exports-node-only.js"; | ||
| //# sourceMappingURL=index-node.d.ts.map |
| {"version":3,"file":"index-node.d.ts","sourceRoot":"","sources":["../src/index-node.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC"} |
| /** | ||
| * @packageDocumentation | ||
| * @module @azure/msal-common | ||
| */ | ||
| /** | ||
| * This file is the entrypoint when importing without a specific subpath e.g. "import { someExport } from @azure/msal-common" | ||
| * Additional exports should be added to the applicable exports-*.ts files | ||
| */ | ||
| export * from "./exports-common.js"; | ||
| export * from "./exports-browser-only.js"; | ||
| export * from "./exports-node-only.js"; | ||
| //# sourceMappingURL=index.d.ts.map |
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA;;;GAGG;AAEH;;;GAGG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC"} |
| import type { LoggerOptions } from "../config/ClientConfiguration.js"; | ||
| /** | ||
| * Options for logger messages. | ||
| */ | ||
| export type LoggerMessageOptions = { | ||
| logLevel: LogLevel; | ||
| containsPii?: boolean; | ||
| context?: string; | ||
| correlationId: string; | ||
| }; | ||
| /** | ||
| * Log message level. | ||
| */ | ||
| export declare enum LogLevel { | ||
| Error = 0, | ||
| Warning = 1, | ||
| Info = 2, | ||
| Verbose = 3, | ||
| Trace = 4 | ||
| } | ||
| /** | ||
| * Callback to send the messages to. | ||
| */ | ||
| export interface ILoggerCallback { | ||
| (level: LogLevel, message: string, containsPii: boolean): void; | ||
| } | ||
| /** | ||
| * Represents a single logged message with metadata | ||
| */ | ||
| export interface LoggedMessage { | ||
| hash: string; | ||
| level: LogLevel; | ||
| containsPii: boolean; | ||
| milliseconds: number; | ||
| } | ||
| /** | ||
| * Get all logs for specific correlation ID | ||
| * @param correlationId | ||
| */ | ||
| export declare function getLogsFromCache(correlationId: string): LoggedMessage[]; | ||
| /** | ||
| * Get logs for correlation ID and flush them from cache | ||
| * Attaches logs with empty correlation id to the requested correlation logs | ||
| * @param correlationId | ||
| */ | ||
| export declare function getAndFlushLogsFromCache(correlationId: string): LoggedMessage[]; | ||
| /** | ||
| * Get all correlation IDs that have logs | ||
| */ | ||
| export declare function getCachedCorrelationIds(): string[]; | ||
| /** | ||
| * Class which facilitates logging of messages to a specific place. | ||
| */ | ||
| export declare class Logger { | ||
| private level; | ||
| private piiLoggingEnabled; | ||
| private localCallback; | ||
| private packageName; | ||
| private packageVersion; | ||
| constructor(loggerOptions: LoggerOptions, packageName?: string, packageVersion?: string); | ||
| private static createDefaultLoggerOptions; | ||
| /** | ||
| * Create new Logger with existing configurations. | ||
| */ | ||
| clone(packageName: string, packageVersion: string): Logger; | ||
| /** | ||
| * Log message with required options. | ||
| */ | ||
| private logMessage; | ||
| /** | ||
| * Execute callback with message. | ||
| */ | ||
| executeCallback(level: LogLevel, message: string, containsPii: boolean): void; | ||
| /** | ||
| * Logs error messages. | ||
| */ | ||
| error(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs error messages with PII. | ||
| */ | ||
| errorPii(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs warning messages. | ||
| */ | ||
| warning(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs warning messages with PII. | ||
| */ | ||
| warningPii(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs info messages. | ||
| */ | ||
| info(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs info messages with PII. | ||
| */ | ||
| infoPii(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs verbose messages. | ||
| */ | ||
| verbose(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs verbose messages with PII. | ||
| */ | ||
| verbosePii(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs trace messages. | ||
| */ | ||
| trace(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs trace messages with PII. | ||
| */ | ||
| tracePii(message: string, correlationId: string): void; | ||
| /** | ||
| * Returns whether PII Logging is enabled or not. | ||
| */ | ||
| isPiiLoggingEnabled(): boolean; | ||
| } | ||
| //# sourceMappingURL=Logger.d.ts.map |
| {"version":3,"file":"Logger.d.ts","sourceRoot":"","sources":["../../src/logger/Logger.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,oBAAY,QAAQ;IAChB,KAAK,IAAA;IACL,OAAO,IAAA;IACP,IAAI,IAAA;IACJ,OAAO,IAAA;IACP,KAAK,IAAA;CACR;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,GAAG,IAAI,CAAC;CAClE;AAED;;GAEG;AACH,MAAM,WAAW,a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AE,MAAM,GAAG,IAAI;IAQxD;;OAEG;IACH,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQlD;;OAEG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQrD;;OAEG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQrD;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQxD;;OAEG;IACH,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQnD;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQtD;;OAEG;IACH,mBAAmB,IAAI,OAAO;CAGjC"} |
| import { NetworkResponse } from "./NetworkResponse.js"; | ||
| /** | ||
| * Options allowed by network request APIs. | ||
| */ | ||
| export type NetworkRequestOptions = { | ||
| headers?: Record<string, string>; | ||
| body?: string; | ||
| }; | ||
| /** | ||
| * Client network interface to send backend requests. | ||
| * @interface | ||
| */ | ||
| export interface INetworkModule { | ||
| /** | ||
| * Interface function for async network "GET" requests. Based on the Fetch standard: https://fetch.spec.whatwg.org/ | ||
| * @param url | ||
| * @param options - Headers and/or body to include on the request | ||
| * @param timeout | ||
| */ | ||
| sendGetRequestAsync<T>(url: string, options?: NetworkRequestOptions, timeout?: number): Promise<NetworkResponse<T>>; | ||
| /** | ||
| * Interface function for async network "POST" requests. Based on the Fetch standard: https://fetch.spec.whatwg.org/ | ||
| * @param url | ||
| * @param options - Headers and/or body to include on the request | ||
| */ | ||
| sendPostRequestAsync<T>(url: string, options?: NetworkRequestOptions): Promise<NetworkResponse<T>>; | ||
| } | ||
| export declare const StubbedNetworkModule: INetworkModule; | ||
| //# sourceMappingURL=INetworkModule.d.ts.map |
| {"version":3,"file":"INetworkModule.d.ts","sourceRoot":"","sources":["../../src/network/INetworkModule.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;;OAKG;IACH,mBAAmB,CAAC,CAAC,EACjB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,EAC/B,OAAO,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IAE/B;;;;OAIG;IACH,oBAAoB,CAAC,CAAC,EAClB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,GAChC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;CAClC;AAED,eAAO,MAAM,oBAAoB,EAAE,cAWlC,CAAC"} |
| export type NetworkResponse<T> = { | ||
| headers: Record<string, string>; | ||
| body: T; | ||
| status: number; | ||
| }; | ||
| //# sourceMappingURL=NetworkResponse.d.ts.map |
| {"version":3,"file":"NetworkResponse.d.ts","sourceRoot":"","sources":["../../src/network/NetworkResponse.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI;IAC7B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,CAAC,CAAC;IACR,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC"} |
| import { ShrOptions } from "../crypto/SignedHttpRequest.js"; | ||
| import { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| import { AuthenticationScheme } from "../utils/Constants.js"; | ||
| /** | ||
| * Type representing a unique request thumbprint. | ||
| */ | ||
| export type RequestThumbprint = { | ||
| clientId: string; | ||
| authority: string; | ||
| scopes: Array<string>; | ||
| homeAccountIdentifier?: string; | ||
| claims?: string; | ||
| authenticationScheme?: AuthenticationScheme; | ||
| resourceRequestMethod?: string; | ||
| resourceRequestUri?: string; | ||
| shrClaims?: string; | ||
| sshKid?: string; | ||
| shrOptions?: ShrOptions; | ||
| embeddedClientId?: string; | ||
| }; | ||
| export declare function getRequestThumbprint(clientId: string, request: BaseAuthRequest, homeAccountId?: string): RequestThumbprint; | ||
| //# sourceMappingURL=RequestThumbprint.d.ts.map |
| {"version":3,"file":"RequestThumbprint.d.ts","sourceRoot":"","sources":["../../src/network/RequestThumbprint.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,wBAAgB,oBAAoB,CAChC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,eAAe,EACxB,aAAa,CAAC,EAAE,MAAM,GACvB,iBAAiB,CAenB"} |
| import { NetworkResponse } from "./NetworkResponse.js"; | ||
| import { ServerAuthorizationTokenResponse } from "../response/ServerAuthorizationTokenResponse.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { RequestThumbprint } from "./RequestThumbprint.js"; | ||
| import { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| /** @internal */ | ||
| export declare class ThrottlingUtils { | ||
| /** | ||
| * Prepares a RequestThumbprint to be stored as a key. | ||
| * @param thumbprint | ||
| */ | ||
| static generateThrottlingStorageKey(thumbprint: RequestThumbprint): string; | ||
| /** | ||
| * Performs necessary throttling checks before a network request. | ||
| * @param cacheManager | ||
| * @param thumbprint | ||
| */ | ||
| static preProcess(cacheManager: CacheManager, thumbprint: RequestThumbprint, correlationId: string): void; | ||
| /** | ||
| * Performs necessary throttling checks after a network request. | ||
| * @param cacheManager | ||
| * @param thumbprint | ||
| * @param response | ||
| */ | ||
| static postProcess(cacheManager: CacheManager, thumbprint: RequestThumbprint, response: NetworkResponse<ServerAuthorizationTokenResponse>, correlationId: string): void; | ||
| /** | ||
| * Checks a NetworkResponse object's status codes against 429 or 5xx | ||
| * @param response | ||
| */ | ||
| static checkResponseStatus(response: NetworkResponse<ServerAuthorizationTokenResponse>): boolean; | ||
| /** | ||
| * Checks a NetworkResponse object's RetryAfter header | ||
| * @param response | ||
| */ | ||
| static checkResponseForRetryAfter(response: NetworkResponse<ServerAuthorizationTokenResponse>): boolean; | ||
| /** | ||
| * Calculates the Unix-time value for a throttle to expire given throttleTime in seconds. | ||
| * @param throttleTime | ||
| */ | ||
| static calculateThrottleTime(throttleTime: number): number; | ||
| static removeThrottle(cacheManager: CacheManager, clientId: string, request: BaseAuthRequest, homeAccountIdentifier?: string): void; | ||
| } | ||
| //# sourceMappingURL=ThrottlingUtils.d.ts.map |
| {"version":3,"file":"ThrottlingUtils.d.ts","sourceRoot":"","sources":["../../src/network/ThrottlingUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AAEnG,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAEH,iBAAiB,EACpB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,gBAAgB;AAChB,qBAAa,eAAe;IACxB;;;OAGG;IACH,MAAM,CAAC,4BAA4B,CAAC,UAAU,EAAE,iBAAiB,GAAG,MAAM;IAI1E;;;;OAIG;IACH,MAAM,CAAC,UAAU,CACb,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,iBAAiB,EAC7B,aAAa,EAAE,MAAM,GACtB,IAAI;IAiBP;;;;;OAKG;IACH,MAAM,CAAC,WAAW,CACd,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,iBAAiB,EAC7B,QAAQ,EAAE,eAAe,CAAC,gCAAgC,CAAC,EAC3D,aAAa,EAAE,MAAM,GACtB,IAAI;IAwBP;;;OAGG;IACH,MAAM,CAAC,mBAAmB,CACtB,QAAQ,EAAE,eAAe,CAAC,gCAAgC,CAAC,GAC5D,OAAO;IAOV;;;OAGG;IACH,MAAM,CAAC,0BAA0B,CAC7B,QAAQ,EAAE,eAAe,CAAC,gCAAgC,CAAC,GAC5D,OAAO;IAYV;;;OAGG;IACH,MAAM,CAAC,qBAAqB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;IAa1D,MAAM,CAAC,cAAc,CACjB,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,eAAe,EACxB,qBAAqB,CAAC,EAAE,MAAM,GAC/B,IAAI;CASV"} |
| export declare const name = "@azure/msal-common"; | ||
| export declare const version = "16.5.2"; | ||
| //# sourceMappingURL=packageMetadata.d.ts.map |
| {"version":3,"file":"packageMetadata.d.ts","sourceRoot":"","sources":["../src/packageMetadata.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI,uBAAuB,CAAC;AACzC,eAAO,MAAM,OAAO,WAAW,CAAC"} |
| import { CommonAuthorizationUrlRequest } from "../request/CommonAuthorizationUrlRequest.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { AuthOptions } from "../config/ClientConfiguration.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { Authority } from "../authority/Authority.js"; | ||
| import { AuthorizationCodePayload } from "../response/AuthorizationCodePayload.js"; | ||
| import { AuthorizeResponse } from "../response/AuthorizeResponse.js"; | ||
| /** | ||
| * Returns map of parameters that are applicable to all calls to /authorize whether using PKCE or EAR | ||
| * @param config | ||
| * @param request | ||
| * @param logger | ||
| * @param performanceClient | ||
| * @returns | ||
| */ | ||
| export declare function getStandardAuthorizeRequestParameters(authOptions: AuthOptions, request: CommonAuthorizationUrlRequest, logger: Logger, performanceClient?: IPerformanceClient): Map<string, string>; | ||
| /** | ||
| * Returns authorize endpoint with given request parameters in the query string | ||
| * @param authority | ||
| * @param requestParameters | ||
| * @returns | ||
| */ | ||
| export declare function getAuthorizeUrl(authority: Authority, requestParameters: Map<string, string>): string; | ||
| /** | ||
| * Handles the hash fragment response from public client code request. Returns a code response used by | ||
| * the client to exchange for a token in acquireToken. | ||
| * @param serverParams | ||
| * @param cachedState | ||
| */ | ||
| export declare function getAuthorizationCodePayload(serverParams: AuthorizeResponse, cachedState: string): AuthorizationCodePayload; | ||
| /** | ||
| * Function which validates server authorization code response. | ||
| * @param serverResponseHash | ||
| * @param requestState | ||
| */ | ||
| export declare function validateAuthorizationResponse(serverResponse: AuthorizeResponse, requestState: string): void; | ||
| //# sourceMappingURL=Authorize.d.ts.map |
| {"version":3,"file":"Authorize.d.ts","sourceRoot":"","sources":["../../src/protocol/Authorize.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAE5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEpF,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAG/D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAWrE;;;;;;;GAOG;AACH,wBAAgB,qCAAqC,CACjD,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,6BAA6B,EACtC,MAAM,EAAE,MAAM,EACd,iBAAiB,CAAC,EAAE,kBAAkB,GACvC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAiOrB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC3B,SAAS,EAAE,SAAS,EACpB,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACvC,MAAM,CAMR;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACvC,YAAY,EAAE,iBAAiB,EAC/B,WAAW,EAAE,MAAM,GACpB,wBAAwB,CAY1B;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CACzC,cAAc,EAAE,iBAAiB,EACjC,YAAY,EAAE,MAAM,GACrB,IAAI,CAuEN"} |
| import { CcsCredential } from "../account/CcsCredential.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| import { IPerformanceClient } from "../exports-browser-only.js"; | ||
| import { ServerAuthorizationTokenResponse } from "../response/ServerAuthorizationTokenResponse.js"; | ||
| import { RequestThumbprint } from "../network/RequestThumbprint.js"; | ||
| import { INetworkModule, NetworkRequestOptions } from "../network/INetworkModule.js"; | ||
| import { NetworkResponse } from "../network/NetworkResponse.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| /** | ||
| * Creates default headers for requests to token endpoint | ||
| */ | ||
| export declare function createTokenRequestHeaders(logger: Logger, preventCorsPreflight: boolean, ccsCred?: CcsCredential): Record<string, string>; | ||
| /** | ||
| * Creates query string for the /token request | ||
| * @param request | ||
| */ | ||
| export declare function createTokenQueryParameters(request: BaseAuthRequest, clientId: string, redirectUri: string, performanceClient: IPerformanceClient): string; | ||
| /** | ||
| * Http post to token endpoint | ||
| * @param tokenEndpoint | ||
| * @param queryString | ||
| * @param headers | ||
| * @param thumbprint | ||
| */ | ||
| export declare function executePostToTokenEndpoint(tokenEndpoint: string, queryString: string, headers: Record<string, string>, thumbprint: RequestThumbprint, correlationId: string, cacheManager: CacheManager, networkClient: INetworkModule, logger: Logger, performanceClient: IPerformanceClient, serverTelemetryManager: ServerTelemetryManager | null): Promise<NetworkResponse<ServerAuthorizationTokenResponse>>; | ||
| /** | ||
| * Wraps sendPostRequestAsync with necessary preflight and postflight logic | ||
| * @param thumbprint - Request thumbprint for throttling | ||
| * @param tokenEndpoint - Endpoint to make the POST to | ||
| * @param options - Body and Headers to include on the POST request | ||
| * @param correlationId - CorrelationId for telemetry | ||
| * @param cacheManager - Cache manager instance | ||
| * @param networkClient - Network module instance | ||
| * @param logger - Logger instance | ||
| * @param performanceClient - Performance client instance | ||
| */ | ||
| export declare function sendPostRequest<T extends ServerAuthorizationTokenResponse>(thumbprint: RequestThumbprint, tokenEndpoint: string, options: NetworkRequestOptions, correlationId: string, cacheManager: CacheManager, networkClient: INetworkModule, logger: Logger, performanceClient: IPerformanceClient): Promise<NetworkResponse<T>>; | ||
| //# sourceMappingURL=Token.d.ts.map |
| {"version":3,"file":"Token.d.ts","sourceRoot":"","sources":["../../src/protocol/Token.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAqB,MAAM,6BAA6B,CAAC;AAE/E,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAA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AM,EACrB,OAAO,EAAE,qBAAqB,EAC9B,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,cAAc,EAC7B,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,kBAAkB,GACtC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CA6D7B"} |
| /** | ||
| * This is a helper class that parses supported HTTP response authentication headers to extract and return | ||
| * header challenge values that can be used outside the basic authorization flows. | ||
| */ | ||
| export declare class AuthenticationHeaderParser { | ||
| private headers; | ||
| constructor(headers: Record<string, string>); | ||
| /** | ||
| * This method parses the SHR nonce value out of either the Authentication-Info or WWW-Authenticate authentication headers. | ||
| * @returns | ||
| */ | ||
| getShrNonce(): string; | ||
| /** | ||
| * Parses an HTTP header's challenge set into a key/value map. | ||
| * @param header | ||
| * @returns | ||
| */ | ||
| private parseChallenges; | ||
| } | ||
| //# sourceMappingURL=AuthenticationHeaderParser.d.ts.map |
| {"version":3,"file":"AuthenticationHeaderParser.d.ts","sourceRoot":"","sources":["../../src/request/AuthenticationHeaderParser.ts"],"names":[],"mappings":"AAmBA;;;GAGG;AACH,qBAAa,0BAA0B;IACnC,OAAO,CAAC,OAAO,CAAyB;gBAE5B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAI3C;;;OAGG;IACH,WAAW,IAAI,MAAM;IAqCrB;;;;OAIG;IACH,OAAO,CAAC,eAAe;CAa1B"} |
| import { AuthenticationScheme, HttpMethod } from "../utils/Constants.js"; | ||
| import type { AzureCloudOptions } from "../config/ClientConfiguration.js"; | ||
| import { StringDict } from "../utils/MsalTypes.js"; | ||
| import { StoreInCache } from "./StoreInCache.js"; | ||
| import { ShrOptions } from "../crypto/SignedHttpRequest.js"; | ||
| /** | ||
| * BaseAuthRequest | ||
| */ | ||
| export type BaseAuthRequest = { | ||
| /** | ||
| * URL of the authority, the security token service (STS) from which MSAL will acquire tokens. Defaults to https://login.microsoftonline.com/common. If using the same authority for all request, authority should set on client application object and not request, to avoid resolving authority endpoints multiple times. | ||
| */ | ||
| authority: string; | ||
| /** | ||
| * Unique GUID set per request to trace a request end-to-end for telemetry purposes. | ||
| */ | ||
| correlationId: string; | ||
| /** | ||
| * Array of scopes the application is requesting access to. | ||
| */ | ||
| scopes: Array<string>; | ||
| /** | ||
| * The type of token retrieved. Defaults to "Bearer". Can also be type "pop" or "SSH". | ||
| */ | ||
| authenticationScheme?: AuthenticationScheme; | ||
| /** | ||
| * A stringified claims request which will be added to all /authorize and /token calls | ||
| */ | ||
| claims?: string; | ||
| /** | ||
| * A stringified claims object which will be added to a Signed HTTP Request | ||
| */ | ||
| shrClaims?: string; | ||
| /** | ||
| * A server-generated timestamp that has been encrypted and base64URL encoded, which will be added to a Signed HTTP Request. | ||
| */ | ||
| shrNonce?: string; | ||
| /** | ||
| * An object containing options for the Signed HTTP Request | ||
| */ | ||
| shrOptions?: ShrOptions; | ||
| /** | ||
| * HTTP Request type used to request data from the resource (i.e. "GET", "POST", etc.). Used for proof-of-possession flows. | ||
| */ | ||
| resourceRequestMethod?: string; | ||
| /** | ||
| * URI that token will be used for. Used for proof-of-possession flows. | ||
| */ | ||
| resourceRequestUri?: string; | ||
| /** | ||
| * A stringified JSON Web Key representing a public key that can be signed by an SSH certificate. | ||
| */ | ||
| sshJwk?: string; | ||
| /** | ||
| * Key ID that uniquely identifies the SSH public key mentioned above. | ||
| */ | ||
| sshKid?: string; | ||
| /** | ||
| * Convenience string enums for users to provide public/sovereign cloud ids | ||
| */ | ||
| azureCloudOptions?: AzureCloudOptions; | ||
| /** | ||
| * Maximum allowed age, in milliseconds, of the user's authentication before a new sign-in is required. | ||
| */ | ||
| maxAge?: number; | ||
| /** | ||
| * Object containing boolean values indicating whether to store tokens in the cache or not (default is true) | ||
| */ | ||
| storeInCache?: StoreInCache; | ||
| /** | ||
| * Scenario id to track custom user prompts | ||
| */ | ||
| scenarioId?: string; | ||
| /** | ||
| * Key ID to identify the public key for PoP token request | ||
| */ | ||
| popKid?: string; | ||
| /** | ||
| * Embedded client id. When specified, broker client id (brk_client_id) and redirect uri (brk_redirect_uri) params are set with values from the config, overriding the corresponding extra parameters, if present. | ||
| */ | ||
| embeddedClientId?: string; | ||
| /** | ||
| * HTTP method to use for the /authorize request. Defaults to GET, but can be set to POST if the request requires body parameters. | ||
| */ | ||
| httpMethod?: HttpMethod; | ||
| /** | ||
| * Resource parameter to be sent with the request. Used for MCP flows. | ||
| */ | ||
| resource?: string; | ||
| /** | ||
| * When true and a brokered flow is in effect—i.e., when a broker client id (brk_client_id), typically derived from embeddedClientId or other broker parameters, is included in the request—clientCapabilities from configuration will be excluded from claims. Has no effect when brk_client_id is not present (non-brokered flows). | ||
| */ | ||
| skipBrokerClaims?: boolean; | ||
| /** | ||
| * String to string map of custom query parameters added to outgoing token service requests. Unless the parameter is only supported on query strings use extraParameters instead | ||
| */ | ||
| extraQueryParameters?: StringDict; | ||
| /** | ||
| * String to string map of custom parameters added to outgoing token service requests. | ||
| */ | ||
| extraParameters?: StringDict; | ||
| }; | ||
| /** | ||
| * Helper to enforce resource parameter presence in token requests when isMcp is set in the configuration. | ||
| * If resource parameter is set in both the request and in extraQueryParameters or extraParameters, an error will be thrown. | ||
| * This is used for MCP flows. | ||
| * @param isMcp - Flag indicating if application is an MCP app, from configuration | ||
| * @param request - Auth request | ||
| */ | ||
| export declare function enforceResourceParameter(isMcp: boolean, request: Partial<BaseAuthRequest>): void; | ||
| //# sourceMappingURL=BaseAuthRequest.d.ts.map |
| {"version":3,"file":"BaseAuthRequest.d.ts","sourceRoot":"","sources":["../../src/request/BaseAuthRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM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AAE,UAAU,CAAC;CAChC,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACpC,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,GAClC,IAAI,CAoBN"} |
| import { BaseAuthRequest } from "./BaseAuthRequest.js"; | ||
| import { CcsCredential } from "../account/CcsCredential.js"; | ||
| /** | ||
| * Request object passed by user to acquire a token from the server exchanging a valid authorization code (second leg of OAuth2.0 Authorization Code flow) | ||
| */ | ||
| export type CommonAuthorizationCodeRequest = BaseAuthRequest & { | ||
| /** | ||
| * The authorization_code that the user acquired in the first leg of the flow. | ||
| */ | ||
| code: string; | ||
| /** | ||
| * The redirect URI of your app, where the authority will redirect to after the user inputs credentials and consents. It must exactly match one of the redirect URIs you registered in the portal | ||
| */ | ||
| redirectUri: string; | ||
| /** | ||
| * The same code_verifier that was used to obtain the authorization_code. Required if PKCE was used in the authorization code grant request.For more information, see the PKCE RFC: https://tools.ietf.org/html/rfc7636 | ||
| */ | ||
| codeVerifier?: string; | ||
| /** | ||
| * Enables the acquisition of a SPA authorization code (confidential clients only). | ||
| */ | ||
| enableSpaAuthorizationCode?: boolean; | ||
| /** | ||
| * Encoded client_info returned with the authorization code, used to bind the token response to a specific account. | ||
| */ | ||
| clientInfo?: string; | ||
| /** | ||
| * Credential used to populate the CCS (Cache Credential Service) header. | ||
| */ | ||
| ccsCredential?: CcsCredential; | ||
| }; | ||
| //# sourceMappingURL=CommonAuthorizationCodeRequest.d.ts.map |
| {"version":3,"file":"CommonAuthorizationCodeRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonAuthorizationCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,eAAe,GAAG;IAC3D;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CACjC,CAAC"} |
| import { ResponseMode } from "../utils/Constants.js"; | ||
| import { BaseAuthRequest } from "./BaseAuthRequest.js"; | ||
| import { AccountInfo } from "../account/AccountInfo.js"; | ||
| /** | ||
| * Request object passed by user to retrieve a Code from the server (first leg of authorization code grant flow) | ||
| */ | ||
| export type CommonAuthorizationUrlRequest = BaseAuthRequest & { | ||
| /** | ||
| * 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. | ||
| */ | ||
| redirectUri: string; | ||
| /** | ||
| * Specifies the method that should be used to send the authentication result to your app. Can be query, form_post, or fragment. If no value is passed in, it defaults to query. | ||
| */ | ||
| responseMode: ResponseMode; | ||
| /** | ||
| * AccountInfo obtained from a getAccount API. Will be used in certain scenarios to generate login_hint if both loginHint and sid params are not provided. | ||
| */ | ||
| account?: AccountInfo; | ||
| /** | ||
| * JSON Web Key used when constructing Encrypted Authorize Response (EAR) parameters. | ||
| */ | ||
| earJwk?: string; | ||
| /** | ||
| * 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 | ||
| */ | ||
| codeChallenge?: string; | ||
| /** | ||
| * 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 | ||
| */ | ||
| codeChallengeMethod?: string; | ||
| /** | ||
| * 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. | ||
| */ | ||
| domainHint?: string; | ||
| /** | ||
| * Scopes for a different resource when the user needs consent upfront. | ||
| */ | ||
| extraScopesToConsent?: Array<string>; | ||
| /** | ||
| * 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. Can also be the string value extracted from the login_hint claim on an idToken obtained previously to provide SSO. | ||
| */ | ||
| loginHint?: string; | ||
| /** | ||
| * 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. | ||
| */ | ||
| nonce: string; | ||
| /** | ||
| * Indicates the type of user interaction that is required. | ||
| * login: will force the user to enter their credentials on that request, negating single-sign on | ||
| * 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 | ||
| * consent: will the trigger the OAuth consent dialog after the user signs in, asking the user to grant permissions to the app | ||
| * 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 | ||
| * create: will direct the user to the account creation experience instead of the log in experience | ||
| * no_session: will not read existing session token when authenticating the user. Upon user being successfully authenticated, EVO won’t create a new session for the user. FOR INTERNAL USE ONLY. | ||
| */ | ||
| prompt?: string; | ||
| /** | ||
| * Session ID, unique identifier for the session. Available as an optional claim on ID tokens. Use login_hint optional claim provided on loginHint paramter instead, when available. | ||
| */ | ||
| sid?: string; | ||
| /** | ||
| * 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. For security and privacy reasons, we do not recommend putting URLs or other sensitive data directly in the state parameter. Instead, use a key or identifier that corresponds to data stored in browser storage (e.g., localStorage, sessionStorage), allowing your app to securely reference the necessary data after authentication. | ||
| */ | ||
| state: string; | ||
| /** | ||
| * Indicates whether this authorization request is being initiated by a platform authentication broker instead of a standard web flow. | ||
| */ | ||
| platformBroker?: boolean; | ||
| }; | ||
| //# sourceMappingURL=CommonAuthorizationUrlRequest.d.ts.map |
| {"version":3,"file":"CommonAuthorizationUrlRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonAuthorizationUrlRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,eAAe,GAAG;IAC1D;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,YAAY,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,oBAAoB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC"} |
| import { AccountInfo } from "../account/AccountInfo.js"; | ||
| import { StringDict } from "../utils/MsalTypes.js"; | ||
| /** | ||
| * CommonEndSessionRequest | ||
| */ | ||
| export type CommonEndSessionRequest = { | ||
| /** | ||
| * Unique GUID set per request to trace a request end-to-end for telemetry purposes. | ||
| */ | ||
| correlationId: string; | ||
| /** | ||
| * Account object that will be logged out of. All tokens tied to this account will be cleared. | ||
| */ | ||
| account?: AccountInfo | null; | ||
| /** | ||
| * URI to navigate to after logout page. | ||
| */ | ||
| postLogoutRedirectUri?: string | null; | ||
| /** | ||
| * ID Token used by B2C to validate logout if required by the policy | ||
| */ | ||
| idTokenHint?: string; | ||
| /** | ||
| * A value included in the request to the logout endpoint which will be returned in the query string upon post logout redirection. For security and privacy reasons, we do not recommend putting URLs or other sensitive data directly in the state parameter. Instead, use a key or identifier that corresponds to data stored in browser storage (e.g., localStorage, sessionStorage), allowing your app to securely reference the necessary data after logout. | ||
| */ | ||
| state?: string; | ||
| /** | ||
| * A string that specifies the account that is being logged out in order to skip the server account picker on logout | ||
| */ | ||
| logoutHint?: string; | ||
| /** | ||
| * String to string map of custom query parameters added to the /authorize call | ||
| */ | ||
| extraQueryParameters?: StringDict; | ||
| }; | ||
| //# sourceMappingURL=CommonEndSessionRequest.d.ts.map |
| {"version":3,"file":"CommonEndSessionRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonEndSessionRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IAClC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,oBAAoB,CAAC,EAAE,UAAU,CAAC;CACrC,CAAC"} |
| import { BaseAuthRequest } from "./BaseAuthRequest.js"; | ||
| import { CcsCredential } from "../account/CcsCredential.js"; | ||
| /** | ||
| * CommonRefreshTokenRequest | ||
| */ | ||
| export type CommonRefreshTokenRequest = BaseAuthRequest & { | ||
| /** | ||
| * A refresh token returned from a previous request to the Identity provider. | ||
| */ | ||
| refreshToken: string; | ||
| /** | ||
| * Credential used to populate the CCS (Cache Credential Service) header. | ||
| */ | ||
| ccsCredential?: CcsCredential; | ||
| /** | ||
| * Force MSAL to cache a refresh token flow response when there is no account in the cache. Used for migration scenarios. | ||
| */ | ||
| forceCache?: boolean; | ||
| /** | ||
| * Redirect URI to send with the refresh token request. | ||
| */ | ||
| redirectUri?: string; | ||
| }; | ||
| //# sourceMappingURL=CommonRefreshTokenRequest.d.ts.map |
| {"version":3,"file":"CommonRefreshTokenRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonRefreshTokenRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,eAAe,GAAG;IACtD;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"} |
| import { AccountInfo } from "../account/AccountInfo.js"; | ||
| import { BaseAuthRequest } from "./BaseAuthRequest.js"; | ||
| /** | ||
| * SilentFlow parameters passed by the user to retrieve credentials silently | ||
| */ | ||
| export type CommonSilentFlowRequest = BaseAuthRequest & { | ||
| /** | ||
| * Account object to lookup the credentials | ||
| */ | ||
| account: AccountInfo; | ||
| /** | ||
| * Skip cache lookup and forces network call(s) to get fresh tokens | ||
| */ | ||
| forceRefresh: boolean; | ||
| /** | ||
| * RedirectUri registered on the app registration - only required in brokering scenarios | ||
| */ | ||
| redirectUri?: string; | ||
| /** | ||
| * If refresh token will expire within the configured value, consider it already expired. Used to pre-emptively invoke interaction when cached refresh token is close to expiry. | ||
| */ | ||
| refreshTokenExpirationOffsetSeconds?: number; | ||
| }; | ||
| //# sourceMappingURL=CommonSilentFlowRequest.d.ts.map |
| {"version":3,"file":"CommonSilentFlowRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonSilentFlowRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG;IACpD;;OAEG;IACH,OAAO,EAAE,WAAW,CAAC;IACrB;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,mCAAmC,CAAC,EAAE,MAAM,CAAC;CAChD,CAAC"} |
| import { StringDict } from "../utils/MsalTypes.js"; | ||
| export type NativeRequest = { | ||
| clientId: string; | ||
| authority: string; | ||
| correlationId: string; | ||
| redirectUri: string; | ||
| scopes: Array<string>; | ||
| claims?: string; | ||
| authenticationScheme?: string; | ||
| resourceRequestMethod?: string; | ||
| resourceRequestUri?: string; | ||
| shrNonce?: string; | ||
| accountId?: string; | ||
| forceRefresh?: boolean; | ||
| resource?: string; | ||
| extraParameters?: StringDict; | ||
| extraScopesToConsent?: Array<string>; | ||
| loginHint?: string; | ||
| prompt?: string; | ||
| }; | ||
| //# sourceMappingURL=NativeRequest.d.ts.map |
| {"version":3,"file":"NativeRequest.d.ts","sourceRoot":"","sources":["../../src/request/NativeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,MAAM,MAAM,aAAa,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,oBAAoB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"} |
| export type NativeSignOutRequest = { | ||
| clientId: string; | ||
| accountId: string; | ||
| correlationId: string; | ||
| }; | ||
| //# sourceMappingURL=NativeSignOutRequest.d.ts.map |
| {"version":3,"file":"NativeSignOutRequest.d.ts","sourceRoot":"","sources":["../../src/request/NativeSignOutRequest.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,oBAAoB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC"} |
| import * as Constants from "../utils/Constants.js"; | ||
| import { StringDict } from "../utils/MsalTypes.js"; | ||
| import { ApplicationTelemetry, LibraryInfo } from "../config/ClientConfiguration.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| import { ClientInfo } from "../account/ClientInfo.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| export declare function instrumentBrokerParams(parameters: Map<string, string>, correlationId?: string, performanceClient?: IPerformanceClient): void; | ||
| /** | ||
| * Add the given response_type | ||
| * @param parameters | ||
| * @param responseType | ||
| */ | ||
| export declare function addResponseType(parameters: Map<string, string>, responseType: Constants.OAuthResponseType): void; | ||
| /** | ||
| * add response_mode. defaults to query. | ||
| * @param responseMode | ||
| */ | ||
| export declare function addResponseMode(parameters: Map<string, string>, responseMode?: Constants.ResponseMode): void; | ||
| /** | ||
| * Add flag to indicate STS should attempt to use WAM if available | ||
| */ | ||
| export declare function addNativeBroker(parameters: Map<string, string>): void; | ||
| /** | ||
| * add scopes. set addOidcScopes to false to prevent default scopes in non-user scenarios | ||
| * @param scopeSet | ||
| * @param addOidcScopes | ||
| */ | ||
| export declare function addScopes(parameters: Map<string, string>, scopes: string[], addOidcScopes?: boolean, defaultScopes?: Array<string>): void; | ||
| /** | ||
| * add clientId | ||
| * @param clientId | ||
| */ | ||
| export declare function addClientId(parameters: Map<string, string>, clientId: string): void; | ||
| /** | ||
| * add redirect_uri | ||
| * @param redirectUri | ||
| */ | ||
| export declare function addRedirectUri(parameters: Map<string, string>, redirectUri: string): void; | ||
| /** | ||
| * add post logout redirectUri | ||
| * @param redirectUri | ||
| */ | ||
| export declare function addPostLogoutRedirectUri(parameters: Map<string, string>, redirectUri: string): void; | ||
| /** | ||
| * add id_token_hint to logout request | ||
| * @param idTokenHint | ||
| */ | ||
| export declare function addIdTokenHint(parameters: Map<string, string>, idTokenHint: string): void; | ||
| /** | ||
| * add domain_hint | ||
| * @param domainHint | ||
| */ | ||
| export declare function addDomainHint(parameters: Map<string, string>, domainHint: string): void; | ||
| /** | ||
| * add login_hint | ||
| * @param loginHint | ||
| */ | ||
| export declare function addLoginHint(parameters: Map<string, string>, loginHint: string): void; | ||
| /** | ||
| * Adds the CCS (Cache Credential Service) query parameter for login_hint | ||
| * @param loginHint | ||
| */ | ||
| export declare function addCcsUpn(parameters: Map<string, string>, loginHint: string): void; | ||
| /** | ||
| * Adds the CCS (Cache Credential Service) query parameter for account object | ||
| * @param loginHint | ||
| */ | ||
| export declare function addCcsOid(parameters: Map<string, string>, clientInfo: ClientInfo): void; | ||
| /** | ||
| * add sid | ||
| * @param sid | ||
| */ | ||
| export declare function addSid(parameters: Map<string, string>, sid: string): void; | ||
| /** | ||
| * Adds claims to request parameters, conditionally excluding clientCapabilities | ||
| * when skipBrokerClaims is true and a brokered flow is in effect. | ||
| * @param parameters - The request parameters map | ||
| * @param claims - The claims string from the request | ||
| * @param clientCapabilities - The client capabilities from configuration | ||
| * @param skipBrokerClaims - When true and BROKER_CLIENT_ID is present, excludes clientCapabilities from claims | ||
| */ | ||
| export declare function addClaims(parameters: Map<string, string>, claims?: string, clientCapabilities?: Array<string>, skipBrokerClaims?: boolean): void; | ||
| /** | ||
| * add correlationId | ||
| * @param correlationId | ||
| */ | ||
| export declare function addCorrelationId(parameters: Map<string, string>, correlationId: string): void; | ||
| /** | ||
| * add library info query params | ||
| * @param libraryInfo | ||
| */ | ||
| export declare function addLibraryInfo(parameters: Map<string, string>, libraryInfo: LibraryInfo): void; | ||
| /** | ||
| * Add client telemetry parameters | ||
| * @param appTelemetry | ||
| */ | ||
| export declare function addApplicationTelemetry(parameters: Map<string, string>, appTelemetry: ApplicationTelemetry): void; | ||
| /** | ||
| * add prompt | ||
| * @param prompt | ||
| */ | ||
| export declare function addPrompt(parameters: Map<string, string>, prompt: string): void; | ||
| /** | ||
| * add state | ||
| * @param state | ||
| */ | ||
| export declare function addState(parameters: Map<string, string>, state: string): void; | ||
| /** | ||
| * add nonce | ||
| * @param nonce | ||
| */ | ||
| export declare function addNonce(parameters: Map<string, string>, nonce: string): void; | ||
| /** | ||
| * add code_challenge and code_challenge_method | ||
| * - throw if either of them are not passed | ||
| * @param codeChallenge | ||
| * @param codeChallengeMethod | ||
| */ | ||
| export declare function addCodeChallengeParams(parameters: Map<string, string>, codeChallenge?: string, codeChallengeMethod?: string): void; | ||
| /** | ||
| * add the `authorization_code` passed by the user to exchange for a token | ||
| * @param code | ||
| */ | ||
| export declare function addAuthorizationCode(parameters: Map<string, string>, code: string): void; | ||
| /** | ||
| * add the `authorization_code` passed by the user to exchange for a token | ||
| * @param code | ||
| */ | ||
| export declare function addDeviceCode(parameters: Map<string, string>, code: string): void; | ||
| /** | ||
| * add the `refreshToken` passed by the user | ||
| * @param refreshToken | ||
| */ | ||
| export declare function addRefreshToken(parameters: Map<string, string>, refreshToken: string): void; | ||
| /** | ||
| * add the `code_verifier` passed by the user to exchange for a token | ||
| * @param codeVerifier | ||
| */ | ||
| export declare function addCodeVerifier(parameters: Map<string, string>, codeVerifier: string): void; | ||
| /** | ||
| * add client_secret | ||
| * @param clientSecret | ||
| */ | ||
| export declare function addClientSecret(parameters: Map<string, string>, clientSecret: string): void; | ||
| /** | ||
| * add clientAssertion for confidential client flows | ||
| * @param clientAssertion | ||
| */ | ||
| export declare function addClientAssertion(parameters: Map<string, string>, clientAssertion: string): void; | ||
| /** | ||
| * add clientAssertionType for confidential client flows | ||
| * @param clientAssertionType | ||
| */ | ||
| export declare function addClientAssertionType(parameters: Map<string, string>, clientAssertionType: string): void; | ||
| /** | ||
| * add OBO assertion for confidential client flows | ||
| * @param clientAssertion | ||
| */ | ||
| export declare function addOboAssertion(parameters: Map<string, string>, oboAssertion: string): void; | ||
| /** | ||
| * add grant type | ||
| * @param grantType | ||
| */ | ||
| export declare function addRequestTokenUse(parameters: Map<string, string>, tokenUse: string): void; | ||
| /** | ||
| * add grant type | ||
| * @param grantType | ||
| */ | ||
| export declare function addGrantType(parameters: Map<string, string>, grantType: string): void; | ||
| /** | ||
| * add client info | ||
| * | ||
| */ | ||
| export declare function addClientInfo(parameters: Map<string, string>): void; | ||
| /** | ||
| * add clidata=1 to request to indicate client data support | ||
| */ | ||
| export declare function addCliData(parameters: Map<string, string>): void; | ||
| export declare function addInstanceAware(parameters: Map<string, string>): void; | ||
| /** | ||
| * Add extraParameters | ||
| * @param extraParams - String dictionary containing extra parameters to be added. | ||
| */ | ||
| export declare function addExtraParameters(parameters: Map<string, string>, extraParams: StringDict): void; | ||
| export declare function addClientCapabilitiesToClaims(claims?: string, clientCapabilities?: Array<string>): string; | ||
| /** | ||
| * adds `username` for Password Grant flow | ||
| * @param username | ||
| */ | ||
| export declare function addUsername(parameters: Map<string, string>, username: string): void; | ||
| /** | ||
| * adds `password` for Password Grant flow | ||
| * @param password | ||
| */ | ||
| export declare function addPassword(parameters: Map<string, string>, password: string): void; | ||
| /** | ||
| * add pop_jwk to query params | ||
| * @param cnfString | ||
| */ | ||
| export declare function addPopToken(parameters: Map<string, string>, cnfString: string): void; | ||
| /** | ||
| * add SSH JWK and key ID to query params | ||
| */ | ||
| export declare function addSshJwk(parameters: Map<string, string>, sshJwkString: string): void; | ||
| /** | ||
| * add server telemetry fields | ||
| * @param serverTelemetryManager | ||
| */ | ||
| export declare function addServerTelemetry(parameters: Map<string, string>, serverTelemetryManager: ServerTelemetryManager): void; | ||
| /** | ||
| * Adds parameter that indicates to the server that throttling is supported | ||
| */ | ||
| export declare function addThrottling(parameters: Map<string, string>): void; | ||
| /** | ||
| * Adds logout_hint parameter for "silent" logout which prevent server account picker | ||
| */ | ||
| export declare function addLogoutHint(parameters: Map<string, string>, logoutHint: string): void; | ||
| export declare function addBrokerParameters(parameters: Map<string, string>, brokerClientId: string, brokerRedirectUri: string): void; | ||
| /** | ||
| * Add EAR (Encrypted Authorize Response) request parameters | ||
| * @param parameters | ||
| * @param jwk | ||
| */ | ||
| export declare function addEARParameters(parameters: Map<string, string>, jwk: string): void; | ||
| export declare function addResource(parameters: Map<string, string>, resource?: string): void; | ||
| //# sourceMappingURL=RequestParameterBuilder.d.ts.map |
| {"version":3,"file":"RequestParameterBuilder.d.ts","sourceRoot":"","sources":["../../src/request/RequestParameterBuilder.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAC;AAOnD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EACH,oBAAoB,EACpB,WAAW,EACd,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE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gB,CAC5B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,GAAG,EAAE,MAAM,GACZ,IAAI,CAMN;AAED,wBAAgB,WAAW,CACvB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,QAAQ,CAAC,EAAE,MAAM,GAClB,IAAI,CAIN"} |
| /** | ||
| * The ScopeSet class creates a set of scopes. Scopes are case-insensitive, unique values, so the Set object in JS makes | ||
| * the most sense to implement for this class. All scopes are trimmed and converted to lower case strings in intersection and union functions | ||
| * to ensure uniqueness of strings. | ||
| */ | ||
| export declare class ScopeSet { | ||
| private scopes; | ||
| constructor(inputScopes: Array<string>); | ||
| /** | ||
| * Factory method to create ScopeSet from space-delimited string | ||
| * @param inputScopeString | ||
| * @param appClientId | ||
| * @param scopesRequired | ||
| */ | ||
| static fromString(inputScopeString: string): ScopeSet; | ||
| /** | ||
| * Creates the set of scopes to search for in cache lookups | ||
| * @param inputScopeString | ||
| * @returns | ||
| */ | ||
| static createSearchScopes(inputScopeString: Array<string>): ScopeSet; | ||
| /** | ||
| * Check if a given scope is present in this set of scopes. | ||
| * @param scope | ||
| */ | ||
| containsScope(scope: string): boolean; | ||
| /** | ||
| * Check if a set of scopes is present in this set of scopes. | ||
| * @param scopeSet | ||
| */ | ||
| containsScopeSet(scopeSet: ScopeSet): boolean; | ||
| /** | ||
| * Check if set of scopes contains only the defaults | ||
| */ | ||
| containsOnlyOIDCScopes(): boolean; | ||
| /** | ||
| * Appends single scope if passed | ||
| * @param newScope | ||
| */ | ||
| appendScope(newScope: string): void; | ||
| /** | ||
| * Appends multiple scopes if passed | ||
| * @param newScopes | ||
| */ | ||
| appendScopes(newScopes: Array<string>): void; | ||
| /** | ||
| * Removes element from set of scopes. | ||
| * @param scope | ||
| */ | ||
| removeScope(scope: string): void; | ||
| /** | ||
| * Removes default scopes from set of scopes | ||
| * Primarily used to prevent cache misses if the default scopes are not returned from the server | ||
| */ | ||
| removeOIDCScopes(): void; | ||
| /** | ||
| * Combines an array of scopes with the current set of scopes. | ||
| * @param otherScopes | ||
| */ | ||
| unionScopeSets(otherScopes: ScopeSet): Set<string>; | ||
| /** | ||
| * Check if scopes intersect between this set and another. | ||
| * @param otherScopes | ||
| */ | ||
| intersectingScopeSets(otherScopes: ScopeSet): boolean; | ||
| /** | ||
| * Returns size of set of scopes. | ||
| */ | ||
| getScopeCount(): number; | ||
| /** | ||
| * Returns the scopes as an array of string values | ||
| */ | ||
| asArray(): Array<string>; | ||
| /** | ||
| * Prints scopes into a space-delimited string | ||
| */ | ||
| printScopes(): string; | ||
| /** | ||
| * Prints scopes into a space-delimited lower-case string (used for caching) | ||
| */ | ||
| printScopesLowerCase(): string; | ||
| } | ||
| //# sourceMappingURL=ScopeSet.d.ts.map |
| {"version":3,"file":"ScopeSet.d.ts","sourceRoot":"","sources":["../../src/request/ScopeSet.ts"],"names":[],"mappings":"AAoBA;;;;GAIG;AACH,qBAAa,QAAQ;IAEjB,OAAO,CAAC,MAAM,CAAc;gBAEhB,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC;IAoBtC;;;;;OAKG;IACH,MAAM,CAAC,UAAU,CAAC,gBAAgB,EAAE,MAAM,GAAG,QAAQ;IAMrD;;;;OAIG;IACH,MAAM,CAAC,kBAAkB,CAAC,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,QAAQ;IAiBpE;;;OAGG;IACH,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IASrC;;;OAGG;IACH,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO;IAW7C;;OAEG;IACH,sBAAsB,IAAI,OAAO;IAWjC;;;OAGG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAMnC;;;OAGG;IACH,YAAY,CAAC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI;IAU5C;;;OAGG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAShC;;;OAGG;IACH,gBAAgB,IAAI,IAAI;IAMxB;;;OAGG;IACH,cAAc,CAAC,WAAW,EAAE,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC;IAclD;;;OAGG;IACH,qBAAqB,CAAC,WAAW,EAAE,QAAQ,GAAG,OAAO;IAkBrD;;OAEG;IACH,aAAa,IAAI,MAAM;IAIvB;;OAEG;IACH,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC;IAMxB;;OAEG;IACH,WAAW,IAAI,MAAM;IAQrB;;OAEG;IACH,oBAAoB,IAAI,MAAM;CAGjC"} |
| /** | ||
| * Controls whether tokens should be stored in the cache or not. If set to false, tokens may still be acquired and returned but will not be cached for later retrieval. | ||
| */ | ||
| export type StoreInCache = { | ||
| accessToken?: boolean; | ||
| idToken?: boolean; | ||
| refreshToken?: boolean; | ||
| }; | ||
| //# sourceMappingURL=StoreInCache.d.ts.map |
| {"version":3,"file":"StoreInCache.d.ts","sourceRoot":"","sources":["../../src/request/StoreInCache.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IAEvB,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC"} |
| import { AccountInfo } from "../account/AccountInfo.js"; | ||
| /** | ||
| * Result returned from the authority's token endpoint. | ||
| * - uniqueId - `oid` or `sub` claim from ID token | ||
| * - tenantId - `tid` claim from ID token | ||
| * - scopes - Scopes that are validated for the respective token | ||
| * - account - An account object representation of the currently signed-in user | ||
| * - idToken - Id token received as part of the response | ||
| * - idTokenClaims - MSAL-relevant ID token claims | ||
| * - accessToken - Access token or SSH certificate received as part of the response | ||
| * - fromCache - Boolean denoting whether token came from cache | ||
| * - expiresOn - Javascript Date object representing relative expiration of access token | ||
| * - extExpiresOn - Javascript Date object representing extended relative expiration of access token in case of server outage | ||
| * - refreshOn - Javascript Date object representing relative time until an access token must be refreshed | ||
| * - state - Value passed in by user in request | ||
| * - familyId - Family ID identifier, usually only used for refresh tokens | ||
| * - requestId - Request ID returned as part of the response | ||
| */ | ||
| export type AuthenticationResult = { | ||
| authority: string; | ||
| uniqueId: string; | ||
| tenantId: string; | ||
| scopes: Array<string>; | ||
| account: AccountInfo | null; | ||
| idToken: string; | ||
| idTokenClaims: object; | ||
| accessToken: string; | ||
| fromCache: boolean; | ||
| expiresOn: Date | null; | ||
| extExpiresOn?: Date; | ||
| refreshOn?: Date; | ||
| tokenType: string; | ||
| correlationId: string; | ||
| requestId?: string; | ||
| state?: string; | ||
| familyId?: string; | ||
| cloudGraphHostName?: string; | ||
| msGraphHost?: string; | ||
| code?: string; | ||
| fromPlatformBroker?: boolean; | ||
| resource?: string; | ||
| }; | ||
| //# sourceMappingURL=AuthenticationResult.d.ts.map |
| {"version":3,"file":"AuthenticationResult.d.ts","sourceRoot":"","sources":["../../src/response/AuthenticationResult.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"} |
| /** | ||
| * Response returned after processing the code response query string or fragment. | ||
| */ | ||
| export type AuthorizationCodePayload = { | ||
| code: string; | ||
| cloud_instance_name?: string; | ||
| cloud_instance_host_name?: string; | ||
| cloud_graph_host_name?: string; | ||
| msgraph_host?: string; | ||
| state?: string; | ||
| nonce?: string; | ||
| client_info?: string; | ||
| }; | ||
| //# sourceMappingURL=AuthorizationCodePayload.d.ts.map |
| {"version":3,"file":"AuthorizationCodePayload.d.ts","sourceRoot":"","sources":["../../src/response/AuthorizationCodePayload.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"} |
| /** | ||
| * Response properties that may be returned by the /authorize endpoint | ||
| */ | ||
| export type AuthorizeResponse = { | ||
| /** | ||
| * Authorization Code to be exchanged for tokens | ||
| */ | ||
| code?: string; | ||
| /** | ||
| * Encrypted Authorize Response (EAR) JWE | ||
| */ | ||
| ear_jwe?: string; | ||
| /** | ||
| * Client info object containing UserId and TenantId | ||
| */ | ||
| client_info?: string; | ||
| /** | ||
| * State string, should match what was sent on request | ||
| */ | ||
| state?: string; | ||
| /** | ||
| * Cloud instance returned when application is instance aware | ||
| */ | ||
| cloud_instance_name?: string; | ||
| /** | ||
| * Cloud instance hostname returned when application is instance aware | ||
| */ | ||
| cloud_instance_host_name?: string; | ||
| /** | ||
| * AAD Graph hostname returned when application is instance aware | ||
| * https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-graph-api | ||
| */ | ||
| cloud_graph_host_name?: string; | ||
| /** | ||
| * Microsoft Graph hostname returned when application is instance aware | ||
| * https://docs.microsoft.com/en-us/graph/overview | ||
| */ | ||
| msgraph_host?: string; | ||
| /** | ||
| * Server error code | ||
| */ | ||
| error?: string; | ||
| /** | ||
| * Server error URI | ||
| */ | ||
| error_uri?: string; | ||
| /** | ||
| * Server error description | ||
| */ | ||
| error_description?: string; | ||
| /** | ||
| * Server Sub-Error | ||
| */ | ||
| suberror?: string; | ||
| /** | ||
| * Timestamp of request | ||
| */ | ||
| timestamp?: string; | ||
| /** | ||
| * Trace Id used to look up request in logs | ||
| */ | ||
| trace_id?: string; | ||
| /** | ||
| * Correlation ID use to look up request in logs | ||
| */ | ||
| correlation_id?: string; | ||
| /** | ||
| * Claims | ||
| */ | ||
| claims?: string; | ||
| /** | ||
| * AccountId for the user, returned when platform broker is available to use | ||
| */ | ||
| accountId?: string; | ||
| /** | ||
| * Client data returned by the server when clidata=1 is sent on the request. | ||
| * On the wire, this is sent as a URL-encoded string in the format: | ||
| * account_type|error|sub_error|cloud_instance|caller_data_boundary | ||
| * In this parsed AuthorizeResponse object, the value is already URL-decoded. | ||
| */ | ||
| clientdata?: string; | ||
| }; | ||
| //# sourceMappingURL=AuthorizeResponse.d.ts.map |
| {"version":3,"file":"AuthorizeResponse.d.ts","sourceRoot":"","sources":["../../src/response/AuthorizeResponse.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"} |
| /** | ||
| * DeviceCode returned by the security token service device code endpoint containing information necessary for device code flow. | ||
| * - userCode: code which user needs to provide when authenticating at the verification URI | ||
| * - deviceCode: code which should be included in the request for the access token | ||
| * - verificationUri: URI where user can authenticate | ||
| * - expiresIn: expiration time of the device code in seconds | ||
| * - interval: interval at which the STS should be polled at | ||
| * - message: message which should be displayed to the user | ||
| */ | ||
| export type DeviceCodeResponse = { | ||
| userCode: string; | ||
| deviceCode: string; | ||
| verificationUri: string; | ||
| expiresIn: number; | ||
| interval: number; | ||
| message: string; | ||
| }; | ||
| export type ServerDeviceCodeResponse = { | ||
| user_code: string; | ||
| device_code: string; | ||
| verification_uri: string; | ||
| expires_in: number; | ||
| interval: number; | ||
| message: string; | ||
| }; | ||
| //# sourceMappingURL=DeviceCodeResponse.d.ts.map |
| {"version":3,"file":"DeviceCodeResponse.d.ts","sourceRoot":"","sources":["../../src/response/DeviceCodeResponse.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC"} |
| import { ServerAuthorizationTokenResponse } from "./ServerAuthorizationTokenResponse.js"; | ||
| /** | ||
| * Response object used for loading external tokens to cache. | ||
| * - token_type: Indicates the token type value. The only type that Azure AD supports is Bearer. | ||
| * - scope: The scopes that the access_token is valid for. | ||
| * - expires_in: How long the access token is valid (in seconds). | ||
| * - id_token: A JSON Web Token (JWT). The app can decode the segments of this token to request information about the user who signed in. | ||
| * - refresh_token: An OAuth 2.0 refresh token. The app can use this token acquire additional access tokens after the current access token expires. | ||
| * - access_token: The requested access token. The app can use this token to authenticate to the secured resource, such as a web API. | ||
| * - client_info: Client info object | ||
| */ | ||
| export type ExternalTokenResponse = Pick<ServerAuthorizationTokenResponse, "token_type" | "scope" | "expires_in" | "ext_expires_in" | "id_token" | "refresh_token" | "refresh_token_expires_in" | "foci"> & { | ||
| access_token?: string; | ||
| client_info?: string; | ||
| }; | ||
| //# sourceMappingURL=ExternalTokenResponse.d.ts.map |
| {"version":3,"file":"ExternalTokenResponse.d.ts","sourceRoot":"","sources":["../../src/response/ExternalTokenResponse.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAEzF;;;;;;;;;GASG;AACH,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACpC,gCAAgC,EAC9B,YAAY,GACZ,OAAO,GACP,YAAY,GACZ,gBAAgB,GAChB,UAAU,GACV,eAAe,GACf,0BAA0B,GAC1B,MAAM,CACX,GAAG;IACA,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"} |
| export type IMDSBadResponse = { | ||
| error: string; | ||
| "newest-versions": Array<string>; | ||
| }; | ||
| //# sourceMappingURL=IMDSBadResponse.d.ts.map |
| {"version":3,"file":"IMDSBadResponse.d.ts","sourceRoot":"","sources":["../../src/response/IMDSBadResponse.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,eAAe,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACpC,CAAC"} |
| import { TokenClaims } from "../account/TokenClaims.js"; | ||
| import { Authority } from "../authority/Authority.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { AccountEntity } from "../cache/entities/AccountEntity.js"; | ||
| import { CacheRecord } from "../cache/entities/CacheRecord.js"; | ||
| import { ICachePlugin } from "../cache/interface/ICachePlugin.js"; | ||
| import { ISerializableTokenCache } from "../cache/interface/ISerializableTokenCache.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { RequestStateObject } from "../utils/StateTypes.js"; | ||
| import { AuthenticationResult } from "./AuthenticationResult.js"; | ||
| import { AuthorizationCodePayload } from "./AuthorizationCodePayload.js"; | ||
| import { ServerAuthorizationTokenResponse } from "./ServerAuthorizationTokenResponse.js"; | ||
| /** | ||
| * Class that handles response parsing. | ||
| * @internal | ||
| */ | ||
| export declare class ResponseHandler { | ||
| private clientId; | ||
| private cacheStorage; | ||
| private cryptoObj; | ||
| private logger; | ||
| private homeAccountIdentifier; | ||
| private performanceClient; | ||
| private serializableCache; | ||
| private persistencePlugin; | ||
| constructor(clientId: string, cacheStorage: CacheManager, cryptoObj: ICrypto, logger: Logger, performanceClient: IPerformanceClient, serializableCache: ISerializableTokenCache | null, persistencePlugin: ICachePlugin | null); | ||
| /** | ||
| * Function which validates server authorization token response. | ||
| * @param serverResponse | ||
| * @param correlationId | ||
| * @param refreshAccessToken | ||
| */ | ||
| validateTokenResponse(serverResponse: ServerAuthorizationTokenResponse, correlationId: string, refreshAccessToken?: boolean): void; | ||
| /** | ||
| * Returns a constructed token response based on given string. Also manages the cache updates and cleanups. | ||
| * @param serverTokenResponse | ||
| * @param authority | ||
| */ | ||
| handleServerTokenResponse(serverTokenResponse: ServerAuthorizationTokenResponse, authority: Authority, reqTimestamp: number, request: BaseAuthRequest, apiId: number, authCodePayload?: AuthorizationCodePayload, userAssertionHash?: string, handlingRefreshTokenResponse?: boolean, forceCacheRefreshTokenResponse?: boolean, serverRequestId?: string): Promise<AuthenticationResult>; | ||
| /** | ||
| * Generates CacheRecord | ||
| * @param serverTokenResponse | ||
| * @param idTokenObj | ||
| * @param authority | ||
| */ | ||
| private generateCacheRecord; | ||
| /** | ||
| * Creates an @AuthenticationResult from @CacheRecord , @IdToken , and a boolean that states whether or not the result is from cache. | ||
| * | ||
| * Optionally takes a state string that is set as-is in the response. | ||
| * | ||
| * @param cacheRecord | ||
| * @param idTokenObj | ||
| * @param fromTokenCache | ||
| * @param stateString | ||
| */ | ||
| static generateAuthenticationResult(cryptoObj: ICrypto, authority: Authority, cacheRecord: CacheRecord, fromTokenCache: boolean, request: BaseAuthRequest, performanceClient: IPerformanceClient, idTokenClaims?: TokenClaims, requestState?: RequestStateObject, serverTokenResponse?: ServerAuthorizationTokenResponse, requestId?: string): Promise<AuthenticationResult>; | ||
| } | ||
| export declare function buildAccountToCache(cacheStorage: CacheManager, authority: Authority, homeAccountId: string, base64Decode: (input: string) => string, correlationId: string, idTokenClaims?: TokenClaims, clientInfo?: string, environment?: string, claimsTenantId?: string | null, authCodePayload?: AuthorizationCodePayload, nativeAccountId?: string, logger?: Logger, performanceClient?: IPerformanceClient): AccountEntity; | ||
| //# sourceMappingURL=ResponseHandler.d.ts.map |
| {"version":3,"file":"ResponseHandler.d.ts","sourceRoot":"","sources":["../../src/response/ResponseHandler.ts"],"names":[],"mappings":"AAeA,OAAO,EACH,WAAW,EAEd,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAG/D,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AAIxF,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAW/C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAGpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,gCAAgC,EAAE,MA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,aAAa,CAAC,EAAE,WAAW,EAC3B,YAAY,CAAC,EAAE,kBAAkB,EACjC,mBAAmB,CAAC,EAAE,gCAAgC,EACtD,SAAS,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,oBAAoB,CAAC;CAqGnC;AAED,wBAAgB,mBAAmB,CAC/B,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,EACvC,aAAa,EAAE,MAAM,EACrB,aAAa,CAAC,EAAE,WAAW,EAC3B,UAAU,CAAC,EAAE,MAAM,EACnB,WAAW,CAAC,EAAE,MAAM,EACpB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,EAC9B,eAAe,CAAC,EAAE,wBAAwB,EAC1C,eAAe,CAAC,EAAE,MAAM,EACxB,MAAM,CAAC,EAAE,MAAM,EACf,iBAAiB,CAAC,EAAE,kBAAkB,GACvC,aAAa,CAmEf"} |
| import { AuthenticationScheme } from "../utils/Constants.js"; | ||
| /** | ||
| * Deserialized response object from server authorization code request. | ||
| * - token_type: Indicates the token type value. Can be either Bearer or pop. | ||
| * - scope: The scopes that the access_token is valid for. | ||
| * - expires_in: How long the access token is valid (in seconds). | ||
| * - refresh_in: Duration afer which a token should be renewed, regardless of expiration. | ||
| * - ext_expires_in: How long the access token is valid (in seconds) if the server isn't responding. | ||
| * - access_token: The requested access token. The app can use this token to authenticate to the secured resource, such as a web API. | ||
| * - refresh_token: An OAuth 2.0 refresh token. The app can use this token acquire additional access tokens after the current access token expires. | ||
| * - id_token: A JSON Web Token (JWT). The app can decode the segments of this token to request information about the user who signed in. | ||
| * - key_id: A string that uniquely identifies a public key that the request is bound to. | ||
| * | ||
| * In case of error: | ||
| * - error: An error code string that can be used to classify types of errors that occur, and can be used to react to errors. | ||
| * - error_description: A specific error message that can help a developer identify the root cause of an authentication error. | ||
| * - error_codes: A list of STS-specific error codes that can help in diagnostics. | ||
| * - timestamp: The time at which the error occurred. | ||
| * - trace_id: A unique identifier for the request that can help in diagnostics. | ||
| * - correlation_id: A unique identifier for the request that can help in diagnostics across components. | ||
| * - status: the network request's response status | ||
| */ | ||
| export type ServerAuthorizationTokenResponse = { | ||
| status?: number; | ||
| token_type?: AuthenticationScheme; | ||
| scope?: string; | ||
| expires_in?: number; | ||
| refresh_in?: number; | ||
| ext_expires_in?: number; | ||
| access_token?: string; | ||
| refresh_token?: string; | ||
| refresh_token_expires_in?: number; | ||
| id_token?: string; | ||
| client_info?: string; | ||
| foci?: string; | ||
| spa_code?: string; | ||
| spa_accountid?: string; | ||
| key_id?: string; | ||
| error?: string; | ||
| error_description?: string; | ||
| error_codes?: Array<string>; | ||
| suberror?: string; | ||
| timestamp?: string; | ||
| trace_id?: string; | ||
| correlation_id?: string; | ||
| claims?: string; | ||
| }; | ||
| //# sourceMappingURL=ServerAuthorizationTokenResponse.d.ts.map |
| {"version":3,"file":"ServerAuthorizationTokenResponse.d.ts","sourceRoot":"","sources":["../../src/response/ServerAuthorizationTokenResponse.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"} |
| import { PerformanceEvent } from "./PerformanceEvent.js"; | ||
| import { AccountInfo } from "../../account/AccountInfo.js"; | ||
| export type PerformanceCallbackFunction = (events: PerformanceEvent[]) => void; | ||
| export type InProgressPerformanceEvent = { | ||
| end: (event?: Partial<PerformanceEvent>, error?: unknown, account?: AccountInfo) => PerformanceEvent | null; | ||
| discard: () => void; | ||
| add: (fields: { | ||
| [key: string]: {} | undefined; | ||
| }) => void; | ||
| increment: (fields: { | ||
| [key: string]: number | undefined; | ||
| }) => void; | ||
| event: PerformanceEvent; | ||
| }; | ||
| export interface IPerformanceClient { | ||
| startMeasurement(measureName: string, correlationId?: string): InProgressPerformanceEvent; | ||
| endMeasurement(event: PerformanceEvent): PerformanceEvent | null; | ||
| discardMeasurements(correlationId: string): void; | ||
| addFields(fields: { | ||
| [key: string]: {} | undefined; | ||
| }, correlationId: string): void; | ||
| incrementFields(fields: { | ||
| [key: string]: number | undefined; | ||
| }, correlationId: string): void; | ||
| removePerformanceCallback(callbackId: string): boolean; | ||
| addPerformanceCallback(callback: PerformanceCallbackFunction): string; | ||
| emitEvents(events: PerformanceEvent[], correlationId: string): void; | ||
| generateId(): string; | ||
| } | ||
| //# sourceMappingURL=IPerformanceClient.d.ts.map |
| {"version":3,"file":"IPerformanceClient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AS,CAAA;KAAE,EAC7C,aAAa,EAAE,MAAM,GACtB,IAAI,CAAC;IACR,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;IACvD,sBAAsB,CAAC,QAAQ,EAAE,2BAA2B,GAAG,MAAM,CAAC;IACtE,UAAU,CAAC,MAAM,EAAE,gBAAgB,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IACpE,UAAU,IAAI,MAAM,CAAC;CACxB"} |
| export interface IPerformanceMeasurement { | ||
| startMeasurement(): void; | ||
| endMeasurement(): void; | ||
| flushMeasurement(): number | null; | ||
| } | ||
| //# sourceMappingURL=IPerformanceMeasurement.d.ts.map |
| {"version":3,"file":"IPerformanceMeasurement.d.ts","sourceRoot":"","sources":["../../../src/telemetry/performance/IPerformanceMeasurement.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,uBAAuB;IACpC,gBAAgB,IAAI,IAAI,CAAC;IACzB,cAAc,IAAI,IAAI,CAAC;IACvB,gBAAgB,IAAI,MAAM,GAAG,IAAI,CAAC;CACrC"} |
| import { ApplicationTelemetry } from "../../config/ClientConfiguration.js"; | ||
| import { Logger } from "../../logger/Logger.js"; | ||
| import { InProgressPerformanceEvent, IPerformanceClient, PerformanceCallbackFunction } from "./IPerformanceClient.js"; | ||
| import { PerformanceEvent, PerformanceEventContext, PerformanceEventStackedContext } from "./PerformanceEvent.js"; | ||
| import { AccountInfo } from "../../account/AccountInfo.js"; | ||
| /** | ||
| * Starts context by adding payload to the stack | ||
| * @param event {PerformanceEvent} | ||
| * @param stack {?PerformanceEventStackedContext[]} stack | ||
| */ | ||
| export declare function startContext(event: PerformanceEvent, stack?: PerformanceEventStackedContext[]): void; | ||
| /** | ||
| * Ends context by removing payload from the stack and returning parent or self, if stack is empty, payload | ||
| * | ||
| * @param event {PerformanceEvent} | ||
| * @param stack {?PerformanceEventStackedContext[]} stack | ||
| * @param error {?unknown} error | ||
| */ | ||
| export declare function endContext(event: PerformanceEvent, stack?: PerformanceEventStackedContext[], error?: unknown): PerformanceEventContext | undefined; | ||
| /** | ||
| * Adds error name and stack trace to the telemetry event | ||
| * @param error {Error} | ||
| * @param logger {Logger} | ||
| * @param event {PerformanceEvent} | ||
| * @param stackMaxSize {number} max error stack size to capture | ||
| */ | ||
| export declare function addError(error: unknown, logger: Logger, event: PerformanceEvent, stackMaxSize?: number): void; | ||
| /** | ||
| * Compacts error stack into array by fetching N first entries | ||
| * @param stack {string} error stack | ||
| * @param stackMaxSize {number} max error stack size to capture | ||
| * @returns {string[]} | ||
| */ | ||
| export declare function compactStack(stack: string, stackMaxSize: number): string[]; | ||
| /** | ||
| * Compacts error stack line by shortening file path | ||
| * Example: https://localhost/msal-common/src/authority/Authority.js:100:1 -> Authority.js:100:1 | ||
| * @param line {string} stack line | ||
| * @returns {string} | ||
| */ | ||
| export declare function compactStackLine(line: string): string; | ||
| export declare function getAccountType(account?: AccountInfo): "AAD" | "MSA" | "B2C" | undefined; | ||
| export declare abstract class PerformanceClient implements IPerformanceClient { | ||
| protected authority: string; | ||
| protected libraryName: string; | ||
| protected libraryVersion: string; | ||
| protected applicationTelemetry: ApplicationTelemetry; | ||
| protected clientId: string; | ||
| protected logger: Logger; | ||
| protected callbacks: Map<string, PerformanceCallbackFunction>; | ||
| /** | ||
| * Multiple events with the same correlation id. | ||
| * @protected | ||
| * @type {Map<string, PerformanceEvent>} | ||
| */ | ||
| protected eventsByCorrelationId: Map<string, PerformanceEvent>; | ||
| protected intFields: Set<string>; | ||
| /** | ||
| * Map of stacked events by correlation id. | ||
| * | ||
| * @protected | ||
| */ | ||
| protected eventStack: Map<string, PerformanceEventStackedContext[]>; | ||
| /** | ||
| * Creates an instance of PerformanceClient, | ||
| * an abstract class containing core performance telemetry logic. | ||
| * | ||
| * @constructor | ||
| * @param {string} clientId Client ID of the application | ||
| * @param {string} authority Authority used by the application | ||
| * @param {Logger} logger Logger used by the application | ||
| * @param {string} libraryName Name of the library | ||
| * @param {string} libraryVersion Version of the library | ||
| * @param {ApplicationTelemetry} applicationTelemetry application name and version | ||
| * @param {Set<String>} intFields integer fields to be truncated | ||
| */ | ||
| constructor(clientId: string, authority: string, logger: Logger, libraryName: string, libraryVersion: string, applicationTelemetry: ApplicationTelemetry, intFields?: Set<string>); | ||
| /** | ||
| * Generates and returns a unique id, typically a guid. | ||
| * | ||
| * @abstract | ||
| * @returns {string} | ||
| */ | ||
| abstract generateId(): string; | ||
| /** | ||
| * Starts measuring performance for a given operation. Returns a function that should be used to end the measurement. | ||
| * | ||
| * @param {PerformanceEvents} measureName | ||
| * @param {?string} [correlationId] | ||
| * @returns {InProgressPerformanceEvent} | ||
| */ | ||
| startMeasurement(measureName: string, correlationId?: string): InProgressPerformanceEvent; | ||
| /** | ||
| * Stops measuring the performance for an operation. Should only be called directly by PerformanceClient classes, | ||
| * as consumers should instead use the function returned by startMeasurement. | ||
| * Adds a new field named as "[event name]DurationMs" for sub-measurements, completes and emits an event | ||
| * otherwise. | ||
| * | ||
| * @param {PerformanceEvent} event | ||
| * @param {unknown} error | ||
| * @param {AccountInfo?} account | ||
| * @returns {(PerformanceEvent | null)} | ||
| */ | ||
| endMeasurement(event: PerformanceEvent, error?: unknown, account?: AccountInfo): PerformanceEvent | null; | ||
| /** | ||
| * Saves extra information to be emitted when the measurements are flushed | ||
| * @param fields | ||
| * @param correlationId | ||
| */ | ||
| addFields(fields: { | ||
| [key: string]: {} | undefined; | ||
| }, correlationId: string): void; | ||
| /** | ||
| * Increment counters to be emitted when the measurements are flushed | ||
| * @param fields {string[]} | ||
| * @param correlationId {string} correlation identifier | ||
| */ | ||
| incrementFields(fields: { | ||
| [key: string]: number | undefined; | ||
| }, correlationId: string): void; | ||
| /** | ||
| * Upserts event into event cache. | ||
| * First key is the correlation id, second key is the event id. | ||
| * Allows for events to be grouped by correlation id, | ||
| * and to easily allow for properties on them to be updated. | ||
| * | ||
| * @private | ||
| * @param {PerformanceEvent} event | ||
| */ | ||
| protected cacheEventByCorrelationId(event: PerformanceEvent): void; | ||
| /** | ||
| * Removes measurements and aux data for a given correlation id. | ||
| * | ||
| * @param {string} correlationId | ||
| */ | ||
| discardMeasurements(correlationId: string): void; | ||
| /** | ||
| * Registers a callback function to receive performance events. | ||
| * | ||
| * @param {PerformanceCallbackFunction} callback | ||
| * @returns {string} | ||
| */ | ||
| addPerformanceCallback(callback: PerformanceCallbackFunction): string; | ||
| /** | ||
| * Removes a callback registered with addPerformanceCallback. | ||
| * | ||
| * @param {string} callbackId | ||
| * @returns {boolean} | ||
| */ | ||
| removePerformanceCallback(callbackId: string): boolean; | ||
| /** | ||
| * Emits events to all registered callbacks. | ||
| * | ||
| * @param {PerformanceEvent[]} events | ||
| * @param {?string} [correlationId] | ||
| */ | ||
| emitEvents(events: PerformanceEvent[], correlationId: string): void; | ||
| /** | ||
| * Enforce truncation of integral fields in performance event. | ||
| * @param {PerformanceEvent} event performance event to update. | ||
| */ | ||
| private truncateIntegralFields; | ||
| /** | ||
| * Returns event duration in milliseconds | ||
| * @param startTimeMs {number} | ||
| * @returns {number} | ||
| */ | ||
| private getDurationMs; | ||
| } | ||
| //# sourceMappingURL=PerformanceClient.d.ts.map |
| {"version":3,"file":"PerformanceClient.d.ts","sourceRoot":"","sources":["../../../src/telemetry/performance/PerformanceClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAA4B,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EACH,0BAA0B,EAC1B,kBAAkB,EAClB,2BAA2B,EAC9B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGH,gBAAgB,EAChB,uBAAuB,EACvB,8BAA8B,EAEjC,MAAM,uBAAuB,CAAC;AAK/B,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D;;;;GAIG;AACH,wBAAgB,YAAY,CACxB,KAAK,EAAE,gBAAgB,EACvB,KAAK,CAAC,EAAE,8BAA8B,EA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AG,IAAI;IAiBnE;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAU9B;;;;OAIG;IACH,OAAO,CAAC,aAAa;CAKxB"} |
| import { DataBoundary } from "../../account/AccountInfo.js"; | ||
| /** | ||
| * State of the performance event. | ||
| * | ||
| * @export | ||
| * @enum {number} | ||
| */ | ||
| export declare const PerformanceEventStatus: { | ||
| readonly NotStarted: 0; | ||
| readonly InProgress: 1; | ||
| readonly Completed: 2; | ||
| }; | ||
| export type PerformanceEventStatus = (typeof PerformanceEventStatus)[keyof typeof PerformanceEventStatus]; | ||
| export type SubMeasurement = { | ||
| name: string; | ||
| startTimeMs: number; | ||
| }; | ||
| /** | ||
| * Performance measurement taken by the library, including metadata about the request and application. | ||
| * | ||
| * @export | ||
| * @typedef {PerformanceEvent} | ||
| */ | ||
| export type PerformanceEvent = { | ||
| /** | ||
| * Unique id for the event | ||
| * | ||
| * @type {string} | ||
| */ | ||
| eventId: string; | ||
| /** | ||
| * State of the perforance measure. | ||
| * | ||
| * @type {PerformanceEventStatus} | ||
| */ | ||
| status: PerformanceEventStatus; | ||
| /** | ||
| * Login authority used for the request | ||
| * | ||
| * @type {string} | ||
| */ | ||
| authority: string; | ||
| /** | ||
| * Client id for the application | ||
| * | ||
| * @type {string} | ||
| */ | ||
| clientId: string; | ||
| /** | ||
| * Correlation ID used for the request | ||
| * | ||
| * @type {string} | ||
| */ | ||
| correlationId: string; | ||
| /** | ||
| * End-to-end duration in milliseconds. | ||
| * @date 3/22/2022 - 3:40:05 PM | ||
| * | ||
| * @type {number} | ||
| */ | ||
| durationMs?: number; | ||
| /** | ||
| * Visibility of the page when the event completed. | ||
| * Read from: https://developer.mozilla.org/docs/Web/API/Page_Visibility_API | ||
| * | ||
| * @type {?(string | null)} | ||
| */ | ||
| endPageVisibility?: string | null; | ||
| /** | ||
| * Whether the result was retrieved from the cache. | ||
| * | ||
| * @type {(boolean | null)} | ||
| */ | ||
| fromCache?: boolean | null; | ||
| /** | ||
| * Event name (usually in the form of classNameFunctionName) | ||
| * | ||
| * @type {string} | ||
| */ | ||
| name: string; | ||
| /** | ||
| * Visibility of the page when the event completed. | ||
| * Read from: https://developer.mozilla.org/docs/Web/API/Page_Visibility_API | ||
| * | ||
| * @type {?(string | null)} | ||
| */ | ||
| startPageVisibility?: string | null; | ||
| /** | ||
| * Online status when the event started. | ||
| * Read from: https://developer.mozilla.org/docs/Web/API/NavigatorOnLine/onLine | ||
| */ | ||
| startOnlineStatus?: boolean | null; | ||
| /** | ||
| * Unix millisecond timestamp when the event was initiated. | ||
| * | ||
| * @type {number} | ||
| */ | ||
| startTimeMs: number; | ||
| /** | ||
| * Whether or the operation completed successfully. | ||
| * | ||
| * @type {(boolean | null)} | ||
| */ | ||
| success?: boolean | null; | ||
| /** | ||
| * Add specific error code in case of failure | ||
| * | ||
| * @type {string} | ||
| */ | ||
| errorCode?: string; | ||
| /** | ||
| * Add specific sub error code in case of failure | ||
| * | ||
| * @type {string} | ||
| */ | ||
| subErrorCode?: string; | ||
| /** | ||
| * Server error number | ||
| */ | ||
| serverErrorNo?: string; | ||
| /** | ||
| * Server sub error number | ||
| */ | ||
| serverSubErrorNo?: string; | ||
| /** | ||
| * Name of the library used for the operation. | ||
| * | ||
| * @type {string} | ||
| */ | ||
| libraryName: string; | ||
| /** | ||
| * Version of the library used for the operation. | ||
| * | ||
| * @type {string} | ||
| */ | ||
| libraryVersion: string; | ||
| /** | ||
| * Version of the library used last. Used to track upgrades and downgrades | ||
| */ | ||
| previousLibraryVersion?: string; | ||
| /** | ||
| * Whether the response is from a native component (e.g., WAM) | ||
| * | ||
| * @type {?boolean} | ||
| */ | ||
| isNativeBroker?: boolean; | ||
| /** | ||
| * Platform-specific fields, when calling STS and/or broker for token requests | ||
| */ | ||
| isPlatformAuthorizeRequest?: boolean; | ||
| isPlatformBrokerRequest?: boolean; | ||
| brokerErrorName?: string; | ||
| brokerErrorCode?: string; | ||
| /** | ||
| * Request ID returned from the response | ||
| * | ||
| * @type {?string} | ||
| */ | ||
| requestId?: string; | ||
| /** | ||
| * Cache lookup policy | ||
| * | ||
| * @type {?number} | ||
| */ | ||
| cacheLookupPolicy?: number | undefined; | ||
| /** | ||
| * Cache Outcome | ||
| * @type {?number} | ||
| */ | ||
| cacheOutcome?: number; | ||
| /** | ||
| * Sub-measurements for internal use. To be deleted before flushing. | ||
| */ | ||
| incompleteSubMeasurements?: Map<string, SubMeasurement>; | ||
| visibilityChangeCount?: number; | ||
| onlineStatusChangeCount?: number; | ||
| incompleteSubsCount?: number; | ||
| /** | ||
| * Network connection info from the Network Information API (Chromium only). | ||
| * Read from: https://developer.mozilla.org/docs/Web/API/NetworkInformation | ||
| */ | ||
| networkEffectiveType?: string; | ||
| networkRtt?: number; | ||
| /** | ||
| * CorrelationId of the in progress iframe request that was awaited | ||
| */ | ||
| awaitIframeCorrelationId?: string; | ||
| /** | ||
| * Monitor_window_timeout debugging telemetry | ||
| */ | ||
| redirectBridgeTimeoutMs?: number; | ||
| isRedirectUriCrossOrigin?: boolean; | ||
| redirectBridgeMessageVersion?: number; | ||
| lateResponseExperimentEnabled?: boolean; | ||
| /** | ||
| * Size of the id token | ||
| * | ||
| * @type {number} | ||
| */ | ||
| idTokenSize?: number; | ||
| /** | ||
| * | ||
| * Size of the access token | ||
| * | ||
| * @type {number} | ||
| */ | ||
| accessTokenSize?: number; | ||
| /** | ||
| * | ||
| * Size of the refresh token | ||
| * | ||
| * @type {number} | ||
| */ | ||
| refreshTokenSize?: number | undefined; | ||
| /** | ||
| * Application name as specified by the app. | ||
| * | ||
| * @type {?string} | ||
| */ | ||
| appName?: string; | ||
| /** | ||
| * Application version as specified by the app. | ||
| * | ||
| * @type {?string} | ||
| */ | ||
| appVersion?: string; | ||
| /** | ||
| * The following are fields that may be emitted in native broker scenarios | ||
| */ | ||
| extensionId?: string; | ||
| extensionVersion?: string; | ||
| matsBrokerVersion?: string; | ||
| matsAccountJoinOnStart?: string; | ||
| matsAccountJoinOnEnd?: string; | ||
| matsDeviceJoin?: string; | ||
| matsPromptBehavior?: string; | ||
| matsApiErrorCode?: number; | ||
| matsUiVisible?: boolean; | ||
| matsSilentCode?: number; | ||
| matsSilentBiSubCode?: number; | ||
| matsSilentMessage?: string; | ||
| matsSilentStatus?: number; | ||
| matsHttpStatus?: number; | ||
| matsHttpEventCount?: number; | ||
| /** | ||
| * Http POST metadata | ||
| */ | ||
| httpVerToken?: string; | ||
| httpStatus?: number; | ||
| contentTypeHeader?: string; | ||
| contentLengthHeader?: string; | ||
| /** | ||
| * Platform broker fields | ||
| */ | ||
| allowPlatformBroker?: boolean; | ||
| extensionInstalled?: boolean; | ||
| extensionHandshakeTimeoutMs?: number; | ||
| extensionHandshakeTimedOut?: boolean; | ||
| /** | ||
| * Nested App Auth Fields | ||
| */ | ||
| nestedAppAuthRequest?: boolean; | ||
| /** | ||
| * Multiple matched access/id/refresh tokens in the cache | ||
| */ | ||
| multiMatchedAT?: number; | ||
| multiMatchedID?: number; | ||
| multiMatchedRT?: number; | ||
| errorName?: string; | ||
| errorStack?: string[]; | ||
| context?: string; | ||
| cacheLocation?: string; | ||
| cacheRetentionDays?: number; | ||
| accountCachedBy?: string; | ||
| acntLoggedOut?: boolean; | ||
| cacheMatchedAccounts?: number; | ||
| cacheRtCount?: number; | ||
| cacheIdCount?: number; | ||
| cacheAtCount?: number; | ||
| scenarioId?: string; | ||
| accountType?: "AAD" | "MSA" | "B2C"; | ||
| /** | ||
| * Server error that triggers a request retry | ||
| * | ||
| * @type {string} | ||
| */ | ||
| retryError?: string; | ||
| embeddedClientId?: string; | ||
| embeddedRedirectUri?: string; | ||
| isAsyncPopup?: boolean; | ||
| cacheRtExpiresOnSeconds?: number; | ||
| ntwkRtExpiresOnSeconds?: number; | ||
| extRtExpiresOnSeconds?: number; | ||
| rtOffsetSeconds?: number; | ||
| sidFromClaim?: boolean; | ||
| sidFromClaims?: boolean; | ||
| sidFromRequest?: boolean; | ||
| loginHintFromRequest?: boolean; | ||
| loginHintFromUpn?: boolean; | ||
| loginHintFromClaim?: boolean; | ||
| domainHintFromRequest?: boolean; | ||
| prompt?: string; | ||
| usePreGeneratedPkce?: boolean; | ||
| msalInstanceCount?: number; | ||
| sameClientIdInstanceCount?: number; | ||
| navigateCallbackResult?: boolean; | ||
| dataBoundary?: DataBoundary; | ||
| logs?: string; | ||
| isMcp?: boolean; | ||
| /** | ||
| * Source of cloud discovery metadata (config, cache, network, hardcoded_values) | ||
| */ | ||
| cloudDiscoverySource?: string; | ||
| /** | ||
| * Source of authority endpoint metadata (config, cache, network, hardcoded_values) | ||
| */ | ||
| authorityEndpointSource?: string; | ||
| /** | ||
| * Number of accounts removed during cache cleanup | ||
| */ | ||
| accountsRemoved?: number; | ||
| /** | ||
| * Number of access tokens removed during cache cleanup | ||
| */ | ||
| accessTokensRemoved?: number; | ||
| /** | ||
| * Number of failures when removing token binding keys | ||
| */ | ||
| removeTokenBindingKeyFailure?: number; | ||
| /** | ||
| * Reason for silent refresh fallback to iframe | ||
| * Format: errorCode or errorCode|subError | ||
| * | ||
| * @type {?string} | ||
| */ | ||
| silentRefreshReason?: string; | ||
| /** | ||
| * Whether this request was deduped with another in-flight request | ||
| */ | ||
| deduped?: boolean; | ||
| /** | ||
| * Whether the user has "Keep Me Signed In" enabled | ||
| */ | ||
| kmsi?: boolean; | ||
| /** | ||
| * Cached SSO capability status from the most recent SSO verification | ||
| */ | ||
| ssoCapable?: boolean; | ||
| /** | ||
| * Whether this event was executed in the background | ||
| */ | ||
| isBackground?: boolean; | ||
| /** | ||
| * Cache migration telemetry — pre-migration counts | ||
| */ | ||
| preMigrateAcntCount?: number; | ||
| preMigrateATCount?: number; | ||
| preMigrateITCount?: number; | ||
| preMigrateRTCount?: number; | ||
| /** | ||
| * Cache migration telemetry — post-migration counts | ||
| */ | ||
| postMigrateAcntCount?: number; | ||
| postMigrateATCount?: number; | ||
| postMigrateITCount?: number; | ||
| postMigrateRTCount?: number; | ||
| /** | ||
| * Cache migration telemetry — old schema counts | ||
| */ | ||
| oldAcntCount?: number; | ||
| oldATCount?: number; | ||
| oldITCount?: number; | ||
| oldRTCount?: number; | ||
| /** | ||
| * Cache migration telemetry — skipped and migrated counts | ||
| */ | ||
| skipATMigrateCount?: number; | ||
| skipITMigrateCount?: number; | ||
| skipRTMigrateCount?: number; | ||
| migratedATCount?: number; | ||
| migratedITCount?: number; | ||
| migratedRTCount?: number; | ||
| /** | ||
| * Cache telemetry — expired, invalid, and removed counts | ||
| */ | ||
| expiredCacheRemovedCount?: number; | ||
| expiredAcntRemovedCount?: number; | ||
| invalidCacheCount?: number; | ||
| /** | ||
| * Encrypted cache telemetry | ||
| */ | ||
| unencryptedCacheCount?: number; | ||
| encryptedCacheCount?: number; | ||
| encryptedCacheExpiredCount?: number; | ||
| encryptedCacheCorruptionCount?: number; | ||
| /** | ||
| * Container for dynamically-named telemetry fields. | ||
| * Fields whose names are constructed at runtime (e.g., "[eventName]CallCount") | ||
| * should be stored here instead of being set as top-level properties. | ||
| * Use the "ext." prefix when calling addFields/incrementFields to automatically | ||
| * route fields to this sub-object. | ||
| * | ||
| * @remarks | ||
| * This property is typed as `Record<string, string | number>`. | ||
| */ | ||
| ext?: Record<string, string | number>; | ||
| }; | ||
| export type PerformanceEventContext = { | ||
| dur?: number; | ||
| err?: string; | ||
| subErr?: string; | ||
| fail?: number; | ||
| }; | ||
| export type PerformanceEventStackedContext = PerformanceEventContext & { | ||
| name?: string; | ||
| childErr?: string; | ||
| }; | ||
| /** | ||
| * Prefix used to mark telemetry field names as dynamic. | ||
| * Fields with this prefix in addFields/incrementFields calls will be routed | ||
| * to the PerformanceEvent.ext sub-object. | ||
| */ | ||
| export declare const EXT_FIELD_PREFIX = "ext."; | ||
| export declare const IntFields: ReadonlySet<string>; | ||
| //# sourceMappingURL=PerformanceEvent.d.ts.map |
| {"version":3,"file":"PerformanceEvent.d.ts","sourceRoot":"","sources":["../../../src/telemetry/performance/PerformanceEvent.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAA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AAC,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,6BAA6B,CAAC,EAAE,MAAM,CAAC;IAEvC;;;;;;;;;OASG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IAClC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,uBAAuB,GAAG;IACnE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,SAAS,CAAC;AAEvC,eAAO,MAAM,SAAS,EAAE,WAAW,CAAC,MAAM,CA4BxC,CAAC"} |
| /** | ||
| * Time spent sending/waiting for the response of a request to the token endpoint | ||
| */ | ||
| export declare const NetworkClientSendPostRequestAsync = "networkClientSendPostRequestAsync"; | ||
| export declare const RefreshTokenClientExecutePostToTokenEndpoint = "refreshTokenClientExecutePostToTokenEndpoint"; | ||
| export declare const AuthorizationCodeClientExecutePostToTokenEndpoint = "authorizationCodeClientExecutePostToTokenEndpoint"; | ||
| /** | ||
| * Time spent on the network for refresh token acquisition | ||
| */ | ||
| export declare const RefreshTokenClientExecuteTokenRequest = "refreshTokenClientExecuteTokenRequest"; | ||
| /** | ||
| * Time taken for acquiring refresh token , records RT size | ||
| */ | ||
| export declare const RefreshTokenClientAcquireToken = "refreshTokenClientAcquireToken"; | ||
| /** | ||
| * Time taken for acquiring cached refresh token | ||
| */ | ||
| export declare const RefreshTokenClientAcquireTokenWithCachedRefreshToken = "refreshTokenClientAcquireTokenWithCachedRefreshToken"; | ||
| /** | ||
| * Helper function to create token request body in RefreshTokenClient (msal-common). | ||
| */ | ||
| export declare const RefreshTokenClientCreateTokenRequestBody = "refreshTokenClientCreateTokenRequestBody"; | ||
| export declare const SilentFlowClientGenerateResultFromCacheRecord = "silentFlowClientGenerateResultFromCacheRecord"; | ||
| /** | ||
| * getAuthCodeUrl API (msal-browser and msal-node). | ||
| */ | ||
| export declare const GetAuthCodeUrl = "getAuthCodeUrl"; | ||
| /** | ||
| * Functions from InteractionHandler (msal-browser) | ||
| */ | ||
| export declare const HandleCodeResponseFromServer = "handleCodeResponseFromServer"; | ||
| /** | ||
| * APIs in Authorization Code Client (msal-common) | ||
| */ | ||
| export declare const AuthClientExecuteTokenRequest = "authClientExecuteTokenRequest"; | ||
| export declare const AuthClientCreateTokenRequestBody = "authClientCreateTokenRequestBody"; | ||
| export declare const UpdateTokenEndpointAuthority = "updateTokenEndpointAuthority"; | ||
| /** | ||
| * Generate functions in PopTokenGenerator (msal-common) | ||
| */ | ||
| export declare const PopTokenGenerateCnf = "popTokenGenerateCnf"; | ||
| /** | ||
| * handleServerTokenResponse API in ResponseHandler (msal-common) | ||
| */ | ||
| export declare const HandleServerTokenResponse = "handleServerTokenResponse"; | ||
| /** | ||
| * Authority functions | ||
| */ | ||
| export declare const AuthorityResolveEndpointsAsync = "authorityResolveEndpointsAsync"; | ||
| export declare const AuthorityGetCloudDiscoveryMetadataFromNetwork = "authorityGetCloudDiscoveryMetadataFromNetwork"; | ||
| export declare const AuthorityUpdateCloudDiscoveryMetadata = "authorityUpdateCloudDiscoveryMetadata"; | ||
| export declare const AuthorityGetEndpointMetadataFromNetwork = "authorityGetEndpointMetadataFromNetwork"; | ||
| export declare const AuthorityUpdateEndpointMetadata = "authorityUpdateEndpointMetadata"; | ||
| export declare const AuthorityUpdateMetadataWithRegionalInformation = "authorityUpdateMetadataWithRegionalInformation"; | ||
| /** | ||
| * Region Discovery functions | ||
| */ | ||
| export declare const RegionDiscoveryDetectRegion = "regionDiscoveryDetectRegion"; | ||
| export declare const RegionDiscoveryGetRegionFromIMDS = "regionDiscoveryGetRegionFromIMDS"; | ||
| export declare const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion"; | ||
| /** | ||
| * Cache operations | ||
| */ | ||
| export declare const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken"; | ||
| export declare const SetUserData = "setUserData"; | ||
| //# sourceMappingURL=PerformanceEvents.d.ts.map |
| {"version":3,"file":"PerformanceEvents.d.ts","sourceRoot":"","sources":["../../../src/telemetry/performance/PerformanceEvents.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,iCAAiC,sCACP,CAAC;AACxC,eAAO,MAAM,4CAA4C,iDACP,CAAC;AACnD,eAAO,MAAM,iDAAiD,sDACP,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,qCAAqC,0CACP,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,8BAA8B,mCAAmC,CAAC;AAE/E;;GAEG;AACH,eAAO,MAAM,oDAAoD,yDACP,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,wCAAwC,6CACP,CAAC;AAE/C,eAAO,MAAM,6CAA6C,kDACP,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,6BAA6B,kCAAkC,CAAC;AAC7E,eAAO,MAAM,gCAAgC,qCACP,CAAC;AACvC,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,8BAA8B,mCAAmC,CAAC;AAC/E,eAAO,MAAM,6CAA6C,kDACP,CAAC;AACpD,eAAO,MAAM,qCAAqC,0CACP,CAAC;AAC5C,eAAO,MAAM,uCAAuC,4CACP,CAAC;AAC9C,eAAO,MAAM,+BAA+B,oCACP,CAAC;AACtC,eAAO,MAAM,8CAA8C,mDACP,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,2BAA2B,gCAAgC,CAAC;AACzE,eAAO,MAAM,gCAAgC,qCACP,CAAC;AACvC,eAAO,MAAM,gCAAgC,qCACP,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,2BAA2B,gCAAgC,CAAC;AACzE,eAAO,MAAM,WAAW,gBAAgB,CAAC"} |
| import { IPerformanceClient, InProgressPerformanceEvent } from "./IPerformanceClient.js"; | ||
| import { IPerformanceMeasurement } from "./IPerformanceMeasurement.js"; | ||
| import { PerformanceEvent } from "./PerformanceEvent.js"; | ||
| export declare class StubPerformanceMeasurement implements IPerformanceMeasurement { | ||
| startMeasurement(): void; | ||
| endMeasurement(): void; | ||
| flushMeasurement(): number | null; | ||
| } | ||
| export declare class StubPerformanceClient implements IPerformanceClient { | ||
| generateId(): string; | ||
| startMeasurement(measureName: string, correlationId?: string | undefined): InProgressPerformanceEvent; | ||
| endMeasurement(): PerformanceEvent | null; | ||
| discardMeasurements(): void; | ||
| removePerformanceCallback(): boolean; | ||
| addPerformanceCallback(): string; | ||
| emitEvents(): void; | ||
| addFields(): void; | ||
| incrementFields(): void; | ||
| cacheEventByCorrelationId(): void; | ||
| } | ||
| //# sourceMappingURL=StubPerformanceClient.d.ts.map |
| {"version":3,"file":"StubPerformanceClient.d.ts","sourceRoot":"","sources":["../../../src/telemetry/performance/StubPerformanceClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,kBAAkB,EAClB,0BAA0B,EAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EACH,gBAAgB,EAEnB,MAAM,uBAAuB,CAAC;AAE/B,qBAAa,0BAA2B,YAAW,uBAAuB;IACtE,gBAAgB,IAAI,IAAI;IAGxB,cAAc,IAAI,IAAI;IAGtB,gBAAgB,IAAI,MAAM,GAAG,IAAI;CAGpC;AAED,qBAAa,qBAAsB,YAAW,kBAAkB;IAC5D,UAAU,IAAI,MAAM;IAIpB,gBAAgB,CACZ,WAAW,EAAE,MAAM,EACnB,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,GACnC,0BAA0B;IAoB7B,cAAc,IAAI,gBAAgB,GAAG,IAAI;IAIzC,mBAAmB,IAAI,IAAI;IAI3B,yBAAyB,IAAI,OAAO;IAIpC,sBAAsB,IAAI,MAAM;IAIhC,UAAU,IAAI,IAAI;IAIlB,SAAS,IAAI,IAAI;IAIjB,eAAe,IAAI,IAAI;IAIvB,yBAAyB,IAAI,IAAI;CAGpC"} |
| import * as Constants from "../../utils/Constants.js"; | ||
| import { CacheManager } from "../../cache/CacheManager.js"; | ||
| import { ServerTelemetryRequest } from "./ServerTelemetryRequest.js"; | ||
| import { ServerTelemetryEntity } from "../../cache/entities/ServerTelemetryEntity.js"; | ||
| import { RegionDiscoveryMetadata } from "../../authority/RegionDiscoveryMetadata.js"; | ||
| type SkuParams = { | ||
| libraryName?: string; | ||
| libraryVersion?: string; | ||
| extensionName?: string; | ||
| extensionVersion?: string; | ||
| skus?: string; | ||
| }; | ||
| /** @internal */ | ||
| export declare class ServerTelemetryManager { | ||
| private cacheManager; | ||
| private apiId; | ||
| private correlationId; | ||
| private telemetryCacheKey; | ||
| private wrapperSKU; | ||
| private wrapperVer; | ||
| private regionUsed; | ||
| private regionSource; | ||
| private regionOutcome; | ||
| private cacheOutcome; | ||
| constructor(telemetryRequest: ServerTelemetryRequest, cacheManager: CacheManager); | ||
| /** | ||
| * API to add MSER Telemetry to request | ||
| */ | ||
| generateCurrentRequestHeaderValue(): string; | ||
| /** | ||
| * API to add MSER Telemetry for the last failed request | ||
| */ | ||
| generateLastRequestHeaderValue(): string; | ||
| /** | ||
| * API to cache token failures for MSER data capture | ||
| * @param error | ||
| */ | ||
| cacheFailedRequest(error: unknown): void; | ||
| /** | ||
| * Update server telemetry cache entry by incrementing cache hit counter | ||
| */ | ||
| incrementCacheHits(): number; | ||
| /** | ||
| * Get the server telemetry entity from cache or initialize a new one | ||
| */ | ||
| getLastRequests(): ServerTelemetryEntity; | ||
| /** | ||
| * Remove server telemetry cache entry | ||
| */ | ||
| clearTelemetryCache(): void; | ||
| /** | ||
| * Returns the maximum number of errors that can be flushed to the server in the next network request | ||
| * @param serverTelemetryEntity | ||
| */ | ||
| static maxErrorsToSend(serverTelemetryEntity: ServerTelemetryEntity): number; | ||
| /** | ||
| * Get the region discovery fields | ||
| * | ||
| * @returns string | ||
| */ | ||
| getRegionDiscoveryFields(): string; | ||
| /** | ||
| * Update the region discovery metadata | ||
| * | ||
| * @param regionDiscoveryMetadata | ||
| * @returns void | ||
| */ | ||
| updateRegionDiscoveryMetadata(regionDiscoveryMetadata: RegionDiscoveryMetadata): void; | ||
| /** | ||
| * Set cache outcome | ||
| */ | ||
| setCacheOutcome(cacheOutcome: Constants.CacheOutcome): void; | ||
| setNativeBrokerErrorCode(errorCode: string): void; | ||
| getNativeBrokerErrorCode(): string | undefined; | ||
| clearNativeBrokerErrorCode(): void; | ||
| static makeExtraSkuString(params: SkuParams): string; | ||
| } | ||
| export {}; | ||
| //# sourceMappingURL=ServerTelemetryManager.d.ts.map |
| {"version":3,"file":"ServerTelemetryManager.d.ts","sourceRoot":"","sources":["../../../src/telemetry/server/ServerTelemetryManager.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,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wBAAwB,IAAI,MAAM;IAUlC;;;;;OAKG;IACH,6BAA6B,CACzB,uBAAuB,EAAE,uBAAuB,GACjD,IAAI;IAMP;;OAEG;IACH,eAAe,CAAC,YAAY,EAAE,SAAS,CAAC,YAAY,GAAG,IAAI;IAI3D,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAUjD,wBAAwB,IAAI,MAAM,GAAG,SAAS;IAI9C,0BAA0B,IAAI,IAAI;IAUlC,MAAM,CAAC,kBAAkB,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM;CAGvD"} |
| export type ServerTelemetryRequest = { | ||
| clientId: string; | ||
| apiId: number; | ||
| correlationId: string; | ||
| forceRefresh?: boolean; | ||
| wrapperSKU?: string; | ||
| wrapperVer?: string; | ||
| }; | ||
| //# sourceMappingURL=ServerTelemetryRequest.d.ts.map |
| {"version":3,"file":"ServerTelemetryRequest.d.ts","sourceRoot":"","sources":["../../../src/telemetry/server/ServerTelemetryRequest.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,sBAAsB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"} |
| /** | ||
| * Interface which describes URI components. | ||
| */ | ||
| export interface IUri { | ||
| Protocol: string; | ||
| HostNameAndPort: string; | ||
| AbsolutePath: string; | ||
| Search: string; | ||
| Hash: string; | ||
| PathSegments: string[]; | ||
| QueryString: string; | ||
| } | ||
| //# sourceMappingURL=IUri.d.ts.map |
| {"version":3,"file":"IUri.d.ts","sourceRoot":"","sources":["../../src/url/IUri.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,IAAI;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACvB"} |
| import { IUri } from "./IUri.js"; | ||
| /** | ||
| * Url object class which can perform various transformations on url strings. | ||
| */ | ||
| export declare class UrlString { | ||
| private _urlString; | ||
| get urlString(): string; | ||
| constructor(url: string); | ||
| /** | ||
| * Ensure urls are lower case and end with a / character. | ||
| * @param url | ||
| */ | ||
| static canonicalizeUri(url: string): string; | ||
| /** | ||
| * Throws if urlString passed is not a valid authority URI string. | ||
| */ | ||
| validateAsUri(): void; | ||
| /** | ||
| * Given a url and a query string return the url with provided query string appended | ||
| * @param url | ||
| * @param queryString | ||
| */ | ||
| static appendQueryString(url: string, queryString: string): string; | ||
| /** | ||
| * Returns a url with the hash removed | ||
| * @param url | ||
| */ | ||
| static removeHashFromUrl(url: string): string; | ||
| /** | ||
| * Given a url like https://a:b/common/d?e=f#g, and a tenantId, returns https://a:b/tenantId/d | ||
| * @param href The url | ||
| * @param tenantId The tenant id to replace | ||
| */ | ||
| replaceTenantPath(tenantId: string): UrlString; | ||
| /** | ||
| * Parses out the components from a url string. | ||
| * @returns An object with the various components. Please cache this value insted of calling this multiple times on the same url. | ||
| */ | ||
| getUrlComponents(): IUri; | ||
| static getDomainFromUrl(url: string): string; | ||
| static getAbsoluteUrl(relativeUrl: string, baseUrl: string): string; | ||
| static constructAuthorityUriFromObject(urlObject: IUri): UrlString; | ||
| } | ||
| //# sourceMappingURL=UrlString.d.ts.map |
| {"version":3,"file":"UrlString.d.ts","sourceRoot":"","sources":["../../src/url/UrlString.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC;;GAEG;AACH,qBAAa,SAAS;IAElB,OAAO,CAAC,UAAU,CAAS;IAC3B,IAAW,SAAS,IAAI,MAAM,CAE7B;gBAEW,GAAG,EAAE,MAAM;IAcvB;;;OAGG;IACH,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAoB3C;;OAEG;IACH,aAAa,IAAI,IAAI;IA6BrB;;;;OAIG;IACH,MAAM,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM;IAUlE;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAI7C;;;;OAIG;IACH,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS;IAc9C;;;OAGG;IACH,gBAAgB,IAAI,IAAI;IAsCxB,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAc5C,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM;IAgBnE,MAAM,CAAC,+BAA+B,CAAC,SAAS,EAAE,IAAI,GAAG,SAAS;CASrE"} |
| import { ClientAssertionCallback } from "../account/ClientCredentials.js"; | ||
| export declare function getClientAssertion(clientAssertion: string | ClientAssertionCallback, clientId: string, tokenEndpoint?: string): Promise<string>; | ||
| //# sourceMappingURL=ClientAssertionUtils.d.ts.map |
| {"version":3,"file":"ClientAssertionUtils.d.ts","sourceRoot":"","sources":["../../src/utils/ClientAssertionUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,uBAAuB,EAE1B,MAAM,iCAAiC,CAAC;AAEzC,wBAAsB,kBAAkB,CACpC,eAAe,EAAE,MAAM,GAAG,uBAAuB,EACjD,QAAQ,EAAE,MAAM,EAChB,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,MAAM,CAAC,CAUjB"} |
| export declare const SKU = "msal.js.common"; | ||
| export declare const DEFAULT_AUTHORITY = "https://login.microsoftonline.com/common/"; | ||
| export declare const DEFAULT_AUTHORITY_HOST = "login.microsoftonline.com"; | ||
| export declare const DEFAULT_COMMON_TENANT = "common"; | ||
| export declare const ADFS = "adfs"; | ||
| export declare const DSTS = "dstsv2"; | ||
| export declare const AAD_INSTANCE_DISCOVERY_ENDPT: string; | ||
| export declare const CIAM_AUTH_URL = ".ciamlogin.com"; | ||
| export declare const AAD_TENANT_DOMAIN_SUFFIX = ".onmicrosoft.com"; | ||
| export declare const RESOURCE_DELIM = "|"; | ||
| export declare const CONSUMER_UTID = "9188040d-6c67-4c5b-b112-36a304b66dad"; | ||
| export declare const OPENID_SCOPE = "openid"; | ||
| export declare const PROFILE_SCOPE = "profile"; | ||
| export declare const OFFLINE_ACCESS_SCOPE = "offline_access"; | ||
| export declare const EMAIL_SCOPE = "email"; | ||
| export declare const CODE_GRANT_TYPE = "authorization_code"; | ||
| export declare const S256_CODE_CHALLENGE_METHOD = "S256"; | ||
| export declare const URL_FORM_CONTENT_TYPE = "application/x-www-form-urlencoded;charset=utf-8"; | ||
| export declare const AUTHORIZATION_PENDING = "authorization_pending"; | ||
| export declare const NOT_APPLICABLE = "N/A"; | ||
| export declare const NOT_AVAILABLE = "Not Available"; | ||
| export declare const FORWARD_SLASH = "/"; | ||
| export declare const IMDS_ENDPOINT = "http://169.254.169.254/metadata/instance/compute/location"; | ||
| export declare const IMDS_VERSION = "2020-06-01"; | ||
| export declare const IMDS_TIMEOUT = 2000; | ||
| export declare const AZURE_REGION_AUTO_DISCOVER_FLAG = "TryAutoDetect"; | ||
| export declare const REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX = "login.microsoft.com"; | ||
| export declare const KNOWN_PUBLIC_CLOUDS: string[]; | ||
| export declare const SHR_NONCE_VALIDITY = 240; | ||
| export declare const INVALID_INSTANCE = "invalid_instance"; | ||
| export declare const HTTP_SUCCESS: number; | ||
| export declare const HTTP_SUCCESS_RANGE_START: number; | ||
| export declare const HTTP_SUCCESS_RANGE_END: number; | ||
| export declare const HTTP_REDIRECT: number; | ||
| export declare const HTTP_CLIENT_ERROR: number; | ||
| export declare const HTTP_CLIENT_ERROR_RANGE_START: number; | ||
| export declare const HTTP_BAD_REQUEST: number; | ||
| export declare const HTTP_UNAUTHORIZED: number; | ||
| export declare const HTTP_NOT_FOUND: number; | ||
| export declare const HTTP_REQUEST_TIMEOUT: number; | ||
| export declare const HTTP_GONE: number; | ||
| export declare const HTTP_TOO_MANY_REQUESTS: number; | ||
| export declare const HTTP_CLIENT_ERROR_RANGE_END: number; | ||
| export declare const HTTP_SERVER_ERROR: number; | ||
| export declare const HTTP_SERVER_ERROR_RANGE_START: number; | ||
| export declare const HTTP_SERVICE_UNAVAILABLE: number; | ||
| export declare const HTTP_GATEWAY_TIMEOUT: number; | ||
| export declare const HTTP_SERVER_ERROR_RANGE_END: number; | ||
| export declare const HTTP_MULTI_SIDED_ERROR: number; | ||
| export declare const HttpMethod: { | ||
| readonly GET: "GET"; | ||
| readonly POST: "POST"; | ||
| }; | ||
| export type HttpMethod = (typeof HttpMethod)[keyof typeof HttpMethod]; | ||
| export declare const OIDC_DEFAULT_SCOPES: string[]; | ||
| export declare const OIDC_SCOPES: string[]; | ||
| /** | ||
| * Request header names | ||
| */ | ||
| export declare const HeaderNames: { | ||
| readonly CONTENT_TYPE: "Content-Type"; | ||
| readonly CONTENT_LENGTH: "Content-Length"; | ||
| readonly RETRY_AFTER: "Retry-After"; | ||
| readonly CCS_HEADER: "X-AnchorMailbox"; | ||
| readonly WWWAuthenticate: "WWW-Authenticate"; | ||
| readonly AuthenticationInfo: "Authentication-Info"; | ||
| readonly X_MS_REQUEST_ID: "x-ms-request-id"; | ||
| readonly X_MS_HTTP_VERSION: "x-ms-httpver"; | ||
| }; | ||
| export type HeaderNames = (typeof HeaderNames)[keyof typeof HeaderNames]; | ||
| /** | ||
| * Persistent cache keys MSAL which stay while user is logged in. | ||
| */ | ||
| export declare const PersistentCacheKeys: { | ||
| readonly ACTIVE_ACCOUNT_FILTERS: "active-account-filters"; | ||
| }; | ||
| export type PersistentCacheKeys = (typeof PersistentCacheKeys)[keyof typeof PersistentCacheKeys]; | ||
| /** | ||
| * String constants related to AAD Authority | ||
| */ | ||
| export declare const AADAuthority: { | ||
| readonly COMMON: "common"; | ||
| readonly ORGANIZATIONS: "organizations"; | ||
| readonly CONSUMERS: "consumers"; | ||
| }; | ||
| export type AADAuthority = (typeof AADAuthority)[keyof typeof AADAuthority]; | ||
| /** | ||
| * Claims request keys | ||
| */ | ||
| export declare const ClaimsRequestKeys: { | ||
| readonly ACCESS_TOKEN: "access_token"; | ||
| readonly XMS_CC: "xms_cc"; | ||
| }; | ||
| export type ClaimsRequestKeys = (typeof ClaimsRequestKeys)[keyof typeof ClaimsRequestKeys]; | ||
| /** | ||
| * we considered making this "enum" in the request instead of string, however it looks like the allowed list of | ||
| * prompt values kept changing over past couple of years. There are some undocumented prompt values for some | ||
| * internal partners too, hence the choice of generic "string" type instead of the "enum" | ||
| */ | ||
| export declare const PromptValue: { | ||
| LOGIN: string; | ||
| SELECT_ACCOUNT: string; | ||
| CONSENT: string; | ||
| NONE: string; | ||
| CREATE: string; | ||
| NO_SESSION: string; | ||
| }; | ||
| /** | ||
| * allowed values for codeVerifier | ||
| */ | ||
| export declare const CodeChallengeMethodValues: { | ||
| PLAIN: string; | ||
| S256: string; | ||
| }; | ||
| /** | ||
| * Allowed values for response_type | ||
| */ | ||
| export declare const OAuthResponseType: { | ||
| readonly CODE: "code"; | ||
| readonly IDTOKEN_TOKEN: "id_token token"; | ||
| readonly IDTOKEN_TOKEN_REFRESHTOKEN: "id_token token refresh_token"; | ||
| }; | ||
| export type OAuthResponseType = (typeof OAuthResponseType)[keyof typeof OAuthResponseType]; | ||
| /** | ||
| * allowed values for response_mode | ||
| */ | ||
| export declare const ResponseMode: { | ||
| readonly QUERY: "query"; | ||
| readonly FRAGMENT: "fragment"; | ||
| readonly FORM_POST: "form_post"; | ||
| }; | ||
| export type ResponseMode = (typeof ResponseMode)[keyof typeof ResponseMode]; | ||
| /** | ||
| * allowed grant_type | ||
| */ | ||
| export declare const GrantType: { | ||
| readonly IMPLICIT_GRANT: "implicit"; | ||
| readonly AUTHORIZATION_CODE_GRANT: "authorization_code"; | ||
| readonly CLIENT_CREDENTIALS_GRANT: "client_credentials"; | ||
| readonly RESOURCE_OWNER_PASSWORD_GRANT: "password"; | ||
| readonly REFRESH_TOKEN_GRANT: "refresh_token"; | ||
| readonly DEVICE_CODE_GRANT: "device_code"; | ||
| readonly JWT_BEARER: "urn:ietf:params:oauth:grant-type:jwt-bearer"; | ||
| }; | ||
| export type GrantType = (typeof GrantType)[keyof typeof GrantType]; | ||
| /** | ||
| * Account types in Cache | ||
| */ | ||
| export declare const CACHE_ACCOUNT_TYPE_MSSTS: string; | ||
| export declare const CACHE_ACCOUNT_TYPE_ADFS: string; | ||
| export declare const CACHE_ACCOUNT_TYPE_MSAV1: string; | ||
| export declare const CACHE_ACCOUNT_TYPE_GENERIC: string; | ||
| /** | ||
| * Separators used in cache | ||
| */ | ||
| export declare const CACHE_KEY_SEPARATOR: string; | ||
| export declare const CLIENT_INFO_SEPARATOR: string; | ||
| /** | ||
| * Credential Type stored in the cache | ||
| */ | ||
| export declare const CredentialType: { | ||
| readonly ID_TOKEN: "IdToken"; | ||
| readonly ACCESS_TOKEN: "AccessToken"; | ||
| readonly ACCESS_TOKEN_WITH_AUTH_SCHEME: "AccessToken_With_AuthScheme"; | ||
| readonly REFRESH_TOKEN: "RefreshToken"; | ||
| }; | ||
| export type CredentialType = (typeof CredentialType)[keyof typeof CredentialType]; | ||
| /** | ||
| * Combine all cache types | ||
| */ | ||
| export declare const CacheType: { | ||
| readonly ADFS: 1001; | ||
| readonly MSA: 1002; | ||
| readonly MSSTS: 1003; | ||
| readonly GENERIC: 1004; | ||
| readonly ACCESS_TOKEN: 2001; | ||
| readonly REFRESH_TOKEN: 2002; | ||
| readonly ID_TOKEN: 2003; | ||
| readonly APP_METADATA: 3001; | ||
| readonly UNDEFINED: 9999; | ||
| }; | ||
| export type CacheType = (typeof CacheType)[keyof typeof CacheType]; | ||
| /** | ||
| * More Cache related constants | ||
| */ | ||
| export declare const APP_METADATA: string; | ||
| export declare const CLIENT_INFO: string; | ||
| export declare const THE_FAMILY_ID: string; | ||
| export declare const AUTHORITY_METADATA_CACHE_KEY: string; | ||
| export declare const AUTHORITY_METADATA_REFRESH_TIME_SECONDS: number; | ||
| export declare const AuthorityMetadataSource: { | ||
| readonly CONFIG: "config"; | ||
| readonly CACHE: "cache"; | ||
| readonly NETWORK: "network"; | ||
| readonly HARDCODED_VALUES: "hardcoded_values"; | ||
| }; | ||
| export type AuthorityMetadataSource = (typeof AuthorityMetadataSource)[keyof typeof AuthorityMetadataSource]; | ||
| export declare const SERVER_TELEM_SCHEMA_VERSION: number; | ||
| export declare const SERVER_TELEM_MAX_CUR_HEADER_BYTES: number; | ||
| export declare const SERVER_TELEM_MAX_LAST_HEADER_BYTES: number; | ||
| export declare const SERVER_TELEM_MAX_CACHED_ERRORS: number; | ||
| export declare const SERVER_TELEM_CACHE_KEY: string; | ||
| export declare const SERVER_TELEM_CATEGORY_SEPARATOR: string; | ||
| export declare const SERVER_TELEM_VALUE_SEPARATOR: string; | ||
| export declare const SERVER_TELEM_OVERFLOW_TRUE: string; | ||
| export declare const SERVER_TELEM_OVERFLOW_FALSE: string; | ||
| export declare const SERVER_TELEM_UNKNOWN_ERROR: string; | ||
| /** | ||
| * Type of the authentication request | ||
| */ | ||
| export declare const AuthenticationScheme: { | ||
| readonly BEARER: "Bearer"; | ||
| readonly POP: "pop"; | ||
| readonly SSH: "ssh-cert"; | ||
| }; | ||
| export type AuthenticationScheme = (typeof AuthenticationScheme)[keyof typeof AuthenticationScheme]; | ||
| /** | ||
| * Constants related to throttling | ||
| */ | ||
| export declare const DEFAULT_THROTTLE_TIME_SECONDS: number; | ||
| export declare const DEFAULT_MAX_THROTTLE_TIME_SECONDS: number; | ||
| export declare const THROTTLING_PREFIX: string; | ||
| export declare const X_MS_LIB_CAPABILITY_VALUE: string; | ||
| /** | ||
| * Errors | ||
| */ | ||
| export declare const INVALID_GRANT_ERROR: string; | ||
| export declare const CLIENT_MISMATCH_ERROR: string; | ||
| /** | ||
| * Password grant parameters | ||
| */ | ||
| export declare const PasswordGrantConstants: { | ||
| readonly username: "username"; | ||
| readonly password: "password"; | ||
| }; | ||
| export type PasswordGrantConstants = (typeof PasswordGrantConstants)[keyof typeof PasswordGrantConstants]; | ||
| /** | ||
| * Region Discovery Sources | ||
| */ | ||
| export declare const RegionDiscoverySources: { | ||
| readonly FAILED_AUTO_DETECTION: "1"; | ||
| readonly INTERNAL_CACHE: "2"; | ||
| readonly ENVIRONMENT_VARIABLE: "3"; | ||
| readonly IMDS: "4"; | ||
| }; | ||
| export type RegionDiscoverySources = (typeof RegionDiscoverySources)[keyof typeof RegionDiscoverySources]; | ||
| /** | ||
| * Region Discovery Outcomes | ||
| */ | ||
| export declare const RegionDiscoveryOutcomes: { | ||
| readonly CONFIGURED_MATCHES_DETECTED: "1"; | ||
| readonly CONFIGURED_NO_AUTO_DETECTION: "2"; | ||
| readonly CONFIGURED_NOT_DETECTED: "3"; | ||
| readonly AUTO_DETECTION_REQUESTED_SUCCESSFUL: "4"; | ||
| readonly AUTO_DETECTION_REQUESTED_FAILED: "5"; | ||
| }; | ||
| export type RegionDiscoveryOutcomes = (typeof RegionDiscoveryOutcomes)[keyof typeof RegionDiscoveryOutcomes]; | ||
| /** | ||
| * Specifies the reason for fetching the access token from the identity provider | ||
| */ | ||
| export declare const CacheOutcome: { | ||
| readonly NOT_APPLICABLE: "0"; | ||
| readonly FORCE_REFRESH_OR_CLAIMS: "1"; | ||
| readonly NO_CACHED_ACCESS_TOKEN: "2"; | ||
| readonly CACHED_ACCESS_TOKEN_EXPIRED: "3"; | ||
| readonly PROACTIVELY_REFRESHED: "4"; | ||
| }; | ||
| export type CacheOutcome = (typeof CacheOutcome)[keyof typeof CacheOutcome]; | ||
| export declare const JsonWebTokenTypes: { | ||
| readonly Jwt: "JWT"; | ||
| readonly Jwk: "JWK"; | ||
| readonly Pop: "pop"; | ||
| }; | ||
| export type JsonWebTokenTypes = (typeof JsonWebTokenTypes)[keyof typeof JsonWebTokenTypes]; | ||
| export declare const ONE_DAY_IN_MS = 86400000; | ||
| export declare const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300; | ||
| export declare const EncodingTypes: { | ||
| readonly BASE64: "base64"; | ||
| readonly HEX: "hex"; | ||
| readonly UTF8: "utf-8"; | ||
| }; | ||
| export type EncodingTypes = (typeof EncodingTypes)[keyof typeof EncodingTypes]; | ||
| //# sourceMappingURL=Constants.d.ts.map |
| {"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../src/utils/Constants.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,GAAG,mBAAmB,CAAC;AAEpC,eAAO,MAAM,iBAAiB,8CAA8C,CAAC;AAC7E,eAAO,MAAM,sBAAsB,8BAA8B,CAAC;AAClE,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAE9C,eAAO,MAAM,IAAI,SAAS,CAAC;AAC3B,eAAO,MAAM,IAAI,WAAW,CAAC;AAE7B,eAAO,MAAM,4BAA4B,QAAmF,CAAC;AAE7H,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,wBAAwB,qBAAqB,CAAC;AAE3D,eAAO,MAAM,cAAc,MAAM,CAAC;AAElC,eAAO,MAAM,aAAa,yCAAyC,CAAC;AAEpE,eAAO,MAAM,YAAY,WAAW,CAAC;AACrC,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,oBAAoB,mBAAmB,CAAC;AACrD,eAAO,MAAM,WAAW,UAAU,CAAC;AACnC,eAAO,MAAM,eAAe,uBAAuB,CAAC;AACpD,eAAO,MAAM,0BAA0B,SAAS,CAAC;AACjD,eAAO,MAAM,qBAAqB,oDACmB,CAAC;AACtD,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAC7D,eAAO,MAAM,cAAc,QAAQ,CAAC;AACpC,eAAO,MAAM,aAAa,kBAAkB,CAA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;CAWf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE5E,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GACzB,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE/D,eAAO,MAAM,aAAa,WAAW,CAAC;AAGtC,eAAO,MAAM,gCAAgC,MAAM,CAAC;AAEpD,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC"} |
| import { Logger } from "../logger/Logger.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| /** | ||
| * Wraps a function with a performance measurement. | ||
| * Usage: invoke(functionToCall, performanceClient, "EventName", "correlationId")(...argsToPassToFunction) | ||
| * @param callback | ||
| * @param eventName | ||
| * @param logger | ||
| * @param telemetryClient | ||
| * @param correlationId | ||
| * @returns | ||
| * @internal | ||
| */ | ||
| export declare const invoke: <T extends any[], U>(callback: (...args: T) => U, eventName: string, logger: Logger, telemetryClient: IPerformanceClient, correlationId: string) => (...args: T) => U; | ||
| /** | ||
| * Wraps an async function with a performance measurement. | ||
| * Usage: invokeAsync(functionToCall, performanceClient, "EventName", "correlationId")(...argsToPassToFunction) | ||
| * @param callback | ||
| * @param eventName | ||
| * @param logger | ||
| * @param telemetryClient | ||
| * @param correlationId | ||
| * @returns | ||
| * @internal | ||
| * | ||
| */ | ||
| export declare const invokeAsync: <T extends any[], U>(callback: (...args: T) => Promise<U>, eventName: string, logger: Logger, telemetryClient: IPerformanceClient, correlationId: string) => (...args: T) => Promise<U>; | ||
| //# sourceMappingURL=FunctionWrappers.d.ts.map |
| {"version":3,"file":"FunctionWrappers.d.ts","sourceRoot":"","sources":["../../src/utils/FunctionWrappers.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEpF;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,MAAM,+DAEJ,MAAM,UACT,MAAM,mBACG,kBAAkB,iBACpB,MAAM,sBAsCxB,CAAC;AAEF;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,WAAW,wEAET,MAAM,UACT,MAAM,mBACG,kBAAkB,iBACpB,MAAM,+BA6CxB,CAAC"} |
| /** | ||
| * Key-Value type to support queryParams, extraQueryParams and claims | ||
| */ | ||
| export type StringDict = { | ||
| [key: string]: string; | ||
| }; | ||
| //# sourceMappingURL=MsalTypes.d.ts.map |
| {"version":3,"file":"MsalTypes.d.ts","sourceRoot":"","sources":["../../src/utils/MsalTypes.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC"} |
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { RequestStateObject } from "./StateTypes.js"; | ||
| /** | ||
| * Appends user state with random guid, or returns random guid. | ||
| * @param cryptoObj | ||
| * @param userState | ||
| * @param meta | ||
| */ | ||
| export declare function setRequestState(cryptoObj: ICrypto, userState?: string, meta?: Record<string, string>): string; | ||
| /** | ||
| * Generates the state value used by the common library. | ||
| * @param cryptoObj | ||
| * @param meta | ||
| */ | ||
| export declare function generateLibraryState(cryptoObj: ICrypto, meta?: Record<string, string>): string; | ||
| /** | ||
| * Parses the state into the RequestStateObject, which contains the LibraryState info and the state passed by the user. | ||
| * @param base64Decode | ||
| * @param state | ||
| */ | ||
| export declare function parseRequestState(base64Decode: (input: string) => string, state: string): RequestStateObject; | ||
| //# sourceMappingURL=ProtocolUtils.d.ts.map |
| {"version":3,"file":"ProtocolUtils.d.ts","sourceRoot":"","sources":["../../src/utils/ProtocolUtils.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAK/C,OAAO,EAAsB,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEzE;;;;;GAKG;AACH,wBAAgB,eAAe,CAC3B,SAAS,EAAE,OAAO,EAClB,SAAS,CAAC,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC9B,MAAM,CAKR;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAChC,SAAS,EAAE,OAAO,EAClB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC9B,MAAM,CAiBR;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC7B,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,EACvC,KAAK,EAAE,MAAM,GACd,kBAAkB,CA4BpB"} |
| /** | ||
| * Type which defines library state | ||
| */ | ||
| export type LibraryStateObject = { | ||
| id: string; | ||
| meta?: Record<string, string>; | ||
| }; | ||
| /** | ||
| * Type which defines the stringified and encoded state object sent to the service in the authorize request. | ||
| */ | ||
| export type RequestStateObject = { | ||
| userRequestState: string; | ||
| libraryState: LibraryStateObject; | ||
| }; | ||
| //# sourceMappingURL=StateTypes.d.ts.map |
| {"version":3,"file":"StateTypes.d.ts","sourceRoot":"","sources":["../../src/utils/StateTypes.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,kBAAkB,CAAC;CACpC,CAAC"} |
| /** | ||
| * @hidden | ||
| */ | ||
| export declare class StringUtils { | ||
| /** | ||
| * Check if stringified object is empty | ||
| * @param strObj | ||
| */ | ||
| static isEmptyObj(strObj?: string): boolean; | ||
| static startsWith(str: string, search: string): boolean; | ||
| static endsWith(str: string, search: string): boolean; | ||
| /** | ||
| * Parses string into an object. | ||
| * | ||
| * @param query | ||
| */ | ||
| static queryStringToObject<T>(query: string): T; | ||
| /** | ||
| * Trims entries in an array. | ||
| * | ||
| * @param arr | ||
| */ | ||
| static trimArrayEntries(arr: Array<string>): Array<string>; | ||
| /** | ||
| * Removes empty strings from array | ||
| * @param arr | ||
| */ | ||
| static removeEmptyStringsFromArray(arr: Array<string>): Array<string>; | ||
| /** | ||
| * Attempts to parse a string into JSON | ||
| * @param str | ||
| */ | ||
| static jsonParseHelper<T>(str: string): T | null; | ||
| } | ||
| //# sourceMappingURL=StringUtils.d.ts.map |
| {"version":3,"file":"StringUtils.d.ts","sourceRoot":"","sources":["../../src/utils/StringUtils.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,qBAAa,WAAW;IACpB;;;OAGG;IACH,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO;IAU3C,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO;IAIvD,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO;IAOrD;;;;OAIG;IACH,MAAM,CAAC,mBAAmB,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;IAe/C;;;;OAIG;IACH,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC;IAI1D;;;OAGG;IACH,MAAM,CAAC,2BAA2B,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC;IAMrE;;;OAGG;IACH,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI;CAOnD"} |
| /** | ||
| * Utility functions for managing date and time operations. | ||
| */ | ||
| /** | ||
| * return the current time in Unix time (seconds). | ||
| */ | ||
| export declare function nowSeconds(): number; | ||
| /** | ||
| * Converts JS Date object to seconds | ||
| * @param date Date | ||
| */ | ||
| export declare function toSecondsFromDate(date: Date): number; | ||
| /** | ||
| * Convert seconds to JS Date object. Seconds can be in a number or string format or undefined (will still return a date). | ||
| * @param seconds | ||
| */ | ||
| export declare function toDateFromSeconds(seconds: number | string | undefined): Date; | ||
| /** | ||
| * check if a token is expired based on given UTC time in seconds. | ||
| * @param expiresOn | ||
| */ | ||
| export declare function isTokenExpired(expiresOn: string, offset: number): boolean; | ||
| /** | ||
| * Checks if a cache entry is expired based on the last updated time and cache retention days. | ||
| * @param lastUpdatedAt | ||
| * @param cacheRetentionDays | ||
| * @returns | ||
| */ | ||
| export declare function isCacheExpired(lastUpdatedAt: string, cacheRetentionDays: number): boolean; | ||
| /** | ||
| * If the current time is earlier than the time that a token was cached at, we must discard the token | ||
| * i.e. The system clock was turned back after acquiring the cached token | ||
| * @param cachedAt | ||
| * @param offset | ||
| */ | ||
| export declare function wasClockTurnedBack(cachedAt: string): boolean; | ||
| /** | ||
| * Waits for t number of milliseconds | ||
| * @param t number | ||
| * @param value T | ||
| */ | ||
| export declare function delay<T>(t: number, value?: T): Promise<T | void>; | ||
| //# sourceMappingURL=TimeUtils.d.ts.map |
| {"version":3,"file":"TimeUtils.d.ts","sourceRoot":"","sources":["../../src/utils/TimeUtils.ts"],"names":[],"mappings":"AAKA;;GAEG;AAEH;;GAEG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAGnC;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAGpD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAK5E;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAOzE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC1B,aAAa,EAAE,MAAM,EACrB,kBAAkB,EAAE,MAAM,GAC3B,OAAO,CAIT;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAI5D;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAEhE"} |
| import { AuthorizeResponse } from "../response/AuthorizeResponse.js"; | ||
| /** | ||
| * Parses hash string from given string. Returns empty string if no hash symbol is found. | ||
| * @param hashString | ||
| */ | ||
| export declare function stripLeadingHashOrQuery(responseString: string): string; | ||
| /** | ||
| * Returns URL hash as server auth code response object. | ||
| */ | ||
| export declare function getDeserializedResponse(responseString: string): AuthorizeResponse | null; | ||
| /** | ||
| * Utility to create a URL from the params map | ||
| */ | ||
| export declare function mapToQueryString(parameters: Map<string, string>): string; | ||
| /** | ||
| * Normalizes URLs for comparison by removing hash, canonicalizing, | ||
| * and ensuring consistent URL encoding in query parameters. | ||
| * This fixes redirect loops when URLs contain encoded characters like apostrophes (%27). | ||
| * @param url - URL to normalize | ||
| * @returns Normalized URL string for comparison | ||
| */ | ||
| export declare function normalizeUrlForComparison(url: string): string; | ||
| //# sourceMappingURL=UrlUtils.d.ts.map |
| {"version":3,"file":"UrlUtils.d.ts","sourceRoot":"","sources":["../../src/utils/UrlUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAiCrE;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAWtE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACnC,cAAc,EAAE,MAAM,GACvB,iBAAiB,GAAG,IAAI,CA4B1B;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAQxE;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAwB7D"} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
| import { TokenClaims } from "./TokenClaims.js"; | ||
| export type DataBoundary = "EU" | "None"; | ||
| /** | ||
| * Account object with the following signature: | ||
| * - homeAccountId - Home account identifier for this account object | ||
| * - environment - Entity which issued the token represented by the domain of the issuer (e.g. login.microsoftonline.com) | ||
| * - tenantId - Full tenant or organizational id that this account belongs to | ||
| * - username - preferred_username claim of the id_token that represents this account | ||
| * - upn - The user's UPN used to populate the account username in cases where preferred_username is not present in the ID token claims. | ||
| * - localAccountId - Local, tenant-specific account identifer for this account object, usually used in legacy cases | ||
| * - name - Full name for the account, including given name and family name | ||
| * - idToken - raw ID token | ||
| * - idTokenClaims - Object contains claims from ID token | ||
| * - nativeAccountId - The user's native account ID | ||
| * - tenantProfiles - Map of tenant profile objects for each tenant that the account has authenticated with in the browser | ||
| * - dataBoundary - Data boundary extracted from clientInfo | ||
| */ | ||
| export type AccountInfo = { | ||
| homeAccountId: string; | ||
| environment: string; | ||
| tenantId: string; | ||
| username: string; | ||
| localAccountId: string; | ||
| loginHint?: string; | ||
| name?: string; | ||
| upn?: string; | ||
| idToken?: string; | ||
| idTokenClaims?: TokenClaims & { | ||
| [key: string]: string | number | string[] | object | undefined | unknown; | ||
| }; | ||
| nativeAccountId?: string; | ||
| authorityType?: string; | ||
| tenantProfiles?: Map<string, TenantProfile>; | ||
| dataBoundary?: DataBoundary; | ||
| }; | ||
| /** | ||
| * Account details that vary across tenants for the same user | ||
| */ | ||
| export type TenantProfile = Pick<AccountInfo, "tenantId" | "localAccountId" | "name" | "username" | "loginHint" | "upn"> & { | ||
| /** | ||
| * - isHomeTenant - True if this is the home tenant profile of the account, false if it's a guest tenant profile | ||
| */ | ||
| isHomeTenant?: boolean; | ||
| }; | ||
| export type ActiveAccountFilters = { | ||
| homeAccountId: string; | ||
| localAccountId: string; | ||
| tenantId?: string; | ||
| }; | ||
| /** | ||
| * Returns true if tenantId matches the utid portion of homeAccountId | ||
| * @param tenantId | ||
| * @param homeAccountId | ||
| * @returns | ||
| */ | ||
| export declare function tenantIdMatchesHomeTenant(tenantId?: string, homeAccountId?: string): boolean; | ||
| /** | ||
| * Build tenant profile | ||
| * @param homeAccountId - Home account identifier for this account object | ||
| * @param localAccountId - Local account identifer for this account object | ||
| * @param tenantId - Full tenant or organizational id that this account belongs to | ||
| * @param idTokenClaims - Claims from the ID token | ||
| * @returns | ||
| */ | ||
| export declare function buildTenantProfile(homeAccountId: string, localAccountId: string, tenantId: string, idTokenClaims?: TokenClaims): TenantProfile; | ||
| /** | ||
| * Replaces account info that varies by tenant profile sourced from the ID token claims passed in with the tenant-specific account info | ||
| * @param baseAccountInfo | ||
| * @param idTokenClaims | ||
| * @returns | ||
| */ | ||
| export declare function updateAccountTenantProfileData(baseAccountInfo: AccountInfo, tenantProfile?: TenantProfile, idTokenClaims?: TokenClaims, idTokenSecret?: string): AccountInfo; | ||
| //# sourceMappingURL=AccountInfo.d.ts.map |
| {"version":3,"file":"AccountInfo.d.ts","sourceRoot":"","sources":["../../../src/account/AccountInfo.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,MAAM,CAAC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,C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AAC,EAAE,aAAa,EAC7B,aAAa,CAAC,EAAE,WAAW,EAC3B,aAAa,CAAC,EAAE,MAAM,GACvB,WAAW,CAgCb"} |
| import { TokenClaims } from "./TokenClaims.js"; | ||
| /** | ||
| * Extract token by decoding the rawToken | ||
| * | ||
| * @param encodedToken | ||
| */ | ||
| export declare function extractTokenClaims(encodedToken: string, base64Decode: (input: string) => string): TokenClaims; | ||
| /** | ||
| * Check if the signin_state claim contains "kmsi" | ||
| * @param idTokenClaims | ||
| * @returns | ||
| */ | ||
| export declare function isKmsi(idTokenClaims: TokenClaims): boolean; | ||
| /** | ||
| * decode a JWT | ||
| * | ||
| * @param authToken | ||
| */ | ||
| export declare function getJWSPayload(authToken: string): string; | ||
| /** | ||
| * Determine if the token's max_age has transpired | ||
| */ | ||
| export declare function checkMaxAge(authTime: number, maxAge: number): void; | ||
| //# sourceMappingURL=AuthToken.d.ts.map |
| {"version":3,"file":"AuthToken.d.ts","sourceRoot":"","sources":["../../../src/account/AuthToken.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM/C;;;;GAIG;AACH,wBAAgB,kBAAkB,CAC9B,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GACxC,WAAW,CAWb;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,aAAa,EAAE,WAAW,GAAG,OAAO,CAe1D;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAkBvD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAUlE"} |
| export type CcsCredential = { | ||
| credential: string; | ||
| type: CcsCredentialType; | ||
| }; | ||
| export declare const CcsCredentialType: { | ||
| readonly HOME_ACCOUNT_ID: "home_account_id"; | ||
| readonly UPN: "UPN"; | ||
| }; | ||
| export type CcsCredentialType = (typeof CcsCredentialType)[keyof typeof CcsCredentialType]; | ||
| //# sourceMappingURL=CcsCredential.d.ts.map |
| {"version":3,"file":"CcsCredential.d.ts","sourceRoot":"","sources":["../../../src/account/CcsCredential.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,aAAa,GAAG;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,iBAAiB,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GACzB,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC"} |
| export type ClientAssertionConfig = { | ||
| clientId: string; | ||
| tokenEndpoint?: string; | ||
| }; | ||
| export type ClientAssertionCallback = (config: ClientAssertionConfig) => Promise<string>; | ||
| /** | ||
| * Client Assertion credential for Confidential Clients | ||
| */ | ||
| export type ClientAssertion = { | ||
| assertion: string | ClientAssertionCallback; | ||
| assertionType: string; | ||
| }; | ||
| /** | ||
| * Client Credentials set for Confidential Clients | ||
| */ | ||
| export type ClientCredentials = { | ||
| clientSecret?: string; | ||
| clientAssertion?: ClientAssertion; | ||
| }; | ||
| //# sourceMappingURL=ClientCredentials.d.ts.map |
| {"version":3,"file":"ClientCredentials.d.ts","sourceRoot":"","sources":["../../../src/account/ClientCredentials.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,qBAAqB,GAAG;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAClC,MAAM,EAAE,qBAAqB,KAC5B,OAAO,CAAC,MAAM,CAAC,CAAC;AAErB;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC1B,SAAS,EAAE,MAAM,GAAG,uBAAuB,CAAC;IAC5C,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC,CAAC"} |
| /** | ||
| * Client info object which consists of: | ||
| * uid: user id | ||
| * utid: tenant id | ||
| * xms_tdbr: optional, only for non-US tenants | ||
| */ | ||
| export type ClientInfo = { | ||
| uid: string; | ||
| utid: string; | ||
| xms_tdbr?: string; | ||
| }; | ||
| /** | ||
| * Function to build a client info object from server clientInfo string | ||
| * @param rawClientInfo | ||
| * @param crypto | ||
| */ | ||
| export declare function buildClientInfo(rawClientInfo: string, base64Decode: (input: string) => string): ClientInfo; | ||
| /** | ||
| * Function to build a client info object from cached homeAccountId string | ||
| * @param homeAccountId | ||
| */ | ||
| export declare function buildClientInfoFromHomeAccountId(homeAccountId: string): ClientInfo; | ||
| //# sourceMappingURL=ClientInfo.d.ts.map |
| {"version":3,"file":"ClientInfo.d.ts","sourceRoot":"","sources":["../../../src/account/ClientInfo.ts"],"names":[],"mappings":"AAWA;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,eAAe,CAC3B,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GACxC,UAAU,CAaZ;AAED;;;GAGG;AACH,wBAAgB,gCAAgC,CAC5C,aAAa,EAAE,MAAM,GACtB,UAAU,CAcZ"} |
| /** | ||
| * Type which describes Id Token claims known by MSAL. | ||
| */ | ||
| export type TokenClaims = { | ||
| /** | ||
| * Audience | ||
| */ | ||
| aud?: string; | ||
| /** | ||
| * Issuer | ||
| */ | ||
| iss?: string; | ||
| /** | ||
| * Issued at | ||
| */ | ||
| iat?: number; | ||
| /** | ||
| * Not valid before | ||
| */ | ||
| nbf?: number; | ||
| /** | ||
| * Immutable object identifier, this ID uniquely identifies the user across applications | ||
| */ | ||
| oid?: string; | ||
| /** | ||
| * Immutable subject identifier, this is a pairwise identifier - it is unique to a particular application ID | ||
| */ | ||
| sub?: string; | ||
| /** | ||
| * Users' tenant or '9188040d-6c67-4c5b-b112-36a304b66dad' for personal accounts. | ||
| */ | ||
| tid?: string; | ||
| /** | ||
| * Trusted Framework Policy (B2C) The name of the policy that was used to acquire the ID token. | ||
| */ | ||
| tfp?: string; | ||
| /** | ||
| * Authentication Context Class Reference (B2C) Used only with older policies. | ||
| */ | ||
| acr?: string; | ||
| ver?: string; | ||
| upn?: string; | ||
| preferred_username?: string; | ||
| login_hint?: string; | ||
| /** | ||
| * Contains KMSI (Keep Me Signed In) status among other things | ||
| */ | ||
| signin_state?: Array<string>; | ||
| emails?: string[]; | ||
| name?: string; | ||
| nonce?: string; | ||
| /** | ||
| * Expiration | ||
| */ | ||
| exp?: number; | ||
| home_oid?: string; | ||
| sid?: string; | ||
| cloud_instance_host_name?: string; | ||
| cnf?: { | ||
| kid: string; | ||
| }; | ||
| x5c_ca?: string[]; | ||
| ts?: number; | ||
| at?: string; | ||
| u?: string; | ||
| p?: string; | ||
| m?: string; | ||
| roles?: string[]; | ||
| amr?: string[]; | ||
| idp?: string; | ||
| auth_time?: number; | ||
| /** | ||
| * Region of the resource tenant | ||
| */ | ||
| tenant_region_scope?: string; | ||
| tenant_region_sub_scope?: string; | ||
| }; | ||
| /** | ||
| * Gets tenantId from available ID token claims to set as credential realm with the following precedence: | ||
| * 1. tid - if the token is acquired from an Azure AD tenant tid will be present | ||
| * 2. tfp - if the token is acquired from a modern B2C tenant tfp should be present | ||
| * 3. acr - if the token is acquired from a legacy B2C tenant acr should be present | ||
| * Downcased to match the realm case-insensitive comparison requirements | ||
| * @param idTokenClaims | ||
| * @returns | ||
| */ | ||
| export declare function getTenantIdFromIdTokenClaims(idTokenClaims?: TokenClaims): string | null; | ||
| //# sourceMappingURL=TokenClaims.d.ts.map |
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CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,uBAAuB,CAAC,EAAE,MAAM,CAAC;CACpC,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,4BAA4B,CACxC,aAAa,CAAC,EAAE,WAAW,GAC5B,MAAM,GAAG,IAAI,CAOf"} |
| import { AuthorityType } from "./AuthorityType.js"; | ||
| import { OpenIdConfigResponse } from "./OpenIdConfigResponse.js"; | ||
| import { IUri } from "../url/IUri.js"; | ||
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { ProtocolMode } from "./ProtocolMode.js"; | ||
| import { ICacheManager } from "../cache/interface/ICacheManager.js"; | ||
| import { AuthorityOptions, StaticAuthorityOptions } from "./AuthorityOptions.js"; | ||
| import { CloudDiscoveryMetadata } from "./CloudDiscoveryMetadata.js"; | ||
| import { RegionDiscoveryMetadata } from "./RegionDiscoveryMetadata.js"; | ||
| import type { AzureCloudOptions } from "../config/ClientConfiguration.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| /** | ||
| * The authority class validates the authority URIs used by the user, and retrieves the OpenID Configuration Data from the | ||
| * endpoint. It will store the pertinent config data in this object for use during token calls. | ||
| * @internal | ||
| */ | ||
| export declare class Authority { | ||
| private _canonicalAuthority; | ||
| private _canonicalAuthorityUrlComponents; | ||
| protected networkInterface: INetworkModule; | ||
| protected cacheManager: ICacheManager; | ||
| private authorityOptions; | ||
| private metadata; | ||
| private regionDiscovery; | ||
| regionDiscoveryMetadata: RegionDiscoveryMetadata; | ||
| private logger; | ||
| protected performanceClient: IPerformanceClient; | ||
| protected correlationId: string; | ||
| private managedIdentity; | ||
| private static reservedTenantDomains; | ||
| constructor(authority: string, networkInterface: INetworkModule, cacheManager: ICacheManager, authorityOptions: AuthorityOptions, logger: Logger, correlationId: string, performanceClient: IPerformanceClient, managedIdentity?: boolean); | ||
| /** | ||
| * Get {@link AuthorityType} | ||
| * @param authorityUri {@link IUri} | ||
| * @private | ||
| */ | ||
| private getAuthorityType; | ||
| get authorityType(): AuthorityType; | ||
| /** | ||
| * ProtocolMode enum representing the way endpoints are constructed. | ||
| */ | ||
| get protocolMode(): ProtocolMode; | ||
| /** | ||
| * Returns authorityOptions which can be used to reinstantiate a new authority instance | ||
| */ | ||
| get options(): AuthorityOptions; | ||
| /** | ||
| * A URL that is the authority set by the developer | ||
| */ | ||
| get canonicalAuthority(): string; | ||
| /** | ||
| * Sets canonical authority. | ||
| */ | ||
| set canonicalAuthority(url: string); | ||
| /** | ||
| * Get authority components. | ||
| */ | ||
| get canonicalAuthorityUrlComponents(): IUri; | ||
| /** | ||
| * Get hostname and port i.e. login.microsoftonline.com | ||
| */ | ||
| get hostnameAndPort(): string; | ||
| /** | ||
| * Get tenant for authority. | ||
| */ | ||
| get tenant(): string; | ||
| /** | ||
| * OAuth /authorize endpoint for requests | ||
| */ | ||
| get authorizationEndpoint(): string; | ||
| /** | ||
| * OAuth /token endpoint for requests | ||
| */ | ||
| get tokenEndpoint(): string; | ||
| get deviceCodeEndpoint(): string; | ||
| /** | ||
| * OAuth logout endpoint for requests | ||
| */ | ||
| get endSessionEndpoint(): string; | ||
| /** | ||
| * OAuth issuer for requests | ||
| */ | ||
| get selfSignedJwtAudience(): string; | ||
| /** | ||
| * Jwks_uri for token signing keys | ||
| */ | ||
| get jwksUri(): string; | ||
| /** | ||
| * Returns a flag indicating that tenant name can be replaced in authority {@link IUri} | ||
| * @param authorityUri {@link IUri} | ||
| * @private | ||
| */ | ||
| private canReplaceTenant; | ||
| /** | ||
| * Replaces tenant in url path with current tenant. Defaults to common. | ||
| * @param urlString | ||
| */ | ||
| private replaceTenant; | ||
| /** | ||
| * Replaces path such as tenant or policy with the current tenant or policy. | ||
| * @param urlString | ||
| */ | ||
| private replacePath; | ||
| /** | ||
| * The default open id configuration endpoint for any canonical authority. | ||
| */ | ||
| protected get defaultOpenIdConfigurationEndpoint(): string; | ||
| /** | ||
| * Boolean that returns whether or not tenant discovery has been completed. | ||
| */ | ||
| discoveryComplete(): boolean; | ||
| /** | ||
| * Perform endpoint discovery to discover aliases, preferred_cache, preferred_network | ||
| * and the /authorize, /token and logout endpoints. | ||
| */ | ||
| resolveEndpointsAsync(): Promise<void>; | ||
| /** | ||
| * Returns metadata entity from cache if it exists, otherwiser returns a new metadata entity built | ||
| * from the configured canonical authority | ||
| * @returns | ||
| */ | ||
| private getCurrentMetadataEntity; | ||
| /** | ||
| * Updates cached metadata based on metadata source and sets the instance's metadata | ||
| * property to the same value | ||
| * @param metadataEntity | ||
| * @param cloudDiscoverySource | ||
| * @param endpointMetadataResult | ||
| */ | ||
| private updateCachedMetadata; | ||
| /** | ||
| * Update AuthorityMetadataEntity with new endpoints and return where the information came from | ||
| * @param metadataEntity | ||
| */ | ||
| private updateEndpointMetadata; | ||
| /** | ||
| * Updates endpoint metadata from local sources and returns where the information was retrieved from and the metadata config | ||
| * response if the source is hardcoded metadata | ||
| * @param metadataEntity | ||
| * @returns | ||
| */ | ||
| private updateEndpointMetadataFromLocalSources; | ||
| /** | ||
| * Compares the number of url components after the domain to determine if the cached | ||
| * authority metadata can be used for the requested authority. Protects against same domain different | ||
| * authority such as login.microsoftonline.com/tenant and login.microsoftonline.com/tfp/tenant/policy | ||
| * @param metadataEntity | ||
| */ | ||
| private isAuthoritySameType; | ||
| /** | ||
| * Parse authorityMetadata config option | ||
| */ | ||
| private getEndpointMetadataFromConfig; | ||
| /** | ||
| * Gets OAuth endpoints from the given OpenID configuration endpoint. | ||
| * | ||
| * @param hasHardcodedMetadata boolean | ||
| */ | ||
| private getEndpointMetadataFromNetwork; | ||
| /** | ||
| * Get OAuth endpoints for common authorities. | ||
| */ | ||
| private getEndpointMetadataFromHardcodedValues; | ||
| /** | ||
| * Update the retrieved metadata with regional information. | ||
| * User selected Azure region will be used if configured. | ||
| */ | ||
| private updateMetadataWithRegionalInformation; | ||
| /** | ||
| * Updates the AuthorityMetadataEntity with new aliases, preferred_network and preferred_cache | ||
| * and returns where the information was retrieved from | ||
| * @param metadataEntity | ||
| * @returns AuthorityMetadataSource | ||
| */ | ||
| private updateCloudDiscoveryMetadata; | ||
| private updateCloudDiscoveryMetadataFromLocalSources; | ||
| /** | ||
| * Parse cloudDiscoveryMetadata config or check knownAuthorities | ||
| */ | ||
| private getCloudDiscoveryMetadataFromConfig; | ||
| /** | ||
| * Called to get metadata from network if CloudDiscoveryMetadata was not populated by config | ||
| * | ||
| * @param hasHardcodedMetadata boolean | ||
| */ | ||
| private getCloudDiscoveryMetadataFromNetwork; | ||
| /** | ||
| * Helper function to determine if this host is included in the knownAuthorities config option | ||
| */ | ||
| private isInKnownAuthorities; | ||
| /** | ||
| * helper function to populate the authority based on azureCloudOptions | ||
| * @param authorityString | ||
| * @param azureCloudOptions | ||
| */ | ||
| static generateAuthority(authorityString: string, azureCloudOptions?: AzureCloudOptions): string; | ||
| /** | ||
| * Creates cloud discovery metadata object from a given host | ||
| * @param host | ||
| */ | ||
| static createCloudDiscoveryMetadataFromHost(host: string): CloudDiscoveryMetadata; | ||
| /** | ||
| * helper function to generate environment from authority object | ||
| */ | ||
| getPreferredCache(): string; | ||
| /** | ||
| * Returns whether or not the provided host is an alias of this authority instance | ||
| * @param host | ||
| */ | ||
| isAlias(host: string): boolean; | ||
| /** | ||
| * Returns whether or not the provided host is an alias of a known Microsoft authority for purposes of endpoint discovery | ||
| * @param host | ||
| */ | ||
| isAliasOfKnownMicrosoftAuthority(host: string): boolean; | ||
| /** | ||
| * Checks whether the provided host is that of a public cloud authority | ||
| * | ||
| * @param authority string | ||
| * @returns bool | ||
| */ | ||
| static isPublicCloudAuthority(host: string): boolean; | ||
| /** | ||
| * Rebuild the authority string with the region | ||
| * | ||
| * @param host string | ||
| * @param region string | ||
| */ | ||
| static buildRegionalAuthorityString(host: string, region: string, queryString?: string): string; | ||
| /** | ||
| * Replace the endpoints in the metadata object with their regional equivalents. | ||
| * | ||
| * @param metadata OpenIdConfigResponse | ||
| * @param azureRegion string | ||
| */ | ||
| static replaceWithRegionalInformation(metadata: OpenIdConfigResponse, azureRegion: string): OpenIdConfigResponse; | ||
| /** | ||
| * Transform CIAM_AUTHORIY as per the below rules: | ||
| * If no path segments found and it is a CIAM authority (hostname ends with .ciamlogin.com), then transform it | ||
| * | ||
| * NOTE: The transformation path should go away once STS supports CIAM with the format: `tenantIdorDomain.ciamlogin.com` | ||
| * `ciamlogin.com` can also change in the future and we should accommodate the same | ||
| * | ||
| * @param authority | ||
| */ | ||
| static transformCIAMAuthority(authority: string): string; | ||
| } | ||
| /** | ||
| * Extract tenantId from authority | ||
| */ | ||
| export declare function getTenantFromAuthorityString(authority: string): string | undefined; | ||
| export declare function formatAuthorityUri(authorityUri: string): string; | ||
| export declare function buildStaticAuthorityOptions(authOptions: Partial<AuthorityOptions>): StaticAuthorityOptions; | ||
| //# sourceMappingURL=Authority.d.ts.map |
| {"version":3,"file":"Authority.d.ts","sourceRoot":"","sources":["../../../src/authority/Authority.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAEH,oBAAoB,EACvB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAKtC,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAY9D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACH,gBAAgB,EAEhB,sBAAsB,EACzB,MAAM,u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,mCAAmC;IAoE3C;;;;OAIG;YACW,oCAAoC;IA6GlD;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAa5B;;;;OAIG;IACH,MAAM,CAAC,iBAAiB,CACpB,eAAe,EAAE,MAAM,EACvB,iBAAiB,CAAC,EAAE,iBAAiB,GACtC,MAAM;IAkBT;;;OAGG;IACH,MAAM,CAAC,oCAAoC,CACvC,IAAI,EAAE,MAAM,GACb,sBAAsB;IAQzB;;OAEG;IACH,iBAAiB,IAAI,MAAM;IAY3B;;;OAGG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI9B;;;OAGG;IACH,gCAAgC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIvD;;;;;OAKG;IACH,MAAM,CAAC,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIpD;;;;;OAKG;IACH,MAAM,CAAC,4BAA4B,CAC/B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,MAAM,GACrB,MAAM;IAyBT;;;;;OAKG;IACH,MAAM,CAAC,8BAA8B,CACjC,QAAQ,EAAE,oBAAoB,EAC9B,WAAW,EAAE,MAAM,GACpB,oBAAoB;IAyBvB;;;;;;;;OAQG;IACH,MAAM,CAAC,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;CAmB3D;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CACxC,SAAS,EAAE,MAAM,GAClB,MAAM,GAAG,SAAS,CAsBpB;AAED,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAI/D;AAED,wBAAgB,2BAA2B,CACvC,WAAW,EAAE,OAAO,CAAC,gBAAgB,CAAC,GACvC,sBAAsB,CAoBxB"} |
| import { Authority } from "./Authority.js"; | ||
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { ICacheManager } from "../cache/interface/ICacheManager.js"; | ||
| import { AuthorityOptions } from "./AuthorityOptions.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| /** | ||
| * Create an authority object of the correct type based on the url | ||
| * Performs basic authority validation - checks to see if the authority is of a valid type (i.e. aad, b2c, adfs) | ||
| * | ||
| * Also performs endpoint discovery. | ||
| * | ||
| * @param authorityUri | ||
| * @param networkClient | ||
| * @param cacheManager | ||
| * @param authorityOptions | ||
| * @param logger | ||
| * @param correlationId | ||
| * @param performanceClient | ||
| * @internal | ||
| */ | ||
| export declare function createDiscoveredInstance(authorityUri: string, networkClient: INetworkModule, cacheManager: ICacheManager, authorityOptions: AuthorityOptions, logger: Logger, correlationId: string, performanceClient: IPerformanceClient): Promise<Authority>; | ||
| //# sourceMappingURL=AuthorityFactory.d.ts.map |
| {"version":3,"file":"AuthorityFactory.d.ts","sourceRoot":"","sources":["../../../src/authority/AuthorityFactory.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAsB,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAK9D,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAIpF;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,wBAAwB,CAC1C,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,cAAc,EAC7B,YAAY,EAAE,aAAa,EAC3B,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,EACrB,iBAAiB,EAAE,kBAAkB,GACtC,OAAO,CAAC,SAAS,CAAC,CAgCpB"} |
| import { Logger } from "../logger/Logger.js"; | ||
| import { AuthorityMetadataSource } from "../utils/Constants.js"; | ||
| import { StaticAuthorityOptions } from "./AuthorityOptions.js"; | ||
| import { CloudDiscoveryMetadata } from "./CloudDiscoveryMetadata.js"; | ||
| import { CloudInstanceDiscoveryResponse } from "./CloudInstanceDiscoveryResponse.js"; | ||
| import { OpenIdConfigResponse } from "./OpenIdConfigResponse.js"; | ||
| type RawMetadata = { | ||
| endpointMetadata: { | ||
| [key: string]: OpenIdConfigResponse; | ||
| }; | ||
| instanceDiscoveryMetadata: CloudInstanceDiscoveryResponse; | ||
| }; | ||
| export declare const rawMetdataJSON: RawMetadata; | ||
| export declare const EndpointMetadata: { | ||
| [key: string]: OpenIdConfigResponse; | ||
| }; | ||
| export declare const InstanceDiscoveryMetadata: CloudInstanceDiscoveryResponse; | ||
| export declare const InstanceDiscoveryMetadataAliases: Set<String>; | ||
| /** | ||
| * Attempts to get an aliases array from the static authority metadata sources based on the canonical authority host | ||
| * @param staticAuthorityOptions | ||
| * @param logger | ||
| * @returns | ||
| */ | ||
| export declare function getAliasesFromStaticSources(staticAuthorityOptions: StaticAuthorityOptions, logger: Logger, correlationId: string): string[]; | ||
| /** | ||
| * Returns aliases for from the raw cloud discovery metadata passed in | ||
| * @param authorityHost | ||
| * @param rawCloudDiscoveryMetadata | ||
| * @returns | ||
| */ | ||
| export declare function getAliasesFromMetadata(logger: Logger, correlationId: string, authorityHost?: string, cloudDiscoveryMetadata?: CloudDiscoveryMetadata[], source?: AuthorityMetadataSource): string[] | null; | ||
| /** | ||
| * Get cloud discovery metadata for common authorities | ||
| */ | ||
| export declare function getCloudDiscoveryMetadataFromHardcodedValues(authorityHost: string): CloudDiscoveryMetadata | null; | ||
| /** | ||
| * Searches instance discovery network response for the entry that contains the host in the aliases list | ||
| * @param response | ||
| * @param authority | ||
| */ | ||
| export declare function getCloudDiscoveryMetadataFromNetworkResponse(response: CloudDiscoveryMetadata[], authorityHost: string): CloudDiscoveryMetadata | null; | ||
| export {}; | ||
| //# sourceMappingURL=AuthorityMetadata.d.ts.map |
| {"version":3,"file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,CACxD,QAAQ,EAAE,sBAAsB,EAAE,EAClC,aAAa,EAAE,MAAM,GACtB,sBAAsB,GAAG,IAAI,CAS/B"} |
| import { ProtocolMode } from "./ProtocolMode.js"; | ||
| import { OIDCOptions } from "./OIDCOptions.js"; | ||
| import { AzureRegionConfiguration } from "./AzureRegionConfiguration.js"; | ||
| import { CloudInstanceDiscoveryResponse } from "./CloudInstanceDiscoveryResponse.js"; | ||
| export type AuthorityOptions = { | ||
| protocolMode: ProtocolMode; | ||
| OIDCOptions?: OIDCOptions | null; | ||
| knownAuthorities: Array<string>; | ||
| cloudDiscoveryMetadata: string; | ||
| authorityMetadata: string; | ||
| azureRegionConfiguration?: AzureRegionConfiguration; | ||
| authority?: string; | ||
| }; | ||
| export type StaticAuthorityOptions = Partial<Pick<AuthorityOptions, "knownAuthorities">> & { | ||
| canonicalAuthority?: string; | ||
| cloudDiscoveryMetadata?: CloudInstanceDiscoveryResponse; | ||
| }; | ||
| export declare const AzureCloudInstance: { | ||
| readonly None: "none"; | ||
| readonly AzurePublic: "https://login.microsoftonline.com"; | ||
| readonly AzurePpe: "https://login.windows-ppe.net"; | ||
| readonly AzureChina: "https://login.chinacloudapi.cn"; | ||
| readonly AzureGermany: "https://login.microsoftonline.de"; | ||
| readonly AzureUsGovernment: "https://login.microsoftonline.us"; | ||
| }; | ||
| export type AzureCloudInstance = (typeof AzureCloudInstance)[keyof typeof AzureCloudInstance]; | ||
| //# sourceMappingURL=AuthorityOptions.d.ts.map |
| {"version":3,"file":"AuthorityOptions.d.ts","sourceRoot":"","sources":["../../../src/authority/AuthorityOptions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,YAAY,EAAE,YAAY,CAAC;IAC3B,WAAW,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACjC,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,OAAO,CACxC,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAC7C,GAAG;IACA,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,sBAAsB,CAAC,EAAE,8BAA8B,CAAC;CAC3D,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;CAkBrB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAC1B,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC"} |
| /** | ||
| * Authority types supported by MSAL. | ||
| */ | ||
| export declare const AuthorityType: { | ||
| readonly Default: 0; | ||
| readonly Adfs: 1; | ||
| readonly Dsts: 2; | ||
| readonly Ciam: 3; | ||
| }; | ||
| export type AuthorityType = (typeof AuthorityType)[keyof typeof AuthorityType]; | ||
| //# sourceMappingURL=AuthorityType.d.ts.map |
| {"version":3,"file":"AuthorityType.d.ts","sourceRoot":"","sources":["../../../src/authority/AuthorityType.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC"} |
| export type AzureRegion = string; | ||
| //# sourceMappingURL=AzureRegion.d.ts.map |
| {"version":3,"file":"AzureRegion.d.ts","sourceRoot":"","sources":["../../../src/authority/AzureRegion.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC"} |
| import { AzureRegion } from "./AzureRegion.js"; | ||
| export type AzureRegionConfiguration = { | ||
| azureRegion?: AzureRegion; | ||
| environmentRegion: string | undefined; | ||
| }; | ||
| //# sourceMappingURL=AzureRegionConfiguration.d.ts.map |
| {"version":3,"file":"AzureRegionConfiguration.d.ts","sourceRoot":"","sources":["../../../src/authority/AzureRegionConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAO/C,MAAM,MAAM,wBAAwB,GAAG;IACnC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC,CAAC"} |
| export type CloudDiscoveryMetadata = { | ||
| preferred_network: string; | ||
| preferred_cache: string; | ||
| aliases: Array<string>; | ||
| }; | ||
| //# sourceMappingURL=CloudDiscoveryMetadata.d.ts.map |
| {"version":3,"file":"CloudDiscoveryMetadata.d.ts","sourceRoot":"","sources":["../../../src/authority/CloudDiscoveryMetadata.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,sBAAsB,GAAG;IACjC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B,CAAC"} |
| /** | ||
| * The OpenID Configuration Endpoint Response type. Used by the authority class to get relevant OAuth endpoints. | ||
| */ | ||
| export type CloudInstanceDiscoveryErrorResponse = { | ||
| error: String; | ||
| error_description: String; | ||
| error_codes?: Array<Number>; | ||
| timestamp?: String; | ||
| trace_id?: String; | ||
| correlation_id?: String; | ||
| error_uri?: String; | ||
| }; | ||
| export declare function isCloudInstanceDiscoveryErrorResponse(response: object): boolean; | ||
| //# sourceMappingURL=CloudInstanceDiscoveryErrorResponse.d.ts.map |
| {"version":3,"file":"CloudInstanceDiscoveryErrorResponse.d.ts","sourceRoot":"","sources":["../../../src/authority/CloudInstanceDiscoveryErrorResponse.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,qCAAqC,CACjD,QAAQ,EAAE,MAAM,GACjB,OAAO,CAKT"} |
| import { CloudDiscoveryMetadata } from "./CloudDiscoveryMetadata.js"; | ||
| /** | ||
| * The OpenID Configuration Endpoint Response type. Used by the authority class to get relevant OAuth endpoints. | ||
| */ | ||
| export type CloudInstanceDiscoveryResponse = { | ||
| tenant_discovery_endpoint: string; | ||
| metadata: Array<CloudDiscoveryMetadata>; | ||
| }; | ||
| export declare function isCloudInstanceDiscoveryResponse(response: object): boolean; | ||
| //# sourceMappingURL=CloudInstanceDiscoveryResponse.d.ts.map |
| {"version":3,"file":"CloudInstanceDiscoveryResponse.d.ts","sourceRoot":"","sources":["../../../src/authority/CloudInstanceDiscoveryResponse.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG;IACzC,yBAAyB,EAAE,MAAM,CAAC;IAClC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;CAC3C,CAAC;AAEF,wBAAgB,gCAAgC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAK1E"} |
| export type ImdsOptions = { | ||
| headers?: { | ||
| Metadata: string; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=ImdsOptions.d.ts.map |
| {"version":3,"file":"ImdsOptions.d.ts","sourceRoot":"","sources":["../../../src/authority/ImdsOptions.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,WAAW,GAAG;IACtB,OAAO,CAAC,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC;KACpB,CAAC;CACL,CAAC"} |
| import { ResponseMode } from "../utils/Constants.js"; | ||
| /** | ||
| * Options for the OIDC protocol mode. | ||
| */ | ||
| export type OIDCOptions = { | ||
| responseMode?: ResponseMode; | ||
| defaultScopes?: Array<string>; | ||
| }; | ||
| //# sourceMappingURL=OIDCOptions.d.ts.map |
| {"version":3,"file":"OIDCOptions.d.ts","sourceRoot":"","sources":["../../../src/authority/OIDCOptions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACjC,CAAC"} |
| /** | ||
| * Tenant Discovery Response which contains the relevant OAuth endpoints and data needed for authentication and authorization. | ||
| */ | ||
| export type OpenIdConfigResponse = { | ||
| authorization_endpoint: string; | ||
| token_endpoint: string; | ||
| end_session_endpoint?: string; | ||
| issuer: string; | ||
| jwks_uri: string; | ||
| }; | ||
| export declare function isOpenIdConfigResponse(response: object): boolean; | ||
| //# sourceMappingURL=OpenIdConfigResponse.d.ts.map |
| {"version":3,"file":"OpenIdConfigResponse.d.ts","sourceRoot":"","sources":["../../../src/authority/OpenIdConfigResponse.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAOhE"} |
| /** | ||
| * Protocol modes supported by MSAL. | ||
| */ | ||
| export declare const ProtocolMode: { | ||
| /** | ||
| * Auth Code + PKCE with Entra ID (formerly AAD) specific optimizations and features | ||
| */ | ||
| readonly AAD: "AAD"; | ||
| /** | ||
| * Auth Code + PKCE without Entra ID specific optimizations and features. For use only with non-Microsoft owned authorities. | ||
| * Support is limited for this mode. | ||
| */ | ||
| readonly OIDC: "OIDC"; | ||
| /** | ||
| * Encrypted Authorize Response (EAR) with Entra ID specific optimizations and features | ||
| */ | ||
| readonly EAR: "EAR"; | ||
| }; | ||
| export type ProtocolMode = (typeof ProtocolMode)[keyof typeof ProtocolMode]; | ||
| //# sourceMappingURL=ProtocolMode.d.ts.map |
| {"version":3,"file":"ProtocolMode.d.ts","sourceRoot":"","sources":["../../../src/authority/ProtocolMode.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,YAAY;IACrB;;OAEG;;IAEH;;;OAGG;;IAEH;;OAEG;;CAEG,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"} |
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { RegionDiscoveryMetadata } from "./RegionDiscoveryMetadata.js"; | ||
| import { ImdsOptions } from "./ImdsOptions.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| export declare class RegionDiscovery { | ||
| protected networkInterface: INetworkModule; | ||
| private logger; | ||
| protected performanceClient: IPerformanceClient; | ||
| protected correlationId: string; | ||
| protected static IMDS_OPTIONS: ImdsOptions; | ||
| constructor(networkInterface: INetworkModule, logger: Logger, performanceClient: IPerformanceClient, correlationId: string); | ||
| /** | ||
| * Detect the region from the application's environment. | ||
| * | ||
| * @returns Promise<string | null> | ||
| */ | ||
| detectRegion(environmentRegion: string | undefined, regionDiscoveryMetadata: RegionDiscoveryMetadata): Promise<string | null>; | ||
| /** | ||
| * Make the call to the IMDS endpoint | ||
| * | ||
| * @param imdsEndpointUrl | ||
| * @returns Promise<NetworkResponse<string>> | ||
| */ | ||
| private getRegionFromIMDS; | ||
| /** | ||
| * Get the most recent version of the IMDS endpoint available | ||
| * | ||
| * @returns Promise<string | null> | ||
| */ | ||
| private getCurrentVersion; | ||
| } | ||
| //# sourceMappingURL=RegionDiscovery.d.ts.map |
| {"version":3,"file":"RegionDiscovery.d.ts","sourceRoot":"","sources":["../../../src/authority/RegionDiscovery.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAI9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAGpF,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,qBAAa,eAAe;IAExB,SAAS,CAAC,gBAAgB,EAAE,cAAc,CAAC;IAE3C,OAAO,CAAC,MAAM,CAAS;IAEvB,SAAS,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;IAEhD,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC;IAEhC,SAAS,CAAC,MAAM,CAAC,YAAY,EAAE,WAAW,CAIxC;gBAGE,gBAAgB,EAAE,cAAc,EAChC,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,kBAAkB,EACrC,aAAa,EAAE,MAAM;IAQzB;;;;OAIG;IACU,YAAY,CACrB,iBAAiB,EAAE,MAAM,GAAG,SAAS,EACrC,uBAAuB,EAAE,uBAAuB,GACjD,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IA8EzB;;;;;OAKG;YACW,iBAAiB;IAW/B;;;;OAIG;YACW,iBAAiB;CAyBlC"} |
| import { RegionDiscoveryOutcomes, RegionDiscoverySources } from "../utils/Constants.js"; | ||
| export type RegionDiscoveryMetadata = { | ||
| region_used?: string; | ||
| region_source?: RegionDiscoverySources; | ||
| region_outcome?: RegionDiscoveryOutcomes; | ||
| }; | ||
| //# sourceMappingURL=RegionDiscoveryMetadata.d.ts.map |
| {"version":3,"file":"RegionDiscoveryMetadata.d.ts","sourceRoot":"","sources":["../../../src/authority/RegionDiscoveryMetadata.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,uBAAuB,EACvB,sBAAsB,EACzB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,uBAAuB,GAAG;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC,cAAc,CAAC,EAAE,uBAAuB,CAAC;CAC5C,CAAC"} |
| /// <reference types="node" resolution-mode="require"/> | ||
| /// <reference types="node" resolution-mode="require"/> | ||
| import { AccountInfo } from "../../account/AccountInfo.js"; | ||
| import { LoggerOptions } from "../../config/ClientConfiguration.js"; | ||
| import { NativeRequest } from "../../request/NativeRequest.js"; | ||
| import { NativeSignOutRequest } from "../../request/NativeSignOutRequest.js"; | ||
| import { AuthenticationResult } from "../../response/AuthenticationResult.js"; | ||
| export interface INativeBrokerPlugin { | ||
| isBrokerAvailable: boolean; | ||
| setLogger(loggerOptions: LoggerOptions): void; | ||
| getAccountById(accountId: string, correlationId: string): Promise<AccountInfo>; | ||
| getAllAccounts(clientId: string, correlationId: string): Promise<AccountInfo[]>; | ||
| acquireTokenSilent(request: NativeRequest): Promise<AuthenticationResult>; | ||
| acquireTokenInteractive(request: NativeRequest, windowHandle?: Buffer): Promise<AuthenticationResult>; | ||
| signOut(request: NativeSignOutRequest): Promise<void>; | ||
| } | ||
| //# sourceMappingURL=INativeBrokerPlugin.d.ts.map |
| {"version":3,"file":"INativeBrokerPlugin.d.ts","sourceRoot":"","sources":["../../../../src/broker/nativeBroker/INativeBrokerPlugin.ts"],"names":[],"mappings":";;AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAE9E,MAAM,WAAW,mBAAmB;IAChC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IAC9C,cAAc,CACV,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,WAAW,CAAC,CAAC;IACxB,cAAc,CACV,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAC1B,kBAAkB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAC1E,uBAAuB,CACnB,OAAO,EAAE,aAAa,EACtB,YAAY,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACjC,OAAO,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzD"} |
| import { AccountInfo } from "../account/AccountInfo.js"; | ||
| import { StaticAuthorityOptions } from "../authority/AuthorityOptions.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| import { StoreInCache } from "../request/StoreInCache.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { AccessTokenEntity } from "./entities/AccessTokenEntity.js"; | ||
| import { AccountEntity } from "./entities/AccountEntity.js"; | ||
| import { AppMetadataEntity } from "./entities/AppMetadataEntity.js"; | ||
| import { AuthorityMetadataEntity } from "./entities/AuthorityMetadataEntity.js"; | ||
| import { CacheRecord } from "./entities/CacheRecord.js"; | ||
| import { CredentialEntity } from "./entities/CredentialEntity.js"; | ||
| import { IdTokenEntity } from "./entities/IdTokenEntity.js"; | ||
| import { RefreshTokenEntity } from "./entities/RefreshTokenEntity.js"; | ||
| import { ServerTelemetryEntity } from "./entities/ServerTelemetryEntity.js"; | ||
| import { ThrottlingEntity } from "./entities/ThrottlingEntity.js"; | ||
| import { ICacheManager } from "./interface/ICacheManager.js"; | ||
| import { AccountFilter, AppMetadataCache, AppMetadataFilter, CredentialFilter, TokenKeys, ValidCredentialType } from "./utils/CacheTypes.js"; | ||
| /** | ||
| * Interface class which implement cache storage functions used by MSAL to perform validity checks, and store tokens. | ||
| * @internal | ||
| */ | ||
| export declare abstract class CacheManager implements ICacheManager { | ||
| protected clientId: string; | ||
| protected cryptoImpl: ICrypto; | ||
| private commonLogger; | ||
| private staticAuthorityOptions?; | ||
| protected performanceClient: IPerformanceClient; | ||
| constructor(clientId: string, cryptoImpl: ICrypto, logger: Logger, performanceClient: IPerformanceClient, staticAuthorityOptions?: StaticAuthorityOptions); | ||
| /** | ||
| * fetch the account entity from the platform cache | ||
| * @param accountKey | ||
| */ | ||
| abstract getAccount(accountKey: string, correlationId: string): AccountEntity | null; | ||
| /** | ||
| * set account entity in the platform cache | ||
| * @param account | ||
| * @param correlationId | ||
| */ | ||
| abstract setAccount(account: AccountEntity, correlationId: string, kmsi: boolean, apiId: number): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param idTokenKey | ||
| */ | ||
| abstract getIdTokenCredential(idTokenKey: string, correlationId: string): IdTokenEntity | null; | ||
| /** | ||
| * set idToken entity to the platform cache | ||
| * @param idToken | ||
| * @param correlationId | ||
| */ | ||
| abstract setIdTokenCredential(idToken: IdTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param accessTokenKey | ||
| */ | ||
| abstract getAccessTokenCredential(accessTokenKey: string, correlationId: string): AccessTokenEntity | null; | ||
| /** | ||
| * set accessToken entity to the platform cache | ||
| * @param accessToken | ||
| * @param correlationId | ||
| */ | ||
| abstract setAccessTokenCredential(accessToken: AccessTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param refreshTokenKey | ||
| */ | ||
| abstract getRefreshTokenCredential(refreshTokenKey: string, correlationId: string): RefreshTokenEntity | null; | ||
| /** | ||
| * set refreshToken entity to the platform cache | ||
| * @param refreshToken | ||
| * @param correlationId | ||
| */ | ||
| abstract setRefreshTokenCredential(refreshToken: RefreshTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch appMetadata entity from the platform cache | ||
| * @param appMetadataKey | ||
| * @param correlationId | ||
| */ | ||
| abstract getAppMetadata(appMetadataKey: string, correlationId: string): AppMetadataEntity | null; | ||
| /** | ||
| * set appMetadata entity to the platform cache | ||
| * @param appMetadata | ||
| */ | ||
| abstract setAppMetadata(appMetadata: AppMetadataEntity, correlationId: string): void; | ||
| /** | ||
| * fetch server telemetry entity from the platform cache | ||
| * @param serverTelemetryKey | ||
| * @param correlationId | ||
| */ | ||
| abstract getServerTelemetry(serverTelemetryKey: string, correlationId: string): ServerTelemetryEntity | null; | ||
| /** | ||
| * set server telemetry entity to the platform cache | ||
| * @param serverTelemetryKey | ||
| * @param serverTelemetry | ||
| * @param correlationId | ||
| */ | ||
| abstract setServerTelemetry(serverTelemetryKey: string, serverTelemetry: ServerTelemetryEntity, correlationId: string): void; | ||
| /** | ||
| * fetch cloud discovery metadata entity from the platform cache | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| abstract getAuthorityMetadata(key: string, correlationId: string): AuthorityMetadataEntity | null; | ||
| /** | ||
| * | ||
| */ | ||
| abstract getAuthorityMetadataKeys(): Array<string>; | ||
| /** | ||
| * set cloud discovery metadata entity to the platform cache | ||
| * @param key | ||
| * @param value | ||
| * @param correlationId | ||
| */ | ||
| abstract setAuthorityMetadata(key: string, value: AuthorityMetadataEntity, correlationId: string): void; | ||
| /** | ||
| * fetch throttling entity from the platform cache | ||
| * @param throttlingCacheKey | ||
| * @param correlationId | ||
| */ | ||
| abstract getThrottlingCache(throttlingCacheKey: string, correlationId: string): ThrottlingEntity | null; | ||
| /** | ||
| * set throttling entity to the platform cache | ||
| * @param throttlingCacheKey | ||
| * @param throttlingCache | ||
| */ | ||
| abstract setThrottlingCache(throttlingCacheKey: string, throttlingCache: ThrottlingEntity, correlationId: string): void; | ||
| /** | ||
| * Function to remove an item from cache given its key. | ||
| * @param key | ||
| */ | ||
| abstract removeItem(key: string, correlationId: string): void; | ||
| /** | ||
| * Function which retrieves all current keys from the cache. | ||
| */ | ||
| abstract getKeys(): string[]; | ||
| /** | ||
| * Function which retrieves all account keys from the cache | ||
| */ | ||
| abstract getAccountKeys(): string[]; | ||
| /** | ||
| * Function which retrieves all token keys from the cache | ||
| */ | ||
| abstract getTokenKeys(): TokenKeys; | ||
| /** | ||
| * Returns credential cache key from the entity | ||
| * @param credential | ||
| */ | ||
| abstract generateCredentialKey(credential: CredentialEntity): string; | ||
| /** | ||
| * Returns the account cache key from the account info | ||
| * @param account | ||
| */ | ||
| abstract generateAccountKey(account: AccountInfo): string; | ||
| /** | ||
| * Returns all the accounts in the cache that match the optional filter. If no filter is provided, all accounts are returned. | ||
| * @param accountFilter - (Optional) filter to narrow down the accounts returned | ||
| * @returns Array of AccountInfo objects in cache | ||
| */ | ||
| getAllAccounts(accountFilter: AccountFilter | undefined, correlationId: string): AccountInfo[]; | ||
| /** | ||
| * Gets first tenanted AccountInfo object found based on provided filters | ||
| */ | ||
| getAccountInfoFilteredBy(accountFilter: AccountFilter, correlationId: string): AccountInfo | null; | ||
| /** | ||
| * Returns a single matching | ||
| * @param accountFilter | ||
| * @returns | ||
| */ | ||
| getBaseAccountInfo(accountFilter: AccountFilter, correlationId: string): AccountInfo | null; | ||
| /** | ||
| * Matches filtered account entities with cached ID tokens that match the tenant profile-specific account filters | ||
| * and builds the account info objects from the matching ID token's claims | ||
| * @param cachedAccounts | ||
| * @param accountFilter | ||
| * @returns Array of AccountInfo objects that match account and tenant profile filters | ||
| */ | ||
| private buildTenantProfiles; | ||
| private getTenantedAccountInfoByFilter; | ||
| private getTenantProfilesFromAccountEntity; | ||
| private tenantProfileMatchesFilter; | ||
| private idTokenClaimsMatchTenantProfileFilter; | ||
| /** | ||
| * saves a cache record | ||
| * @param cacheRecord {CacheRecord} | ||
| * @param storeInCache {?StoreInCache} | ||
| * @param correlationId {?string} correlation id | ||
| */ | ||
| saveCacheRecord(cacheRecord: CacheRecord, correlationId: string, kmsi: boolean, apiId: number, storeInCache?: StoreInCache): Promise<void>; | ||
| /** | ||
| * saves access token credential | ||
| * @param credential | ||
| */ | ||
| private saveAccessToken; | ||
| /** | ||
| * Retrieve account entities matching all provided tenant-agnostic filters; if no filter is set, get all account entities in the cache | ||
| * Not checking for casing as keys are all generated in lower case, remember to convert to lower case if object properties are compared | ||
| * @param accountFilter - An object containing Account properties to filter by | ||
| */ | ||
| getAccountsFilteredBy(accountFilter: AccountFilter, correlationId: string): AccountEntity[]; | ||
| /** | ||
| * Returns whether or not the given credential entity matches the filter | ||
| * @param entity | ||
| * @param filter | ||
| * @param correlationId | ||
| * @returns | ||
| */ | ||
| credentialMatchesFilter(entity: ValidCredentialType, filter: CredentialFilter, correlationId: string): boolean; | ||
| /** | ||
| * retrieve appMetadata matching all provided filters; if no filter is set, get all appMetadata | ||
| * @param filter | ||
| * @param correlationId | ||
| */ | ||
| getAppMetadataFilteredBy(filter: AppMetadataFilter, correlationId: string): AppMetadataCache; | ||
| /** | ||
| * retrieve authorityMetadata that contains a matching alias | ||
| * @param host | ||
| * @param correlationId | ||
| */ | ||
| getAuthorityMetadataByAlias(host: string, correlationId: string): AuthorityMetadataEntity | null; | ||
| /** | ||
| * Removes all accounts and related tokens from cache. | ||
| */ | ||
| removeAllAccounts(correlationId: string): void; | ||
| /** | ||
| * Removes the account and related tokens for a given account key | ||
| * @param account | ||
| */ | ||
| removeAccount(account: AccountInfo, correlationId: string): void; | ||
| /** | ||
| * Removes credentials associated with the provided account | ||
| * @param account | ||
| */ | ||
| removeAccountContext(account: AccountInfo, correlationId: string): void; | ||
| /** | ||
| * returns a boolean if the given credential is removed | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| removeAccessToken(key: string, correlationId: string): void; | ||
| /** | ||
| * Removes all app metadata objects from cache. | ||
| */ | ||
| removeAppMetadata(correlationId: string): boolean; | ||
| /** | ||
| * Retrieve IdTokenEntity from cache | ||
| * @param account {AccountInfo} | ||
| * @param tokenKeys {?TokenKeys} | ||
| * @param targetRealm {?string} | ||
| * @param performanceClient {?IPerformanceClient} | ||
| * @param correlationId {?string} | ||
| */ | ||
| getIdToken(account: AccountInfo, correlationId: string, tokenKeys?: TokenKeys, targetRealm?: string): IdTokenEntity | null; | ||
| /** | ||
| * Gets all idTokens matching the given filter | ||
| * @param filter | ||
| * @returns | ||
| */ | ||
| getIdTokensByFilter(filter: CredentialFilter, correlationId: string, tokenKeys?: TokenKeys): Map<string, IdTokenEntity>; | ||
| /** | ||
| * Validate the cache key against filter before retrieving and parsing cache value | ||
| * @param key | ||
| * @param filter | ||
| * @returns | ||
| */ | ||
| idTokenKeyMatchesFilter(inputKey: string, filter: CredentialFilter): boolean; | ||
| /** | ||
| * Removes idToken from the cache | ||
| * @param key | ||
| */ | ||
| removeIdToken(key: string, correlationId: string): void; | ||
| /** | ||
| * Removes refresh token from the cache | ||
| * @param key | ||
| */ | ||
| removeRefreshToken(key: string, correlationId: string): void; | ||
| /** | ||
| * Retrieve AccessTokenEntity from cache | ||
| * @param account {AccountInfo} | ||
| * @param request {BaseAuthRequest} | ||
| * @param tokenKeys {?TokenKeys} | ||
| * @param performanceClient {?IPerformanceClient} | ||
| */ | ||
| getAccessToken(account: AccountInfo, request: BaseAuthRequest, tokenKeys?: TokenKeys, targetRealm?: string): AccessTokenEntity | null; | ||
| /** | ||
| * Validate the cache key against filter before retrieving and parsing cache value | ||
| * @param key | ||
| * @param filter | ||
| * @param keyMustContainAllScopes | ||
| * @returns | ||
| */ | ||
| accessTokenKeyMatchesFilter(inputKey: string, filter: CredentialFilter, keyMustContainAllScopes: boolean): boolean; | ||
| /** | ||
| * Gets all access tokens matching the filter | ||
| * @param filter | ||
| * @returns | ||
| */ | ||
| getAccessTokensByFilter(filter: CredentialFilter, correlationId: string): AccessTokenEntity[]; | ||
| /** | ||
| * Helper to retrieve the appropriate refresh token from cache | ||
| * @param account {AccountInfo} | ||
| * @param familyRT {boolean} | ||
| * @param tokenKeys {?TokenKeys} | ||
| * @param performanceClient {?IPerformanceClient} | ||
| * @param correlationId {?string} | ||
| */ | ||
| getRefreshToken(account: AccountInfo, familyRT: boolean, correlationId: string, tokenKeys?: TokenKeys): RefreshTokenEntity | null; | ||
| /** | ||
| * Validate the cache key against filter before retrieving and parsing cache value | ||
| * @param key | ||
| * @param filter | ||
| */ | ||
| refreshTokenKeyMatchesFilter(inputKey: string, filter: CredentialFilter): boolean; | ||
| /** | ||
| * Retrieve AppMetadataEntity from cache | ||
| */ | ||
| readAppMetadataFromCache(environment: string, correlationId: string): AppMetadataEntity | null; | ||
| /** | ||
| * Return the family_id value associated with FOCI | ||
| * @param environment | ||
| * @param clientId | ||
| */ | ||
| isAppMetadataFOCI(environment: string, correlationId: string): boolean; | ||
| /** | ||
| * helper to match account ids | ||
| * @param value | ||
| * @param homeAccountId | ||
| */ | ||
| private matchHomeAccountId; | ||
| /** | ||
| * helper to match account ids | ||
| * @param entity | ||
| * @param localAccountId | ||
| * @returns | ||
| */ | ||
| private matchLocalAccountIdFromTokenClaims; | ||
| private matchLocalAccountIdFromTenantProfile; | ||
| /** | ||
| * helper to match names | ||
| * @param entity | ||
| * @param name | ||
| * @returns true if the downcased name properties are present and match in the filter and the entity | ||
| */ | ||
| private matchName; | ||
| /** | ||
| * helper to match usernames | ||
| * @param entity | ||
| * @param username | ||
| * @returns | ||
| */ | ||
| private matchUsername; | ||
| /** | ||
| * helper to match loginhints | ||
| * @param entity | ||
| * @param loginHint | ||
| * @returns | ||
| */ | ||
| private matchLoginHintWithTenantProfile; | ||
| /** | ||
| * helper to match assertion | ||
| * @param value | ||
| * @param oboAssertion | ||
| */ | ||
| private matchUserAssertionHash; | ||
| /** | ||
| * helper to match environment | ||
| * @param value | ||
| * @param environment | ||
| */ | ||
| private matchEnvironment; | ||
| /** | ||
| * helper to match credential type | ||
| * @param entity | ||
| * @param credentialType | ||
| */ | ||
| private matchCredentialType; | ||
| /** | ||
| * helper to match client ids | ||
| * @param entity | ||
| * @param clientId | ||
| */ | ||
| private matchClientId; | ||
| /** | ||
| * helper to match family ids | ||
| * @param entity | ||
| * @param familyId | ||
| */ | ||
| private matchFamilyId; | ||
| /** | ||
| * helper to match realm | ||
| * @param entity | ||
| * @param realm | ||
| */ | ||
| private matchRealm; | ||
| /** | ||
| * helper to match nativeAccountId | ||
| * @param entity | ||
| * @param nativeAccountId | ||
| * @returns boolean indicating the match result | ||
| */ | ||
| private matchNativeAccountId; | ||
| /** | ||
| * helper to match loginHint which can be either: | ||
| * 1. login_hint ID token claim | ||
| * 2. username in cached account object | ||
| * 3. upn in ID token claims | ||
| * @param entity | ||
| * @param loginHint | ||
| * @returns | ||
| */ | ||
| private matchLoginHintFromTokenClaims; | ||
| /** | ||
| * Helper to match sid | ||
| * @param entity | ||
| * @param sid | ||
| * @returns true if the sid claim is present and matches the filter | ||
| */ | ||
| private matchSid; | ||
| private matchAuthorityType; | ||
| /** | ||
| * Returns true if the target scopes are a subset of the current entity's scopes, false otherwise. | ||
| * @param entity | ||
| * @param target | ||
| */ | ||
| private matchTarget; | ||
| /** | ||
| * Returns true if the credential's tokenType or Authentication Scheme matches the one in the request, false otherwise | ||
| * @param entity | ||
| * @param tokenType | ||
| */ | ||
| private matchTokenType; | ||
| /** | ||
| * Returns true if the credential's keyId matches the one in the request, false otherwise | ||
| * @param entity | ||
| * @param keyId | ||
| */ | ||
| private matchKeyId; | ||
| /** | ||
| * returns if a given cache entity is of the type appmetadata | ||
| * @param key | ||
| */ | ||
| private isAppMetadata; | ||
| /** | ||
| * returns if a given cache entity is of the type authoritymetadata | ||
| * @param key | ||
| */ | ||
| protected isAuthorityMetadata(key: string): boolean; | ||
| /** | ||
| * returns cache key used for cloud instance metadata | ||
| */ | ||
| generateAuthorityMetadataCacheKey(authority: string): string; | ||
| /** | ||
| * Helper to convert serialized data to object | ||
| * @param obj | ||
| * @param json | ||
| */ | ||
| static toObject<T>(obj: T, json: object): T; | ||
| } | ||
| /** @internal */ | ||
| export declare class DefaultStorageClass extends CacheManager { | ||
| setAccount(): Promise<void>; | ||
| getAccount(): AccountEntity; | ||
| setIdTokenCredential(): Promise<void>; | ||
| getIdTokenCredential(): IdTokenEntity; | ||
| setAccessTokenCredential(): Promise<void>; | ||
| getAccessTokenCredential(): AccessTokenEntity; | ||
| setRefreshTokenCredential(): Promise<void>; | ||
| getRefreshTokenCredential(): RefreshTokenEntity; | ||
| setAppMetadata(): void; | ||
| getAppMetadata(): AppMetadataEntity; | ||
| setServerTelemetry(): void; | ||
| getServerTelemetry(): ServerTelemetryEntity; | ||
| setAuthorityMetadata(): void; | ||
| getAuthorityMetadata(): AuthorityMetadataEntity | null; | ||
| getAuthorityMetadataKeys(): Array<string>; | ||
| setThrottlingCache(): void; | ||
| getThrottlingCache(): ThrottlingEntity; | ||
| removeItem(): boolean; | ||
| getKeys(): string[]; | ||
| getAccountKeys(): string[]; | ||
| getTokenKeys(): TokenKeys; | ||
| generateCredentialKey(): string; | ||
| generateAccountKey(): string; | ||
| } | ||
| //# sourceMappingURL=CacheManager.d.ts.map |
| {"version":3,"file":"CacheManager.d.ts","sourceRoot":"","sources":["../../../src/cache/CacheManager.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,WAAW,EAGd,MAAM,2BAA2B,CAAC;AAInC,OAAO,EAAE,sBAAsB,EAAE,M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B,IAAI,MAAM;IAG/B,kBAAkB,IAAI,MAAM;CAG/B"} |
| import { CredentialEntity } from "./CredentialEntity.js"; | ||
| import { AuthenticationScheme } from "../../utils/Constants.js"; | ||
| /** | ||
| * Access token cache type | ||
| */ | ||
| export type AccessTokenEntity = CredentialEntity & { | ||
| /** Full tenant or organizational identifier that the account belongs to */ | ||
| realm: string; | ||
| /** Permissions that are included in the token, or for refresh tokens, the resource identifier. */ | ||
| target: string; | ||
| /** Absolute device time when entry was created in the cache. */ | ||
| cachedAt: string; | ||
| /** Token expiry time, calculated based on current UTC time in seconds. Represented as a string. */ | ||
| expiresOn: string; | ||
| /** Additional extended expiry time until when token is valid in case of server-side outage. Represented as string in UTC seconds. */ | ||
| extendedExpiresOn?: string; | ||
| /** Used for proactive refresh */ | ||
| refreshOn?: string; | ||
| /** Matches the authentication scheme for which the token was issued (i.e. Bearer or pop) */ | ||
| tokenType?: AuthenticationScheme; | ||
| /** Matches the resource passed into the request for MCP flows */ | ||
| resource?: string; | ||
| }; | ||
| //# sourceMappingURL=AccessTokenEntity.d.ts.map |
| {"version":3,"file":"AccessTokenEntity.d.ts","sourceRoot":"","sources":["../../../../src/cache/entities/AccessTokenEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,GAAG;IAC/C,2EAA2E;IAC3E,KAAK,EAAE,MAAM,CAAC;IACd,kGAAkG;IAClG,MAAM,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,QAAQ,EAAE,MAAM,CAAC;IACjB,mGAAmG;IACnG,SAAS,EAAE,MAAM,CAAC;IAClB,qIAAqI;IACrI,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4FAA4F;IAC5F,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"} |
| import { TenantProfile, DataBoundary } from "../../account/AccountInfo.js"; | ||
| /** | ||
| * Type that defines required and optional parameters for an Account field (based on universal cache schema implemented by all MSALs). | ||
| * | ||
| * Key : Value Schema | ||
| * | ||
| * Key: <home_account_id>-<environment>-<realm*> | ||
| * | ||
| * Value Schema: | ||
| * { | ||
| * homeAccountId: home account identifier for the auth scheme, | ||
| * environment: entity that issued the token, represented as a full host | ||
| * realm: Full tenant or organizational identifier that the account belongs to | ||
| * localAccountId: Original tenant-specific accountID, usually used for legacy cases | ||
| * username: primary username that represents the user, usually corresponds to preferred_username in the v2 endpt | ||
| * authorityType: Accounts authority type as a string | ||
| * name: Full name for the account, including given name and family name, | ||
| * lastModificationTime: last time this entity was modified in the cache | ||
| * lastModificationApp: | ||
| * nativeAccountId: Account identifier on the native device | ||
| * tenantProfiles: Array of tenant profile objects for each tenant that the account has authenticated with in the browser | ||
| * } | ||
| * @internal | ||
| */ | ||
| export type AccountEntity = { | ||
| homeAccountId: string; | ||
| environment: string; | ||
| realm: string; | ||
| localAccountId: string; | ||
| username: string; | ||
| authorityType: string; | ||
| loginHint?: string; | ||
| clientInfo?: string; | ||
| name?: string; | ||
| lastModificationTime?: string; | ||
| lastModificationApp?: string; | ||
| cloudGraphHostName?: string; | ||
| msGraphHost?: string; | ||
| nativeAccountId?: string; | ||
| tenantProfiles?: Array<TenantProfile>; | ||
| /** Timestamp when the entry was last updated */ | ||
| lastUpdatedAt: string; | ||
| dataBoundary?: DataBoundary; | ||
| /** API identifier for telemetry to indicate which API cached this account */ | ||
| cachedByApiId?: number; | ||
| }; | ||
| //# sourceMappingURL=AccountEntity.d.ts.map |
| {"version":3,"file":"AccountEntity.d.ts","sourceRoot":"","sources":["../../../../src/cache/entities/AccountEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,aAAa,GAAG;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IACtC,gDAAgD;IAChD,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,6EAA6E;IAC7E,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC"} |
| /** | ||
| * App Metadata Cache Type | ||
| */ | ||
| export type AppMetadataEntity = { | ||
| /** clientId of the application */ | ||
| clientId: string; | ||
| /** entity that issued the token, represented as a full host */ | ||
| environment: string; | ||
| /** Family identifier, '1' represents Microsoft Family */ | ||
| familyId?: string; | ||
| }; | ||
| //# sourceMappingURL=AppMetadataEntity.d.ts.map |
| {"version":3,"file":"AppMetadataEntity.d.ts","sourceRoot":"","sources":["../../../../src/cache/entities/AppMetadataEntity.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,kCAAkC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,+DAA+D;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"} |
| /** @internal */ | ||
| export type AuthorityMetadataEntity = { | ||
| aliases: Array<string>; | ||
| preferred_cache: string; | ||
| preferred_network: string; | ||
| canonical_authority: string; | ||
| authorization_endpoint: string; | ||
| token_endpoint: string; | ||
| end_session_endpoint?: string; | ||
| issuer: string; | ||
| aliasesFromNetwork: boolean; | ||
| endpointsFromNetwork: boolean; | ||
| expiresAt: number; | ||
| jwks_uri: string; | ||
| }; | ||
| //# sourceMappingURL=AuthorityMetadataEntity.d.ts.map |
| {"version":3,"file":"AuthorityMetadataEntity.d.ts","sourceRoot":"","sources":["../../../../src/cache/entities/AuthorityMetadataEntity.ts"],"names":[],"mappings":"AAKA,gBAAgB;AAChB,MAAM,MAAM,uBAAuB,GAAG;IAClC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,OAAO,CAAC;IAC5B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"} |
| import { IdTokenEntity } from "./IdTokenEntity.js"; | ||
| import { AccessTokenEntity } from "./AccessTokenEntity.js"; | ||
| import { RefreshTokenEntity } from "./RefreshTokenEntity.js"; | ||
| import { AccountEntity } from "./AccountEntity.js"; | ||
| import { AppMetadataEntity } from "./AppMetadataEntity.js"; | ||
| /** @internal */ | ||
| export type CacheRecord = { | ||
| account?: AccountEntity | null; | ||
| idToken?: IdTokenEntity | null; | ||
| accessToken?: AccessTokenEntity | null; | ||
| refreshToken?: RefreshTokenEntity | null; | ||
| appMetadata?: AppMetadataEntity | null; | ||
| }; | ||
| //# sourceMappingURL=CacheRecord.d.ts.map |
| {"version":3,"file":"CacheRecord.d.ts","sourceRoot":"","sources":["../../../../src/cache/entities/CacheRecord.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,gBAAgB;AAChB,MAAM,MAAM,WAAW,GAAG;IACtB,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAC/B,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAC/B,WAAW,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACvC,YAAY,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACzC,WAAW,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;CAC1C,CAAC"} |
| import { CredentialType, AuthenticationScheme } from "../../utils/Constants.js"; | ||
| /** | ||
| * Credential Cache Type | ||
| */ | ||
| export type CredentialEntity = { | ||
| /** Identifier for the user in their home tenant*/ | ||
| homeAccountId: string; | ||
| /** Entity that issued the token, represented as a full host */ | ||
| environment: string; | ||
| /** Type of credential */ | ||
| credentialType: CredentialType; | ||
| /** Client ID of the application */ | ||
| clientId: string; | ||
| /** Actual credential as a string */ | ||
| secret: string; | ||
| /** Family ID identifier, usually only used for refresh tokens */ | ||
| familyId?: string; | ||
| /** Full tenant or organizational identifier that the account belongs to */ | ||
| realm?: string; | ||
| /** Permissions that are included in the token, or for refresh tokens, the resource identifier. */ | ||
| target?: string; | ||
| /** Matches the SHA 256 hash of the obo_assertion for the OBO flow */ | ||
| userAssertionHash?: string; | ||
| /** Matches the authentication scheme for which the token was issued (i.e. Bearer or pop) */ | ||
| tokenType?: AuthenticationScheme; | ||
| /** KeyId for PoP and SSH tokens stored in the kid claim */ | ||
| keyId?: string; | ||
| /** Timestamp when the entry was last updated */ | ||
| lastUpdatedAt: string; | ||
| }; | ||
| //# sourceMappingURL=CredentialEntity.d.ts.map |
| {"version":3,"file":"CredentialEntity.d.ts","sourceRoot":"","sources":["../../../../src/cache/entities/CredentialEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC3B,kDAAkD;IAClD,aAAa,EAAE,MAAM,CAAC;IACtB,+DAA+D;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB,yBAAyB;IACzB,cAAc,EAAE,cAAc,CAAC;IAC/B,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,oCAAoC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kGAAkG;IAClG,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,4FAA4F;IAC5F,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC"} |
| import { CredentialEntity } from "./CredentialEntity.js"; | ||
| /** | ||
| * Id Token Cache Type | ||
| */ | ||
| export type IdTokenEntity = CredentialEntity & { | ||
| /** Full tenant or organizational identifier that the account belongs to */ | ||
| realm: string; | ||
| }; | ||
| //# sourceMappingURL=IdTokenEntity.d.ts.map |
| {"version":3,"file":"IdTokenEntity.d.ts","sourceRoot":"","sources":["../../../../src/cache/entities/IdTokenEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,gBAAgB,GAAG;IAC3C,4EAA4E;IAC5E,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC"} |
| import { CredentialEntity } from "./CredentialEntity.js"; | ||
| /** | ||
| * Refresh Token Cache Type | ||
| */ | ||
| export type RefreshTokenEntity = CredentialEntity & { | ||
| expiresOn?: string; | ||
| }; | ||
| //# sourceMappingURL=RefreshTokenEntity.d.ts.map |
| {"version":3,"file":"RefreshTokenEntity.d.ts","sourceRoot":"","sources":["../../../../src/cache/entities/RefreshTokenEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"} |
| export type ServerTelemetryEntity = { | ||
| failedRequests: Array<string | number>; | ||
| errors: string[]; | ||
| cacheHits: number; | ||
| nativeBrokerErrorCode?: string; | ||
| }; | ||
| //# sourceMappingURL=ServerTelemetryEntity.d.ts.map |
| {"version":3,"file":"ServerTelemetryEntity.d.ts","sourceRoot":"","sources":["../../../../src/cache/entities/ServerTelemetryEntity.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,qBAAqB,GAAG;IAChC,cAAc,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACvC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAClC,CAAC"} |
| export type ThrottlingEntity = { | ||
| throttleTime: number; | ||
| error?: string; | ||
| errorCodes?: Array<string>; | ||
| errorMessage?: string; | ||
| subError?: string; | ||
| }; | ||
| //# sourceMappingURL=ThrottlingEntity.d.ts.map |
| {"version":3,"file":"ThrottlingEntity.d.ts","sourceRoot":"","sources":["../../../../src/cache/entities/ThrottlingEntity.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,gBAAgB,GAAG;IAE3B,YAAY,EAAE,MAAM,CAAC;IAErB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"} |
| import { AccountFilter } from "../utils/CacheTypes.js"; | ||
| import { CacheRecord } from "../entities/CacheRecord.js"; | ||
| import { AccountEntity } from "../entities/AccountEntity.js"; | ||
| import { AccountInfo } from "../../account/AccountInfo.js"; | ||
| import { AppMetadataEntity } from "../entities/AppMetadataEntity.js"; | ||
| import { ServerTelemetryEntity } from "../entities/ServerTelemetryEntity.js"; | ||
| import { ThrottlingEntity } from "../entities/ThrottlingEntity.js"; | ||
| import { IdTokenEntity } from "../entities/IdTokenEntity.js"; | ||
| import { AccessTokenEntity } from "../entities/AccessTokenEntity.js"; | ||
| import { RefreshTokenEntity } from "../entities/RefreshTokenEntity.js"; | ||
| import { AuthorityMetadataEntity } from "../entities/AuthorityMetadataEntity.js"; | ||
| import { StoreInCache } from "../../request/StoreInCache.js"; | ||
| export interface ICacheManager { | ||
| /** | ||
| * fetch the account entity from the platform cache | ||
| * @param accountKey | ||
| * @param correlationId | ||
| */ | ||
| getAccount(accountKey: string, correlationId: string): AccountEntity | null; | ||
| /** | ||
| * set account entity in the platform cache | ||
| * @param account | ||
| * @param correlationId | ||
| */ | ||
| setAccount(account: AccountEntity, correlationId: string, kmsi: boolean, apiId: number): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param idTokenKey | ||
| * @param correlationId | ||
| */ | ||
| getIdTokenCredential(idTokenKey: string, correlationId: string): IdTokenEntity | null; | ||
| /** | ||
| * set idToken entity to the platform cache | ||
| * @param idToken | ||
| * @param correlationId | ||
| */ | ||
| setIdTokenCredential(idToken: IdTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param accessTokenKey | ||
| * @param correlationId | ||
| */ | ||
| getAccessTokenCredential(accessTokenKey: string, correlationId: string): AccessTokenEntity | null; | ||
| /** | ||
| * set idToken entity to the platform cache | ||
| * @param accessToken | ||
| * @param correlationId | ||
| */ | ||
| setAccessTokenCredential(accessToken: AccessTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch the idToken entity from the platform cache | ||
| * @param refreshTokenKey | ||
| * @param correlationId | ||
| */ | ||
| getRefreshTokenCredential(refreshTokenKey: string, correlationId: string): RefreshTokenEntity | null; | ||
| /** | ||
| * set idToken entity to the platform cache | ||
| * @param refreshToken | ||
| * @param correlationId | ||
| */ | ||
| setRefreshTokenCredential(refreshToken: RefreshTokenEntity, correlationId: string, kmsi: boolean): Promise<void>; | ||
| /** | ||
| * fetch appMetadata entity from the platform cache | ||
| * @param appMetadataKey | ||
| * @param correlationId | ||
| */ | ||
| getAppMetadata(appMetadataKey: string, correlationId: string): AppMetadataEntity | null; | ||
| /** | ||
| * set appMetadata entity to the platform cache | ||
| * @param appMetadata | ||
| * @param correlationId | ||
| */ | ||
| setAppMetadata(appMetadata: AppMetadataEntity, correlationId: string): void; | ||
| /** | ||
| * fetch server telemetry entity from the platform cache | ||
| * @param serverTelemetryKey | ||
| * @param correlationId | ||
| */ | ||
| getServerTelemetry(serverTelemetryKey: string, correlationId: string): ServerTelemetryEntity | null; | ||
| /** | ||
| * set server telemetry entity to the platform cache | ||
| * @param serverTelemetryKey | ||
| * @param serverTelemetry | ||
| * @param correlationId | ||
| */ | ||
| setServerTelemetry(serverTelemetryKey: string, serverTelemetry: ServerTelemetryEntity, correlationId: string): void; | ||
| /** | ||
| * fetch cloud discovery metadata entity from the platform cache | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| getAuthorityMetadata(key: string, correlationId: string): AuthorityMetadataEntity | null; | ||
| /** | ||
| * Get cache keys for authority metadata | ||
| * @param correlationId | ||
| */ | ||
| getAuthorityMetadataKeys(correlationId: string): Array<string>; | ||
| /** | ||
| * set cloud discovery metadata entity to the platform cache | ||
| * @param key | ||
| * @param value | ||
| * @param correlationId | ||
| */ | ||
| setAuthorityMetadata(key: string, value: AuthorityMetadataEntity, correlationId: string): void; | ||
| /** | ||
| * Provide an alias to find a matching AuthorityMetadataEntity in cache | ||
| * @param host | ||
| * @param correlationId | ||
| */ | ||
| getAuthorityMetadataByAlias(host: string, correlationId: string): AuthorityMetadataEntity | null; | ||
| /** | ||
| * given an authority generates the cache key for authorityMetadata | ||
| * @param authority | ||
| * @param correlationId | ||
| */ | ||
| generateAuthorityMetadataCacheKey(authority: string, correlationId: string): string; | ||
| /** | ||
| * fetch throttling entity from the platform cache | ||
| * @param throttlingCacheKey | ||
| * @param correlationId | ||
| */ | ||
| getThrottlingCache(throttlingCacheKey: string, correlationId: string): ThrottlingEntity | null; | ||
| /** | ||
| * set throttling entity to the platform cache | ||
| * @param throttlingCacheKey | ||
| * @param throttlingCache | ||
| * @param correlationId | ||
| */ | ||
| setThrottlingCache(throttlingCacheKey: string, throttlingCache: ThrottlingEntity, correlationId: string): void; | ||
| /** | ||
| * Returns all accounts in cache | ||
| * @param filter | ||
| * @param correlationId | ||
| */ | ||
| getAllAccounts(filter: AccountFilter, correlationId: string): AccountInfo[]; | ||
| /** | ||
| * saves a cache record | ||
| * @param cacheRecord | ||
| * @param correlationId | ||
| * @param storeInCache | ||
| */ | ||
| saveCacheRecord(cacheRecord: CacheRecord, correlationId: string, kmsi: boolean, apiId: number, storeInCache?: StoreInCache): Promise<void>; | ||
| /** | ||
| * retrieve accounts matching all provided filters; if no filter is set, get all accounts | ||
| * @param filter | ||
| * @param correlationId | ||
| */ | ||
| getAccountsFilteredBy(filter: AccountFilter, correlationId: string): AccountEntity[]; | ||
| /** | ||
| * Get AccountInfo object based on provided filters | ||
| * @param filter | ||
| * @param correlationId | ||
| */ | ||
| getAccountInfoFilteredBy(filter: AccountFilter, correlationId: string): AccountInfo | null; | ||
| /** | ||
| * Removes all accounts and related tokens from cache. | ||
| * @param correlationId | ||
| */ | ||
| removeAllAccounts(correlationId: string): void; | ||
| /** | ||
| * returns a boolean if the given account is removed | ||
| * @param account | ||
| * @param correlationId | ||
| */ | ||
| removeAccount(account: AccountInfo, correlationId: string): void; | ||
| /** | ||
| * returns a boolean if the given account is removed | ||
| * @param account | ||
| * @param correlationId | ||
| */ | ||
| removeAccountContext(account: AccountInfo, correlationId: string): void; | ||
| /** | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| removeIdToken(key: string, correlationId: string): void; | ||
| /** | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| removeAccessToken(key: string, correlationId: string): void; | ||
| /** | ||
| * @param key | ||
| * @param correlationId | ||
| */ | ||
| removeRefreshToken(key: string, correlationId: string): void; | ||
| } | ||
| //# sourceMappingURL=ICacheManager.d.ts.map |
| {"version":3,"file":"ICacheManager.d.ts","sourceRoot":"","sources":["../../../../src/cache/interface/ICacheManager.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAA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AAC,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,GAAG,WAAW,EAAE,CAAC;IAE5E;;;;;OAKG;IACH,eAAe,CACX,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,MAAM,EACb,YAAY,CAAC,EAAE,YAAY,GAC5B,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;OAIG;IACH,qBAAqB,CACjB,MAAM,EAAE,aAAa,EACrB,aAAa,EAAE,MAAM,GACtB,aAAa,EAAE,CAAC;IAEnB;;;;OAIG;IACH,wBAAwB,CACpB,MAAM,EAAE,aAAa,EACrB,aAAa,EAAE,MAAM,GACtB,WAAW,GAAG,IAAI,CAAC;IAEtB;;;OAGG;IACH,iBAAiB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/C;;;;OAIG;IACH,aAAa,CAAC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjE;;;;OAIG;IACH,oBAAoB,CAAC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAExE;;;OAGG;IACH,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAExD;;;OAGG;IACH,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5D;;;OAGG;IACH,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAChE"} |
| import { TokenCacheContext } from "../persistence/TokenCacheContext.js"; | ||
| export interface ICachePlugin { | ||
| beforeCacheAccess: (tokenCacheContext: TokenCacheContext) => Promise<void>; | ||
| afterCacheAccess: (tokenCacheContext: TokenCacheContext) => Promise<void>; | ||
| } | ||
| //# sourceMappingURL=ICachePlugin.d.ts.map |
| {"version":3,"file":"ICachePlugin.d.ts","sourceRoot":"","sources":["../../../../src/cache/interface/ICachePlugin.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,MAAM,WAAW,YAAY;IACzB,iBAAiB,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3E,gBAAgB,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7E"} |
| export interface ISerializableTokenCache { | ||
| deserialize: (cache: string) => void; | ||
| serialize: () => string; | ||
| } | ||
| //# sourceMappingURL=ISerializableTokenCache.d.ts.map |
| {"version":3,"file":"ISerializableTokenCache.d.ts","sourceRoot":"","sources":["../../../../src/cache/interface/ISerializableTokenCache.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,uBAAuB;IACpC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,SAAS,EAAE,MAAM,MAAM,CAAC;CAC3B"} |
| import { ISerializableTokenCache } from "../interface/ISerializableTokenCache.js"; | ||
| /** | ||
| * This class instance helps track the memory changes facilitating | ||
| * decisions to read from and write to the persistent cache | ||
| */ export declare class TokenCacheContext { | ||
| /** | ||
| * boolean indicating cache change | ||
| */ | ||
| hasChanged: boolean; | ||
| /** | ||
| * serializable token cache interface | ||
| */ | ||
| cache: ISerializableTokenCache; | ||
| constructor(tokenCache: ISerializableTokenCache, hasChanged: boolean); | ||
| /** | ||
| * boolean which indicates the changes in cache | ||
| */ | ||
| get cacheHasChanged(): boolean; | ||
| /** | ||
| * function to retrieve the token cache | ||
| */ | ||
| get tokenCache(): ISerializableTokenCache; | ||
| } | ||
| //# sourceMappingURL=TokenCacheContext.d.ts.map |
| {"version":3,"file":"TokenCacheContext.d.ts","sourceRoot":"","sources":["../../../../src/cache/persistence/TokenCacheContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAElF;;;GAGG,CAAC,qBAAa,iBAAiB;IAC9B;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,uBAAuB,CAAC;gBAEnB,UAAU,EAAE,uBAAuB,EAAE,UAAU,EAAE,OAAO;IAKpE;;OAEG;IACH,IAAI,eAAe,IAAI,OAAO,CAE7B;IAED;;OAEG;IACH,IAAI,UAAU,IAAI,uBAAuB,CAExC;CACJ"} |
| import { Authority } from "../../authority/Authority.js"; | ||
| import { ICrypto } from "../../crypto/ICrypto.js"; | ||
| import { AccountInfo, TenantProfile } from "../../account/AccountInfo.js"; | ||
| import { AuthorityType } from "../../authority/AuthorityType.js"; | ||
| import { Logger } from "../../logger/Logger.js"; | ||
| import { TokenClaims } from "../../account/TokenClaims.js"; | ||
| import { AccountEntity } from "../entities/AccountEntity.js"; | ||
| /** | ||
| * Generate Account Id key component as per the schema: <home_account_id>-<environment> | ||
| */ | ||
| export declare function generateAccountId(accountEntity: AccountEntity): string; | ||
| /** | ||
| * Returns the AccountInfo interface for this account. | ||
| */ | ||
| export declare function getAccountInfo(accountEntity: AccountEntity): AccountInfo; | ||
| /** | ||
| * Returns true if the account entity is in single tenant format (outdated), false otherwise | ||
| */ | ||
| export declare function isSingleTenant(accountEntity: AccountEntity): boolean; | ||
| /** | ||
| * Build Account cache from IdToken, clientInfo and authority/policy. Associated with AAD. | ||
| * @param accountDetails | ||
| */ | ||
| export declare function createAccountEntity(accountDetails: { | ||
| homeAccountId: string; | ||
| idTokenClaims?: TokenClaims; | ||
| clientInfo?: string; | ||
| cloudGraphHostName?: string; | ||
| msGraphHost?: string; | ||
| environment?: string; | ||
| nativeAccountId?: string; | ||
| tenantProfiles?: Array<TenantProfile>; | ||
| }, authority: Authority, base64Decode?: (input: string) => string): AccountEntity; | ||
| /** | ||
| * Creates an AccountEntity object from AccountInfo | ||
| * @param accountInfo | ||
| * @param cloudGraphHostName | ||
| * @param msGraphHost | ||
| * @returns | ||
| */ | ||
| export declare function createAccountEntityFromAccountInfo(accountInfo: AccountInfo, cloudGraphHostName?: string, msGraphHost?: string): AccountEntity; | ||
| /** | ||
| * Generate HomeAccountId from server response | ||
| * @param serverClientInfo | ||
| * @param authType | ||
| */ | ||
| export declare function generateHomeAccountId(serverClientInfo: string, authType: AuthorityType, logger: Logger, cryptoObj: ICrypto, correlationId: string, idTokenClaims?: TokenClaims): string; | ||
| /** | ||
| * Validates an entity: checks for all expected params | ||
| * @param entity | ||
| */ | ||
| export declare function isAccountEntity(entity: object): entity is AccountEntity; | ||
| //# sourceMappingURL=AccountEntityUtils.d.ts.map |
| {"version":3,"file":"AccountEntityUtils.d.ts","sourceRoot":"","sources":["../../../../src/cache/utils/AccountEntityUtils.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,OAAO,EACH,WAAW,EACX,aAAa,EAGhB,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EACH,WAAW,EAEd,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAMtE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,aAAa,EAAE,aAAa,GAAG,WAAW,CAkCxE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,aAAa,EAAE,aAAa,GAAG,OAAO,CAEpE;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAC/B,cAAc,EAAE;IACZ,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,WAAW,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CACzC,EACD,SAAS,EAAE,SAAS,EACpB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GACzC,aAAa,CAuFf;AAED;;;;;;GAMG;AACH,wBAAgB,kCAAkC,CAC9C,WAAW,EAAE,WAAW,EACxB,kBAAkB,CAAC,EAAE,MAAM,EAC3B,WAAW,CAAC,EAAE,MAAM,GACrB,aAAa,CAoCf;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACjC,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,aAAa,EACvB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,OAAO,EAClB,aAAa,EAAE,MAAM,EACrB,aAAa,CAAC,EAAE,WAAW,GAC5B,MAAM,CAoBR;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,aAAa,CAavE"} |
| import { CloudDiscoveryMetadata } from "../../authority/CloudDiscoveryMetadata.js"; | ||
| import { OpenIdConfigResponse } from "../../authority/OpenIdConfigResponse.js"; | ||
| import * as Constants from "../../utils/Constants.js"; | ||
| import { AccessTokenEntity } from "../entities/AccessTokenEntity.js"; | ||
| import { AppMetadataEntity } from "../entities/AppMetadataEntity.js"; | ||
| import { AuthorityMetadataEntity } from "../entities/AuthorityMetadataEntity.js"; | ||
| import { CredentialEntity } from "../entities/CredentialEntity.js"; | ||
| import { IdTokenEntity } from "../entities/IdTokenEntity.js"; | ||
| import { RefreshTokenEntity } from "../entities/RefreshTokenEntity.js"; | ||
| /** | ||
| * Create IdTokenEntity | ||
| * @param homeAccountId | ||
| * @param authenticationResult | ||
| * @param clientId | ||
| * @param authority | ||
| */ | ||
| export declare function createIdTokenEntity(homeAccountId: string, environment: string, idToken: string, clientId: string, tenantId: string): IdTokenEntity; | ||
| /** | ||
| * Create AccessTokenEntity | ||
| * @param homeAccountId | ||
| * @param environment | ||
| * @param accessToken | ||
| * @param clientId | ||
| * @param tenantId | ||
| * @param scopes | ||
| * @param expiresOn | ||
| * @param extExpiresOn | ||
| */ | ||
| export declare function createAccessTokenEntity(homeAccountId: string, environment: string, accessToken: string, clientId: string, tenantId: string, scopes: string, expiresOn: number, extExpiresOn: number, base64Decode: (input: string) => string, refreshOn?: number, tokenType?: Constants.AuthenticationScheme, userAssertionHash?: string, keyId?: string): AccessTokenEntity; | ||
| /** | ||
| * Create RefreshTokenEntity | ||
| * @param homeAccountId | ||
| * @param authenticationResult | ||
| * @param clientId | ||
| * @param authority | ||
| */ | ||
| export declare function createRefreshTokenEntity(homeAccountId: string, environment: string, refreshToken: string, clientId: string, familyId?: string, userAssertionHash?: string, expiresOn?: number): RefreshTokenEntity; | ||
| export declare function isCredentialEntity(entity: object): entity is CredentialEntity; | ||
| /** | ||
| * Validates an entity: checks for all expected params | ||
| * @param entity | ||
| */ | ||
| export declare function isAccessTokenEntity(entity: object): entity is AccessTokenEntity; | ||
| /** | ||
| * Validates an entity: checks for all expected params | ||
| * @param entity | ||
| */ | ||
| export declare function isIdTokenEntity(entity: object): entity is IdTokenEntity; | ||
| /** | ||
| * Validates an entity: checks for all expected params | ||
| * @param entity | ||
| */ | ||
| export declare function isRefreshTokenEntity(entity: object): entity is RefreshTokenEntity; | ||
| /** | ||
| * validates if a given cache entry is "Telemetry", parses <key,value> | ||
| * @param key | ||
| * @param entity | ||
| */ | ||
| export declare function isServerTelemetryEntity(key: string, entity?: object): boolean; | ||
| /** | ||
| * validates if a given cache entry is "Throttling", parses <key,value> | ||
| * @param key | ||
| * @param entity | ||
| */ | ||
| export declare function isThrottlingEntity(key: string, entity?: object): boolean; | ||
| /** | ||
| * Generate AppMetadata Cache Key as per the schema: appmetadata-<environment>-<client_id> | ||
| */ | ||
| export declare function generateAppMetadataKey({ environment, clientId, }: AppMetadataEntity): string; | ||
| export declare function isAppMetadataEntity(key: string, entity: object): boolean; | ||
| /** | ||
| * Validates an entity: checks for all expected params | ||
| * @param entity | ||
| */ | ||
| export declare function isAuthorityMetadataEntity(key: string, entity: object): boolean; | ||
| /** | ||
| * Reset the exiresAt value | ||
| */ | ||
| export declare function generateAuthorityMetadataExpiresAt(): number; | ||
| export declare function updateAuthorityEndpointMetadata(authorityMetadata: AuthorityMetadataEntity, updatedValues: OpenIdConfigResponse, fromNetwork: boolean): void; | ||
| export declare function updateCloudDiscoveryMetadata(authorityMetadata: AuthorityMetadataEntity, updatedValues: CloudDiscoveryMetadata, fromNetwork: boolean): void; | ||
| /** | ||
| * Returns whether or not the data needs to be refreshed | ||
| */ | ||
| export declare function isAuthorityMetadataExpired(metadata: AuthorityMetadataEntity): boolean; | ||
| //# sourceMappingURL=CacheHelpers.d.ts.map |
| {"version":3,"file":"CacheHelpers.d.ts","sourceRoot":"","sources":["../../../../src/cache/utils/CacheHelpers.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAK/E,OAAO,KAAK,SAAS,MAAM,0BAA0B,CAAC;AAEtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE;;;;;;GAMG;AACH,wBAAgB,mBA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uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAa7E;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAYxE;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,EACnC,WAAW,EACX,QAAQ,GACX,EAAE,iBAAiB,GAAG,MAAM,CAS5B;AAMD,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAUxE;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACrC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,GACf,OAAO,CAmBT;AAED;;GAEG;AACH,wBAAgB,kCAAkC,IAAI,MAAM,CAK3D;AAED,wBAAgB,+BAA+B,CAC3C,iBAAiB,EAAE,uBAAuB,EAC1C,aAAa,EAAE,oBAAoB,EACnC,WAAW,EAAE,OAAO,GACrB,IAAI,CAQN;AAED,wBAAgB,4BAA4B,CACxC,iBAAiB,EAAE,uBAAuB,EAC1C,aAAa,EAAE,sBAAsB,EACrC,WAAW,EAAE,OAAO,GACrB,IAAI,CAKN;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CACtC,QAAQ,EAAE,uBAAuB,GAClC,OAAO,CAET"} |
| import { AccountEntity } from "../entities/AccountEntity.js"; | ||
| import { IdTokenEntity } from "../entities/IdTokenEntity.js"; | ||
| import { AccessTokenEntity } from "../entities/AccessTokenEntity.js"; | ||
| import { RefreshTokenEntity } from "../entities/RefreshTokenEntity.js"; | ||
| import { AppMetadataEntity } from "../entities/AppMetadataEntity.js"; | ||
| import { ServerTelemetryEntity } from "../entities/ServerTelemetryEntity.js"; | ||
| import { ThrottlingEntity } from "../entities/ThrottlingEntity.js"; | ||
| import { AuthorityMetadataEntity } from "../entities/AuthorityMetadataEntity.js"; | ||
| import { AuthenticationScheme } from "../../utils/Constants.js"; | ||
| import { ScopeSet } from "../../request/ScopeSet.js"; | ||
| import { AccountInfo } from "../../account/AccountInfo.js"; | ||
| /** @internal */ | ||
| export type AccountCache = Record<string, AccountEntity>; | ||
| /** @internal */ | ||
| export type IdTokenCache = Record<string, IdTokenEntity>; | ||
| /** @internal */ | ||
| export type AccessTokenCache = Record<string, AccessTokenEntity>; | ||
| /** @internal */ | ||
| export type RefreshTokenCache = Record<string, RefreshTokenEntity>; | ||
| /** @internal */ | ||
| export type AppMetadataCache = Record<string, AppMetadataEntity>; | ||
| /** | ||
| * Object type of all accepted cache types | ||
| * @internal | ||
| */ | ||
| export type ValidCacheType = AccountEntity | IdTokenEntity | AccessTokenEntity | RefreshTokenEntity | AppMetadataEntity | AuthorityMetadataEntity | ServerTelemetryEntity | ThrottlingEntity | string; | ||
| /** | ||
| * Object type of all credential types | ||
| * @internal | ||
| */ | ||
| export type ValidCredentialType = IdTokenEntity | AccessTokenEntity | RefreshTokenEntity; | ||
| /** | ||
| * Account: <home_account_id>-<environment>-<realm*> | ||
| */ | ||
| export type AccountFilter = Omit<Partial<AccountInfo>, "idToken" | "idTokenClaims"> & { | ||
| realm?: string; | ||
| loginHint?: string; | ||
| sid?: string; | ||
| isHomeTenant?: boolean; | ||
| }; | ||
| export type TenantProfileFilter = Pick<AccountFilter, "localAccountId" | "loginHint" | "name" | "sid" | "isHomeTenant" | "username" | "upn">; | ||
| /** | ||
| * Credential: <home_account_id*>-<environment>-<credential_type>-<client_id>-<realm*>-<target*>-<scheme*> | ||
| */ | ||
| export type CredentialFilter = { | ||
| homeAccountId?: string; | ||
| environment?: string; | ||
| credentialType?: string; | ||
| clientId?: string; | ||
| familyId?: string; | ||
| realm?: string; | ||
| target?: ScopeSet; | ||
| userAssertionHash?: string; | ||
| tokenType?: AuthenticationScheme; | ||
| keyId?: string; | ||
| }; | ||
| /** | ||
| * AppMetadata: appmetadata-<environment>-<client_id> | ||
| */ | ||
| export type AppMetadataFilter = { | ||
| environment?: string; | ||
| clientId?: string; | ||
| }; | ||
| export type TokenKeys = { | ||
| idToken: string[]; | ||
| accessToken: string[]; | ||
| refreshToken: string[]; | ||
| }; | ||
| //# sourceMappingURL=CacheTypes.d.ts.map |
| {"version":3,"file":"CacheTypes.d.ts","sourceRoot":"","sources":["../../../../src/cache/utils/CacheTypes.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,gBAAgB;AAChB,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AACzD,gBAAgB;AAChB,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AACzD,gBAAgB;AAChB,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;AACjE,gBAAgB;AAChB,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;AACnE,gBAAgB;AAChB,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,i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B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,EAAE,MAAM,EAAE,CAAC;CAC1B,CAAC"} |
| import { CommonAuthorizationCodeRequest } from "../request/CommonAuthorizationCodeRequest.js"; | ||
| import { Authority } from "../authority/Authority.js"; | ||
| import { ClientConfiguration, CommonClientConfiguration } from "../config/ClientConfiguration.js"; | ||
| import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
| import { CommonEndSessionRequest } from "../request/CommonEndSessionRequest.js"; | ||
| import { AuthorizationCodePayload } from "../response/AuthorizationCodePayload.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| /** | ||
| * Oauth2.0 Authorization Code client | ||
| * @internal | ||
| */ | ||
| export declare class AuthorizationCodeClient { | ||
| protected includeRedirectUri: boolean; | ||
| private oidcDefaultScopes; | ||
| logger: Logger; | ||
| protected config: CommonClientConfiguration; | ||
| protected cryptoUtils: ICrypto; | ||
| protected cacheManager: CacheManager; | ||
| protected networkClient: INetworkModule; | ||
| protected serverTelemetryManager: ServerTelemetryManager | null; | ||
| authority: Authority; | ||
| protected performanceClient: IPerformanceClient; | ||
| constructor(configuration: ClientConfiguration, performanceClient: IPerformanceClient); | ||
| /** | ||
| * API to acquire a token in exchange of 'authorization_code` acquired by the user in the first leg of the | ||
| * authorization_code_grant | ||
| * @param request | ||
| */ | ||
| acquireToken(request: CommonAuthorizationCodeRequest, apiId: number, authCodePayload?: AuthorizationCodePayload): Promise<AuthenticationResult>; | ||
| /** | ||
| * Used to log out the current user, and redirect the user to the postLogoutRedirectUri. | ||
| * Default behaviour is to redirect the user to `window.location.href`. | ||
| * @param authorityUri | ||
| */ | ||
| getLogoutUri(logoutRequest: CommonEndSessionRequest): string; | ||
| /** | ||
| * Executes POST request to token endpoint | ||
| * @param authority | ||
| * @param request | ||
| */ | ||
| private executeTokenRequest; | ||
| /** | ||
| * Generates a map for all the params to be sent to the service | ||
| * @param request | ||
| */ | ||
| private createTokenRequestBody; | ||
| /** | ||
| * This API validates the `EndSessionRequest` and creates a URL | ||
| * @param request | ||
| */ | ||
| private createLogoutUrlQueryString; | ||
| /** | ||
| * Updates the authority to the cloud instance provided in the authorization response | ||
| * @param cloudInstanceHostName - cloud instance host name from authorization code payload | ||
| * @param correlationId - request correlation id | ||
| */ | ||
| private updateTokenEndpointAuthority; | ||
| } | ||
| //# sourceMappingURL=AuthorizationCodeClient.d.ts.map |
| {"version":3,"file":"AuthorizationCodeClient.d.ts","sourceRoot":"","sources":["../../../src/client/AuthorizationCodeClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,8BAA8B,EAAE,MAAM,8CAA8C,CAAC;AAC9F,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAKtD,OAAO,EAEH,mBAAmB,EACnB,yBAAyB,EAE5B,MAAM,kCAAkC,CAAC;AAI1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAM3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAEhF,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AAWnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAYpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG9D;;;GAGG;AACH,qBAAa,uBAAuB;IAEhC,SAAS,CAAC,kBAAkB,EAAE,OAAO,CAAQ;IAC7C,OAAO,CAAC,iBAAiB,CAAC;IAGnB,MAAM,EAAE,MAAM,CAAC;IAGtB,SAAS,CAAC,MAAM,EAAE,yBAAyB,CAAC;IAG5C,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC;IAG/B,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAGrC,SAAS,CAAC,aAAa,EAAE,cAAc,CAAC;IAGxC,SAAS,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAGzD,SAAS,EAAE,SAAS,CAAC;IAG5B,SAAS,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;gBAG5C,aAAa,EAAE,mBAAmB,EAClC,iBAAiB,EAAE,kBAAkB;IA6BzC;;;;OAIG;IACG,YAAY,CACd,OAAO,EAAE,8BAA8B,EACvC,KAAK,EAAE,MAAM,EACb,eAAe,CAAC,EAAE,wBAAwB,GAC3C,OAAO,CAAC,oBAAoB,CAAC;IAmEhC;;;;OAIG;IACH,YAAY,CAAC,aAAa,EAAE,uBAAuB,GAAG,MAAM;IAgB5D;;;;OAIG;YACW,mBAAmB;IAyEjC;;;OAGG;YACW,sBAAsB;IAoOpC;;;OAGG;IACH,OAAO,CAAC,0BAA0B;IAmDlC;;;;OAIG;YACW,4BAA4B;CAgB7C"} |
| import { ClientConfiguration, CommonClientConfiguration } from "../config/ClientConfiguration.js"; | ||
| import { CommonRefreshTokenRequest } from "../request/CommonRefreshTokenRequest.js"; | ||
| import { Authority } from "../authority/Authority.js"; | ||
| import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
| import { CommonSilentFlowRequest } from "../request/CommonSilentFlowRequest.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| /** | ||
| * OAuth2.0 refresh token client | ||
| * @internal | ||
| */ | ||
| export declare class RefreshTokenClient { | ||
| logger: Logger; | ||
| protected config: CommonClientConfiguration; | ||
| protected cryptoUtils: ICrypto; | ||
| protected cacheManager: CacheManager; | ||
| protected networkClient: INetworkModule; | ||
| protected serverTelemetryManager: ServerTelemetryManager | null; | ||
| authority: Authority; | ||
| protected performanceClient: IPerformanceClient; | ||
| constructor(configuration: ClientConfiguration, performanceClient: IPerformanceClient); | ||
| acquireToken(request: CommonRefreshTokenRequest, apiId: number): Promise<AuthenticationResult>; | ||
| /** | ||
| * Gets cached refresh token and attaches to request, then calls acquireToken API | ||
| * @param request | ||
| */ | ||
| acquireTokenByRefreshToken(request: CommonSilentFlowRequest, apiId: number): Promise<AuthenticationResult>; | ||
| /** | ||
| * makes a network call to acquire tokens by exchanging RefreshToken available in userCache; throws if refresh token is not cached | ||
| * @param request | ||
| */ | ||
| private acquireTokenWithCachedRefreshToken; | ||
| /** | ||
| * Constructs the network message and makes a NW call to the underlying secure token service | ||
| * @param request | ||
| * @param authority | ||
| */ | ||
| private executeTokenRequest; | ||
| /** | ||
| * Helper function to create the token request body | ||
| * @param request | ||
| */ | ||
| private createTokenRequestBody; | ||
| } | ||
| //# sourceMappingURL=RefreshTokenClient.d.ts.map |
| {"version":3,"file":"RefreshTokenClient.d.ts","sourceRoot":"","sources":["../../../src/client/RefreshTokenClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,mBAAmB,EACnB,yBAAyB,EAE5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAOtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAG3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAoBhF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAUpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAK7C;;;GAGG;AACH,qBAAa,kBAAkB;IAEpB,MAAM,EAAE,MAAM,CAAC;IAGtB,SAAS,CAAC,MAAM,EAAE,yBAAyB,CAAC;IAG5C,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC;IAG/B,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAGrC,SAAS,CAAC,aAAa,EAAE,cAAc,CAAC;IAGxC,SAAS,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAGzD,SAAS,EAAE,SAAS,CAAC;IAG5B,SAAS,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;gBAG5C,aAAa,EAAE,mBAAmB,EAClC,iBAAiB,EAAE,kBAAkB;IA0B5B,YAAY,CACrB,OAAO,EAAE,yBAAyB,EAClC,KAAK,EAAE,MAAM,GACd,OAAO,CAAC,oBAAoB,CAAC;IA+ChC;;;OAGG;IACU,0BAA0B,CACnC,OAAO,EAAE,uBAAuB,EAChC,KAAK,EAAE,MAAM,GACd,OAAO,CAAC,oBAAoB,CAAC;IAiEhC;;;OAGG;YACW,kCAAkC;IAiFhD;;;;OAIG;YACW,mBAAmB;IAqDjC;;;OAGG;YACW,sBAAsB;CAgLvC"} |
| import { ClientConfiguration, CommonClientConfiguration } from "../config/ClientConfiguration.js"; | ||
| import { CommonSilentFlowRequest } from "../request/CommonSilentFlowRequest.js"; | ||
| import { AuthenticationResult } from "../response/AuthenticationResult.js"; | ||
| import { CacheOutcome } from "../utils/Constants.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { Authority } from "../authority/Authority.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| /** @internal */ | ||
| export declare class SilentFlowClient { | ||
| logger: Logger; | ||
| protected config: CommonClientConfiguration; | ||
| protected cryptoUtils: ICrypto; | ||
| protected cacheManager: CacheManager; | ||
| protected networkClient: INetworkModule; | ||
| protected serverTelemetryManager: ServerTelemetryManager | null; | ||
| authority: Authority; | ||
| protected performanceClient: IPerformanceClient; | ||
| constructor(configuration: ClientConfiguration, performanceClient: IPerformanceClient); | ||
| /** | ||
| * Retrieves token from cache or throws an error if it must be refreshed. | ||
| * @param request | ||
| */ | ||
| acquireCachedToken(request: CommonSilentFlowRequest): Promise<[AuthenticationResult, CacheOutcome]>; | ||
| private setCacheOutcome; | ||
| /** | ||
| * Helper function to build response object from the CacheRecord | ||
| * @param cacheRecord | ||
| */ | ||
| private generateResultFromCacheRecord; | ||
| } | ||
| //# sourceMappingURL=SilentFlowClient.d.ts.map |
| {"version":3,"file":"SilentFlowClient.d.ts","sourceRoot":"","sources":["../../../src/client/SilentFlowClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,mBAAmB,EACnB,yBAAyB,EAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAQ3E,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAMpF,OAAO,EACH,SAAS,EAEZ,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AAGvF,gBAAgB;AAChB,qBAAa,gBAAgB;IAElB,MAAM,EAAE,MAAM,CAAC;IAGtB,SAAS,CAAC,MAAM,EAAE,yBAAyB,CAAC;IAG5C,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC;IAG/B,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAGrC,SAAS,CAAC,aAAa,EAAE,cAAc,CAAC;IAGxC,SAAS,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAGzD,SAAS,EAAE,SAAS,CAAC;IAG5B,SAAS,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;gBAG5C,aAAa,EAAE,mBAAmB,EAClC,iBAAiB,EAAE,kBAAkB;IA2BzC;;;OAGG;IACG,kBAAkB,CACpB,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,CAAC,oBAAoB,EAAE,YAAY,CAAC,CAAC;IAoHhD,OAAO,CAAC,eAAe;IAmBvB;;;OAGG;YACW,6BAA6B;CAkC9C"} |
| /** | ||
| * Extensibility interface, which allows the app developer to return a token, based on the passed-in parameters, instead of fetching tokens from | ||
| * the Identity Provider (AAD). | ||
| * Developers need to construct and return an AppTokenProviderResult object back to MSAL. MSAL will cache the token response | ||
| * in the same way it would do if the result were comming from AAD. | ||
| * This extensibility point is only defined for the client_credential flow, i.e. acquireTokenByClientCredential and | ||
| * meant for Azure SDK to enhance Managed Identity support. | ||
| */ | ||
| export interface IAppTokenProvider { | ||
| (appTokenProviderParameters: AppTokenProviderParameters): Promise<AppTokenProviderResult>; | ||
| } | ||
| /** | ||
| * Input object for the IAppTokenProvider extensiblity. MSAL will create this object, which can be used | ||
| * to help create an AppTokenProviderResult. | ||
| * | ||
| * - correlationId - the correlation Id associated with the request | ||
| * - tenantId - the tenant Id for which the token must be provided | ||
| * - scopes - the scopes for which the token must be provided | ||
| * - claims - any extra claims that the token must satisfy | ||
| */ | ||
| export type AppTokenProviderParameters = { | ||
| readonly correlationId?: string; | ||
| readonly tenantId: string; | ||
| readonly scopes: Array<string>; | ||
| readonly claims?: string; | ||
| }; | ||
| /** | ||
| * Output object for IAppTokenProvider extensiblity. | ||
| * | ||
| * - accessToken - the actual access token, typically in JWT format, that satisfies the request data AppTokenProviderParameters | ||
| * - expiresInSeconds - how long the tokens has before expiry, in seconds. Similar to the "expires_in" field in an AAD token response. | ||
| * - refreshInSeconds - how long the token has before it should be proactively refreshed. Similar to the "refresh_in" field in an AAD token response. | ||
| */ | ||
| export type AppTokenProviderResult = { | ||
| accessToken: string; | ||
| expiresInSeconds: number; | ||
| refreshInSeconds?: number; | ||
| }; | ||
| //# sourceMappingURL=AppTokenProvider.d.ts.map |
| {"version":3,"file":"AppTokenProvider.d.ts","sourceRoot":"","sources":["../../../src/config/AppTokenProvider.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAC9B,CACI,0BAA0B,EAAE,0BAA0B,GACvD,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACtC;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACrC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC"} |
| import { INetworkModule } from "../network/INetworkModule.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { ILoggerCallback, LogLevel } from "../logger/Logger.js"; | ||
| import type { Authority } from "../authority/Authority.js"; | ||
| import { AzureCloudInstance } from "../authority/AuthorityOptions.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| import { ICachePlugin } from "../cache/interface/ICachePlugin.js"; | ||
| import { ISerializableTokenCache } from "../cache/interface/ISerializableTokenCache.js"; | ||
| import { ClientCredentials } from "../account/ClientCredentials.js"; | ||
| /** | ||
| * Use the configuration object to configure MSAL Modules and initialize the base interfaces for MSAL. | ||
| * | ||
| * This object allows you to configure important elements of MSAL functionality: | ||
| * - authOptions - Authentication for application | ||
| * - cryptoInterface - Implementation of crypto functions | ||
| * - libraryInfo - Library metadata | ||
| * - telemetry - Telemetry options and data | ||
| * - loggerOptions - Logging for application | ||
| * - networkInterface - Network implementation | ||
| * - storageInterface - Storage implementation | ||
| * - systemOptions - Additional library options | ||
| * - clientCredentials - Credentials options for confidential clients | ||
| * @internal | ||
| */ | ||
| export type ClientConfiguration = { | ||
| authOptions: AuthOptions; | ||
| systemOptions?: SystemOptions; | ||
| loggerOptions?: LoggerOptions; | ||
| storageInterface?: CacheManager; | ||
| networkInterface?: INetworkModule; | ||
| cryptoInterface?: ICrypto; | ||
| clientCredentials?: ClientCredentials; | ||
| libraryInfo?: LibraryInfo; | ||
| telemetry?: TelemetryOptions; | ||
| serverTelemetryManager?: ServerTelemetryManager | null; | ||
| persistencePlugin?: ICachePlugin | null; | ||
| serializableCache?: ISerializableTokenCache | null; | ||
| }; | ||
| export type CommonClientConfiguration = { | ||
| authOptions: Required<AuthOptions>; | ||
| systemOptions: Required<SystemOptions>; | ||
| loggerOptions: Required<LoggerOptions>; | ||
| storageInterface: CacheManager; | ||
| networkInterface: INetworkModule; | ||
| cryptoInterface: Required<ICrypto>; | ||
| libraryInfo: LibraryInfo; | ||
| telemetry: Required<TelemetryOptions>; | ||
| serverTelemetryManager: ServerTelemetryManager | null; | ||
| clientCredentials: ClientCredentials; | ||
| persistencePlugin: ICachePlugin | null; | ||
| serializableCache: ISerializableTokenCache | null; | ||
| }; | ||
| /** | ||
| * Use this to configure the auth options in the ClientConfiguration object | ||
| * | ||
| * - clientId - Client ID of your app registered with our Application registration portal : https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredAppsPreview in Microsoft Identity Platform | ||
| * - authority - You can configure a specific authority, defaults to " " or "https://login.microsoftonline.com/common" | ||
| * - knownAuthorities - An array of URIs that are known to be valid. Used in B2C scenarios. | ||
| * - cloudDiscoveryMetadata - A string containing the cloud discovery response. Used in AAD scenarios. | ||
| * - clientCapabilities - Array of capabilities which will be added to the claims.access_token.xms_cc request property on every network request. | ||
| * - instanceAware - A flag of whether the STS will send back additional parameters to specify where the tokens should be retrieved from. | ||
| * - redirectUri - 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. | ||
| * - isMcp - A flag of whether the application is an MCP application, which requires a resource parameter to be sent in token requests. | ||
| * @internal | ||
| */ | ||
| export type AuthOptions = { | ||
| clientId: string; | ||
| authority: Authority; | ||
| redirectUri: string; | ||
| clientCapabilities?: Array<string>; | ||
| azureCloudOptions?: AzureCloudOptions; | ||
| instanceAware?: boolean; | ||
| isMcp?: boolean; | ||
| }; | ||
| /** | ||
| * Use this to configure token renewal info in the Configuration object | ||
| * | ||
| * - tokenRenewalOffsetSeconds - Sets the window of offset needed to renew the token before expiry | ||
| * - protocolMode - Enum that represents the protocol that msal follows. Used for configuring proper endpoints. | ||
| */ | ||
| export type SystemOptions = { | ||
| tokenRenewalOffsetSeconds?: number; | ||
| preventCorsPreflight?: boolean; | ||
| }; | ||
| /** | ||
| * Use this to configure the logging that MSAL does, by configuring logger options in the Configuration object | ||
| * | ||
| * - loggerCallback - Callback for logger | ||
| * - piiLoggingEnabled - Sets whether pii logging is enabled | ||
| * - logLevel - Sets the level at which logging happens | ||
| * - correlationId - Sets the correlationId printed by the logger | ||
| */ | ||
| export type LoggerOptions = { | ||
| loggerCallback?: ILoggerCallback; | ||
| piiLoggingEnabled?: boolean; | ||
| logLevel?: LogLevel; | ||
| correlationId?: string; | ||
| }; | ||
| /** | ||
| * Library-specific options | ||
| */ | ||
| export type LibraryInfo = { | ||
| sku: string; | ||
| version: string; | ||
| cpu: string; | ||
| os: string; | ||
| }; | ||
| /** | ||
| * AzureCloudInstance specific options | ||
| * | ||
| * - azureCloudInstance - string enum providing short notation for soverign and public cloud authorities | ||
| * - tenant - provision to provide the tenant info | ||
| */ | ||
| export type AzureCloudOptions = { | ||
| azureCloudInstance: AzureCloudInstance; | ||
| tenant?: string; | ||
| }; | ||
| export type TelemetryOptions = { | ||
| application: ApplicationTelemetry; | ||
| }; | ||
| /** | ||
| * Telemetry information sent on request | ||
| * - appName: Unique string name of an application | ||
| * - appVersion: Version of the application using MSAL | ||
| */ | ||
| export type ApplicationTelemetry = { | ||
| appName: string; | ||
| appVersion: string; | ||
| }; | ||
| export declare const DEFAULT_SYSTEM_OPTIONS: Required<SystemOptions>; | ||
| /** | ||
| * Function that sets the default options when not explicitly configured from app developer | ||
| * | ||
| * @param Configuration | ||
| * | ||
| * @returns Configuration | ||
| */ | ||
| export declare function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions: userSystemOptions, loggerOptions: userLoggerOption, storageInterface: storageImplementation, networkInterface: networkImplementation, cryptoInterface: cryptoImplementation, clientCredentials: clientCredentials, libraryInfo: libraryInfo, telemetry: telemetry, serverTelemetryManager: serverTelemetryManager, persistencePlugin: persistencePlugin, serializableCache: serializableCache, }: ClientConfiguration): CommonClientConfiguration; | ||
| /** | ||
| * Returns true if config has protocolMode set to ProtocolMode.OIDC, false otherwise | ||
| * @param ClientConfiguration | ||
| */ | ||
| export declare function isOidcProtocolMode(config: ClientConfiguration): boolean; | ||
| //# sourceMappingURL=ClientConfiguration.d.ts.map |
| {"version":3,"file":"ClientConfiguration.d.ts","sourceRoot":"","sources":["../../../src/config/ClientConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAiC,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAU,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAOxE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAuB,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAQpE;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAC9B,WAAW,EAAE,WAAW,CAAC;IACzB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,gBAAgB,CAAC,EAAE,YAAY,CAAC;IAChC,gBAAgB,CAAC,EAAE,cAAc,CAAC;IAClC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,sBAAsB,CAAC,EAAE,sBAAsB,GAA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; | ||
| export declare const REDIRECT_URI = "redirect_uri"; | ||
| export declare const RESPONSE_TYPE = "response_type"; | ||
| export declare const RESPONSE_MODE = "response_mode"; | ||
| export declare const GRANT_TYPE = "grant_type"; | ||
| export declare const CLAIMS = "claims"; | ||
| export declare const SCOPE = "scope"; | ||
| export declare const ERROR = "error"; | ||
| export declare const ERROR_DESCRIPTION = "error_description"; | ||
| export declare const ACCESS_TOKEN = "access_token"; | ||
| export declare const ID_TOKEN = "id_token"; | ||
| export declare const REFRESH_TOKEN = "refresh_token"; | ||
| export declare const EXPIRES_IN = "expires_in"; | ||
| export declare const REFRESH_TOKEN_EXPIRES_IN = "refresh_token_expires_in"; | ||
| export declare const STATE = "state"; | ||
| export declare const NONCE = "nonce"; | ||
| export declare const PROMPT = "prompt"; | ||
| export declare const SESSION_STATE = "session_state"; | ||
| export declare const CLIENT_INFO = "client_info"; | ||
| export declare const CODE = "code"; | ||
| export declare const CODE_CHALLENGE = "code_challenge"; | ||
| export declare const CODE_CHALLENGE_METHOD = "code_challenge_method"; | ||
| export declare const CODE_VERIFIER = "code_verifier"; | ||
| export declare const CLIENT_REQUEST_ID = "client-request-id"; | ||
| export declare const X_CLIENT_SKU = "x-client-SKU"; | ||
| export declare const X_CLIENT_VER = "x-client-VER"; | ||
| export declare const X_CLIENT_OS = "x-client-OS"; | ||
| export declare const X_CLIENT_CPU = "x-client-CPU"; | ||
| export declare const X_CLIENT_CURR_TELEM = "x-client-current-telemetry"; | ||
| export declare const X_CLIENT_LAST_TELEM = "x-client-last-telemetry"; | ||
| export declare const X_MS_LIB_CAPABILITY = "x-ms-lib-capability"; | ||
| export declare const X_APP_NAME = "x-app-name"; | ||
| export declare const X_APP_VER = "x-app-ver"; | ||
| export declare const POST_LOGOUT_URI = "post_logout_redirect_uri"; | ||
| export declare const ID_TOKEN_HINT = "id_token_hint"; | ||
| export declare const DEVICE_CODE = "device_code"; | ||
| export declare const CLIENT_SECRET = "client_secret"; | ||
| export declare const CLIENT_ASSERTION = "client_assertion"; | ||
| export declare const CLIENT_ASSERTION_TYPE = "client_assertion_type"; | ||
| export declare const TOKEN_TYPE = "token_type"; | ||
| export declare const REQ_CNF = "req_cnf"; | ||
| export declare const OBO_ASSERTION = "assertion"; | ||
| export declare const REQUESTED_TOKEN_USE = "requested_token_use"; | ||
| export declare const ON_BEHALF_OF = "on_behalf_of"; | ||
| export declare const FOCI = "foci"; | ||
| export declare const CCS_HEADER = "X-AnchorMailbox"; | ||
| export declare const RETURN_SPA_CODE = "return_spa_code"; | ||
| export declare const NATIVE_BROKER = "nativebroker"; | ||
| export declare const LOGOUT_HINT = "logout_hint"; | ||
| export declare const SID = "sid"; | ||
| export declare const LOGIN_HINT = "login_hint"; | ||
| export declare const DOMAIN_HINT = "domain_hint"; | ||
| export declare const X_CLIENT_EXTRA_SKU = "x-client-xtra-sku"; | ||
| export declare const BROKER_CLIENT_ID = "brk_client_id"; | ||
| export declare const BROKER_REDIRECT_URI = "brk_redirect_uri"; | ||
| export declare const INSTANCE_AWARE = "instance_aware"; | ||
| export declare const EAR_JWK = "ear_jwk"; | ||
| export declare const EAR_JWE_CRYPTO = "ear_jwe_crypto"; | ||
| export declare const RESOURCE = "resource"; | ||
| export declare const CLI_DATA = "clidata"; | ||
| //# sourceMappingURL=AADServerParamKeys.d.ts.map |
| {"version":3,"file":"AADServerParamKeys.d.ts","sourceRoot":"","sources":["../../../src/constants/AADServerParamKeys.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS,cAAc,CAAC;AACrC,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,eAAO,MAAM,KAAK,UAAU,CAAC;AAC7B,eAAO,MAAM,KAAK,UAAU,CAAC;AAC7B,eAAO,MAAM,iBAAiB,sBA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AAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,aAAa,cAAc,CAAC;AACzC,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,IAAI,SAAS,CAAC;AAC3B,eAAO,MAAM,UAAU,oBAAoB,CAAC;AAC5C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,aAAa,iBAAiB,CAAC;AAC5C,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,GAAG,QAAQ,CAAC;AACzB,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AACtD,eAAO,MAAM,gBAAgB,kBAAkB,CAAC;AAChD,eAAO,MAAM,mBAAmB,qBAAqB,CAAC;AACtD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,QAAQ,aAAa,CAAC;AACnC,eAAO,MAAM,QAAQ,YAAY,CAAC"} |
| import type { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| import type { ShrOptions, SignedHttpRequest } from "./SignedHttpRequest.js"; | ||
| /** | ||
| * The PkceCodes type describes the structure | ||
| * of objects that contain PKCE code | ||
| * challenge and verifier pairs | ||
| */ | ||
| export type PkceCodes = { | ||
| verifier: string; | ||
| challenge: string; | ||
| }; | ||
| export type SignedHttpRequestParameters = Pick<BaseAuthRequest, "resourceRequestMethod" | "resourceRequestUri" | "shrClaims" | "shrNonce" | "shrOptions"> & { | ||
| correlationId: string; | ||
| }; | ||
| /** | ||
| * Interface for crypto functions used by library | ||
| */ | ||
| export interface ICrypto { | ||
| /** | ||
| * Creates a guid randomly. | ||
| */ | ||
| createNewGuid(): string; | ||
| /** | ||
| * base64 Encode string | ||
| * @param input | ||
| */ | ||
| base64Encode(input: string): string; | ||
| /** | ||
| * base64 decode string | ||
| * @param input | ||
| */ | ||
| base64Decode(input: string): string; | ||
| /** | ||
| * base64 URL safe encoded string | ||
| */ | ||
| base64UrlEncode(input: string): string; | ||
| /** | ||
| * Stringifies and base64Url encodes input public key | ||
| * @param inputKid | ||
| * @returns Base64Url encoded public key | ||
| */ | ||
| encodeKid(inputKid: string): string; | ||
| /** | ||
| * Generates an JWK RSA S256 Thumbprint | ||
| * @param request | ||
| */ | ||
| getPublicKeyThumbprint(request: SignedHttpRequestParameters): Promise<string>; | ||
| /** | ||
| * Removes cryptographic keypair from key store matching the keyId passed in | ||
| * @param kid | ||
| * @param correlationId | ||
| */ | ||
| removeTokenBindingKey(kid: string, correlationId: string): Promise<void>; | ||
| /** | ||
| * Removes all cryptographic keys from IndexedDB storage | ||
| * @param correlationId | ||
| */ | ||
| clearKeystore(correlationId: string): Promise<boolean>; | ||
| /** | ||
| * Returns a signed proof-of-possession token with a given acces token that contains a cnf claim with the required kid. | ||
| * @param accessToken | ||
| */ | ||
| signJwt(payload: SignedHttpRequest, kid: string, shrOptions?: ShrOptions, correlationId?: string): Promise<string>; | ||
| /** | ||
| * Returns the SHA-256 hash of an input string | ||
| * @param plainText | ||
| */ | ||
| hashString(plainText: string): Promise<string>; | ||
| } | ||
| export declare const DEFAULT_CRYPTO_IMPLEMENTATION: ICrypto; | ||
| //# sourceMappingURL=ICrypto.d.ts.map |
| {"version":3,"file":"ICrypto.d.ts","sourceRoot":"","sources":["../../../src/crypto/ICrypto.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE5E;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAC1C,eAAe,EACb,uBAAuB,GACvB,oBAAoB,GACpB,WAAW,GACX,UAAU,GACV,YAAY,CACjB,GAAG;IACA,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,OAAO;IACpB;;OAEG;IACH,aAAa,IAAI,MAAM,CAAC;IACxB;;;OAGG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC;;;OAGG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC;;OAEG;IACH,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvC;;;;OAIG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC;;;OAGG;IACH,sBAAsB,CAClB,OAAO,EAAE,2BAA2B,GACrC,OAAO,CAAC,MAAM,CAAC,CAAC;IACnB;;;;OAIG;IACH,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzE;;;OAGG;IACH,aAAa,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACvD;;;OAGG;IACH,OAAO,CACH,OAAO,EAAE,iBAAiB,EAC1B,GAAG,EAAE,MAAM,EACX,UAAU,CAAC,EAAE,UAAU,EACvB,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,MAAM,CAAC,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAClD;AAED,eAAO,MAAM,6BAA6B,EAAE,OA+B3C,CAAC"} |
| export interface IGuidGenerator { | ||
| generateGuid(): string; | ||
| isGuid(guid: string): boolean; | ||
| } | ||
| //# sourceMappingURL=IGuidGenerator.d.ts.map |
| {"version":3,"file":"IGuidGenerator.d.ts","sourceRoot":"","sources":["../../../src/crypto/IGuidGenerator.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,cAAc;IAC3B,YAAY,IAAI,MAAM,CAAC;IACvB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACjC"} |
| import { JsonWebTokenTypes } from "../utils/Constants.js"; | ||
| export type JoseHeaderOptions = { | ||
| typ?: JsonWebTokenTypes; | ||
| alg?: string; | ||
| kid?: string; | ||
| }; | ||
| /** @internal */ | ||
| export declare class JoseHeader { | ||
| typ?: JsonWebTokenTypes; | ||
| alg?: string; | ||
| kid?: string; | ||
| constructor(options: JoseHeaderOptions); | ||
| /** | ||
| * Builds SignedHttpRequest formatted JOSE Header from the | ||
| * JOSE Header options provided or previously set on the object and returns | ||
| * the stringified header object. | ||
| * Throws if keyId or algorithm aren't provided since they are required for Access Token Binding. | ||
| * @param shrHeaderOptions | ||
| * @returns | ||
| */ | ||
| static getShrHeaderString(shrHeaderOptions: JoseHeaderOptions): string; | ||
| } | ||
| //# sourceMappingURL=JoseHeader.d.ts.map |
| {"version":3,"file":"JoseHeader.d.ts","sourceRoot":"","sources":["../../../src/crypto/JoseHeader.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,MAAM,iBAAiB,GAAG;IAC5B,GAAG,CAAC,EAAE,iBAAiB,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,qBAAa,UAAU;IACZ,GAAG,CAAC,EAAE,iBAAiB,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;gBAER,OAAO,EAAE,iBAAiB;IAMtC;;;;;;;OAOG;IACH,MAAM,CAAC,kBAAkB,CAAC,gBAAgB,EAAE,iBAAiB,GAAG,MAAM;CAoBzE"} |
| import { ICrypto, SignedHttpRequestParameters } from "./ICrypto.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| /** | ||
| * See eSTS docs for more info. | ||
| * - A kid element, with the value containing an RFC 7638-compliant JWK thumbprint that is base64 encoded. | ||
| * - xms_ksl element, representing the storage location of the key's secret component on the client device. One of two values: | ||
| * - sw: software storage | ||
| * - uhw: hardware storage | ||
| */ | ||
| type ReqCnf = { | ||
| kid: string; | ||
| xms_ksl: KeyLocation; | ||
| }; | ||
| export type ReqCnfData = { | ||
| kid: string; | ||
| reqCnfString: string; | ||
| }; | ||
| declare const KeyLocation: { | ||
| readonly SW: "sw"; | ||
| readonly UHW: "uhw"; | ||
| }; | ||
| export type KeyLocation = (typeof KeyLocation)[keyof typeof KeyLocation]; | ||
| /** @internal */ | ||
| export declare class PopTokenGenerator { | ||
| private cryptoUtils; | ||
| private performanceClient; | ||
| constructor(cryptoUtils: ICrypto, performanceClient: IPerformanceClient); | ||
| /** | ||
| * Generates the req_cnf validated at the RP in the POP protocol for SHR parameters | ||
| * and returns an object containing the keyid, the full req_cnf string and the req_cnf string hash | ||
| * @param request | ||
| * @returns | ||
| */ | ||
| generateCnf(request: SignedHttpRequestParameters, logger: Logger): Promise<ReqCnfData>; | ||
| /** | ||
| * Generates key_id for a SHR token request | ||
| * @param request | ||
| * @returns | ||
| */ | ||
| generateKid(request: SignedHttpRequestParameters): Promise<ReqCnf>; | ||
| /** | ||
| * Signs the POP access_token with the local generated key-pair | ||
| * @param accessToken | ||
| * @param request | ||
| * @returns | ||
| */ | ||
| signPopToken(accessToken: string, keyId: string, request: SignedHttpRequestParameters): Promise<string>; | ||
| /** | ||
| * Utility function to generate the signed JWT for an access_token | ||
| * @param payload | ||
| * @param kid | ||
| * @param request | ||
| * @param claims | ||
| * @returns | ||
| */ | ||
| signPayload(payload: string, keyId: string, request: SignedHttpRequestParameters, claims?: object): Promise<string>; | ||
| } | ||
| export {}; | ||
| //# sourceMappingURL=PopTokenGenerator.d.ts.map |
| {"version":3,"file":"PopTokenGenerator.d.ts","sourceRoot":"","sources":["../../../src/crypto/PopTokenGenerator.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAGpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAGpF,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C;;;;;;GAMG;AACH,KAAK,MAAM,GAAG;IACV,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,WAAW,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,WAAW;;;CAGP,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEzE,gBAAgB;AAChB,qBAAa,iBAAiB;IAC1B,OAAO,CAAC,WAAW,CAAU;IAC7B,OAAO,CAAC,iBAAiB,CAAqB;gBAElC,WAAW,EAAE,OAAO,EAAE,iBAAiB,EAAE,kBAAkB;IAKvE;;;;;OAKG;IACG,WAAW,CACb,OAAO,EAAE,2BAA2B,EACpC,MAAM,EAAE,MAAM,GACf,OAAO,CAAC,UAAU,CAAC;IAkBtB;;;;OAIG;IACG,WAAW,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,MAAM,CAAC;IAWxE;;;;;OAKG;IACG,YAAY,CACd,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,2BAA2B,GACrC,OAAO,CAAC,MAAM,CAAC;IAIlB;;;;;;;OAOG;IACG,WAAW,CACb,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,2BAA2B,EACpC,MAAM,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,MAAM,CAAC;CAiCrB"} |
| import { JoseHeaderOptions } from "./JoseHeader.js"; | ||
| export type SignedHttpRequest = { | ||
| at?: string; | ||
| cnf?: object; | ||
| m?: string; | ||
| u?: string; | ||
| p?: string; | ||
| q?: [Array<string>, string]; | ||
| ts?: number; | ||
| nonce?: string; | ||
| client_claims?: string; | ||
| }; | ||
| export type ShrOptions = { | ||
| header: JoseHeaderOptions; | ||
| }; | ||
| //# sourceMappingURL=SignedHttpRequest.d.ts.map |
| {"version":3,"file":"SignedHttpRequest.d.ts","sourceRoot":"","sources":["../../../src/crypto/SignedHttpRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GAAG;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACrB,MAAM,EAAE,iBAAiB,CAAC;CAC7B,CAAC"} |
| import * as AuthErrorCodes from "./AuthErrorCodes.js"; | ||
| import type { PlatformBrokerError } from "./PlatformBrokerError.js"; | ||
| export { AuthErrorCodes }; | ||
| export declare function getDefaultErrorMessage(code: string): string; | ||
| /** | ||
| * General error class thrown by the MSAL.js library. | ||
| */ | ||
| export declare class AuthError extends Error { | ||
| /** | ||
| * Short string denoting error | ||
| */ | ||
| errorCode: string; | ||
| /** | ||
| * Detailed description of error | ||
| */ | ||
| errorMessage: string; | ||
| /** | ||
| * Describes the subclass of an error | ||
| */ | ||
| subError: string; | ||
| /** | ||
| * CorrelationId associated with the error | ||
| */ | ||
| correlationId: string; | ||
| /** | ||
| * Default PlatformBrokerError from MsalNodeRuntime when broker is enabled | ||
| */ | ||
| platformBrokerError?: PlatformBrokerError; | ||
| constructor(errorCode?: string, errorMessage?: string, suberror?: string); | ||
| setCorrelationId(correlationId: string): void; | ||
| } | ||
| export declare function createAuthError(code: string, additionalMessage?: string): AuthError; | ||
| //# sourceMappingURL=AuthError.d.ts.map |
| {"version":3,"file":"AuthError.d.ts","sourceRoot":"","sources":["../../../src/error/AuthError.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,KAAK;IAChC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;gBAE9B,SAAS,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM;IAcxE,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI;CAGhD;AAED,wBAAgB,eAAe,CAC3B,IAAI,EAAE,MAAM,EACZ,iBAAiB,CAAC,EAAE,MAAM,GAC3B,SAAS,CAKX"} |
| /** | ||
| * AuthErrorMessage class containing string constants used by error codes and messages. | ||
| */ | ||
| export declare const unexpectedError = "unexpected_error"; | ||
| export declare const postRequestFailed = "post_request_failed"; | ||
| //# sourceMappingURL=AuthErrorCodes.d.ts.map |
| {"version":3,"file":"AuthErrorCodes.d.ts","sourceRoot":"","sources":["../../../src/error/AuthErrorCodes.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,iBAAiB,wBAAwB,CAAC"} |
| import * as CacheErrorCodes from "./CacheErrorCodes.js"; | ||
| export { CacheErrorCodes }; | ||
| /** | ||
| * Error thrown when there is an error with the cache | ||
| */ | ||
| export declare class CacheError extends Error { | ||
| /** | ||
| * Short string denoting error | ||
| */ | ||
| errorCode: string; | ||
| /** | ||
| * Detailed description of error | ||
| */ | ||
| errorMessage: string; | ||
| constructor(errorCode: string, errorMessage?: string); | ||
| } | ||
| /** | ||
| * Helper function to wrap browser errors in a CacheError object | ||
| * @param e | ||
| * @returns | ||
| */ | ||
| export declare function createCacheError(e: unknown): CacheError; | ||
| //# sourceMappingURL=CacheError.d.ts.map |
| {"version":3,"file":"CacheError.d.ts","sourceRoot":"","sources":["../../../src/error/CacheError.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAC;AAExD,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B;;GAEG;AACH,qBAAa,UAAW,SAAQ,KAAK;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;gBAET,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;CASvD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,OAAO,GAAG,UAAU,CAcvD"} |
| export declare const cacheQuotaExceeded = "cache_quota_exceeded"; | ||
| export declare const cacheErrorUnknown = "cache_error_unknown"; | ||
| //# sourceMappingURL=CacheErrorCodes.d.ts.map |
| {"version":3,"file":"CacheErrorCodes.d.ts","sourceRoot":"","sources":["../../../src/error/CacheErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,iBAAiB,wBAAwB,CAAC"} |
| import { AuthError } from "./AuthError.js"; | ||
| import * as ClientAuthErrorCodes from "./ClientAuthErrorCodes.js"; | ||
| export { ClientAuthErrorCodes }; | ||
| /** | ||
| * ClientAuthErrorMessage class containing string constants used by error codes and messages. | ||
| */ | ||
| /** | ||
| * Error thrown when there is an error in the client code running on the browser. | ||
| */ | ||
| export declare class ClientAuthError extends AuthError { | ||
| constructor(errorCode: string, additionalMessage?: string); | ||
| } | ||
| export declare function createClientAuthError(errorCode: string, additionalMessage?: string): ClientAuthError; | ||
| //# sourceMappingURL=ClientAuthError.d.ts.map |
| {"version":3,"file":"ClientAuthError.d.ts","sourceRoot":"","sources":["../../../src/error/ClientAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC;;GAEG;AAEH;;GAEG;AACH,qBAAa,eAAgB,SAAQ,SAAS;gBAC9B,SAAS,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,MAAM;CAM5D;AAED,wBAAgB,qBAAqB,CACjC,SAAS,EAAE,MAAM,EACjB,iBAAiB,CAAC,EAAE,MAAM,GAC3B,eAAe,CAEjB"} |
| export declare const clientInfoDecodingError = "client_info_decoding_error"; | ||
| export declare const clientInfoEmptyError = "client_info_empty_error"; | ||
| export declare const tokenParsingError = "token_parsing_error"; | ||
| export declare const nullOrEmptyToken = "null_or_empty_token"; | ||
| export declare const endpointResolutionError = "endpoints_resolution_error"; | ||
| export declare const networkError = "network_error"; | ||
| export declare const openIdConfigError = "openid_config_error"; | ||
| export declare const hashNotDeserialized = "hash_not_deserialized"; | ||
| export declare const invalidState = "invalid_state"; | ||
| export declare const stateMismatch = "state_mismatch"; | ||
| export declare const stateNotFound = "state_not_found"; | ||
| export declare const nonceMismatch = "nonce_mismatch"; | ||
| export declare const authTimeNotFound = "auth_time_not_found"; | ||
| export declare const maxAgeTranspired = "max_age_transpired"; | ||
| export declare const multipleMatchingTokens = "multiple_matching_tokens"; | ||
| export declare const multipleMatchingAppMetadata = "multiple_matching_appMetadata"; | ||
| export declare const requestCannotBeMade = "request_cannot_be_made"; | ||
| export declare const cannotRemoveEmptyScope = "cannot_remove_empty_scope"; | ||
| export declare const cannotAppendScopeSet = "cannot_append_scopeset"; | ||
| export declare const emptyInputScopeSet = "empty_input_scopeset"; | ||
| export declare const noAccountInSilentRequest = "no_account_in_silent_request"; | ||
| export declare const invalidCacheRecord = "invalid_cache_record"; | ||
| export declare const invalidCacheEnvironment = "invalid_cache_environment"; | ||
| export declare const noAccountFound = "no_account_found"; | ||
| export declare const noCryptoObject = "no_crypto_object"; | ||
| export declare const unexpectedCredentialType = "unexpected_credential_type"; | ||
| export declare const tokenRefreshRequired = "token_refresh_required"; | ||
| export declare const tokenClaimsCnfRequiredForSignedJwt = "token_claims_cnf_required_for_signedjwt"; | ||
| export declare const authorizationCodeMissingFromServerResponse = "authorization_code_missing_from_server_response"; | ||
| export declare const bindingKeyNotRemoved = "binding_key_not_removed"; | ||
| export declare const endSessionEndpointNotSupported = "end_session_endpoint_not_supported"; | ||
| export declare const keyIdMissing = "key_id_missing"; | ||
| export declare const noNetworkConnectivity = "no_network_connectivity"; | ||
| export declare const userCanceled = "user_canceled"; | ||
| export declare const methodNotImplemented = "method_not_implemented"; | ||
| export declare const nestedAppAuthBridgeDisabled = "nested_app_auth_bridge_disabled"; | ||
| export declare const platformBrokerError = "platform_broker_error"; | ||
| export declare const resourceParameterRequired = "resource_parameter_required"; | ||
| export declare const misplacedResourceParam = "misplaced_resource_parameter"; | ||
| //# sourceMappingURL=ClientAuthErrorCodes.d.ts.map |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;AAC9C,eAAO,MAAM,0CAA0C,oDACF,CAAC;AACtD,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,8BAA8B,uCACH,CAAC;AACzC,eAAO,MAAM,YAAY,mBAAmB,CAAC;AAC7C,eAAO,MAAM,qBAAqB,4BAA4B,CAAC;AAC/D,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAC5C,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,2BAA2B,oCAAoC,CAAC;AAC7E,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAC3D,eAAO,MAAM,yBAAyB,gCAAgC,CAAC;AACvE,eAAO,MAAM,sBAAsB,iCAAiC,CAAC"} |
| import { AuthError } from "./AuthError.js"; | ||
| import * as ClientConfigurationErrorCodes from "./ClientConfigurationErrorCodes.js"; | ||
| export { ClientConfigurationErrorCodes }; | ||
| /** | ||
| * Error thrown when there is an error in configuration of the MSAL.js library. | ||
| */ | ||
| export declare class ClientConfigurationError extends AuthError { | ||
| constructor(errorCode: string); | ||
| } | ||
| export declare function createClientConfigurationError(errorCode: string): ClientConfigurationError; | ||
| //# sourceMappingURL=ClientConfigurationError.d.ts.map |
| {"version":3,"file":"ClientConfigurationError.d.ts","sourceRoot":"","sources":["../../../src/error/ClientConfigurationError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,6BAA6B,MAAM,oCAAoC,CAAC;AACpF,OAAO,EAAE,6BAA6B,EAAE,CAAC;AAEzC;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,SAAS;gBACvC,SAAS,EAAE,MAAM;CAKhC;AAED,wBAAgB,8BAA8B,CAC1C,SAAS,EAAE,MAAM,GAClB,wBAAwB,CAE1B"} |
| export declare const redirectUriEmpty = "redirect_uri_empty"; | ||
| export declare const claimsRequestParsingError = "claims_request_parsing_error"; | ||
| export declare const authorityUriInsecure = "authority_uri_insecure"; | ||
| export declare const urlParseError = "url_parse_error"; | ||
| export declare const urlEmptyError = "empty_url_error"; | ||
| export declare const emptyInputScopesError = "empty_input_scopes_error"; | ||
| export declare const invalidClaims = "invalid_claims"; | ||
| export declare const tokenRequestEmpty = "token_request_empty"; | ||
| export declare const logoutRequestEmpty = "logout_request_empty"; | ||
| export declare const invalidCodeChallengeMethod = "invalid_code_challenge_method"; | ||
| export declare const pkceParamsMissing = "pkce_params_missing"; | ||
| export declare const invalidCloudDiscoveryMetadata = "invalid_cloud_discovery_metadata"; | ||
| export declare const invalidAuthorityMetadata = "invalid_authority_metadata"; | ||
| export declare const untrustedAuthority = "untrusted_authority"; | ||
| export declare const missingSshJwk = "missing_ssh_jwk"; | ||
| export declare const missingSshKid = "missing_ssh_kid"; | ||
| export declare const missingNonceAuthenticationHeader = "missing_nonce_authentication_header"; | ||
| export declare const invalidAuthenticationHeader = "invalid_authentication_header"; | ||
| export declare const cannotSetOIDCOptions = "cannot_set_OIDCOptions"; | ||
| export declare const cannotAllowPlatformBroker = "cannot_allow_platform_broker"; | ||
| export declare const authorityMismatch = "authority_mismatch"; | ||
| export declare const invalidRequestMethodForEAR = "invalid_request_method_for_EAR"; | ||
| //# sourceMappingURL=ClientConfigurationErrorCodes.d.ts.map |
| {"version":3,"file":"ClientConfigurationErrorCodes.d.ts","sourceRoot":"","sources":["../../../src/error/ClientConfigurationErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,eAAO,MAAM,yBAAyB,iCAAiC,CAAC;AACxE,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,qBAAqB,6BAA6B,CAAC;AAChE,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,0BAA0B,kCAAkC,CAAC;AAC1E,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,6BAA6B,qCAAqC,CAAC;AAChF,eAAO,MAAM,wBAAwB,+BAA+B,CAAC;AACrE,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AACxD,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,gCAAgC,wCACJ,CAAC;AAC1C,eAAO,MAAM,2BAA2B,kCAAkC,CAAC;AAC3E,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,yBAAyB,iCAAiC,CAAC;AACxE,eAAO,MAAM,iBAAiB,uBAAuB,CAAC;AACtD,eAAO,MAAM,0BAA0B,mCAAmC,CAAC"} |
| import { AuthError } from "./AuthError.js"; | ||
| import * as InteractionRequiredAuthErrorCodes from "./InteractionRequiredAuthErrorCodes.js"; | ||
| export { InteractionRequiredAuthErrorCodes }; | ||
| /** | ||
| * InteractionRequiredServerErrorMessage contains string constants used by error codes and messages returned by the server indicating interaction is required | ||
| */ | ||
| export declare const InteractionRequiredServerErrorMessage: string[]; | ||
| export declare const InteractionRequiredAuthSubErrorMessage: string[]; | ||
| /** | ||
| * Error thrown when user interaction is required. | ||
| */ | ||
| export declare class InteractionRequiredAuthError extends AuthError { | ||
| /** | ||
| * The time the error occured at | ||
| */ | ||
| timestamp: string; | ||
| /** | ||
| * TraceId associated with the error | ||
| */ | ||
| traceId: string; | ||
| /** | ||
| * https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-common/docs/claims-challenge.md | ||
| * | ||
| * A string with extra claims needed for the token request to succeed | ||
| * web site: redirect the user to the authorization page and set the extra claims | ||
| * web api: include the claims in the WWW-Authenticate header that are sent back to the client so that it knows to request a token with the extra claims | ||
| * desktop application or browser context: include the claims when acquiring the token interactively | ||
| * app to app context (client_credentials): include the claims in the AcquireTokenByClientCredential request | ||
| */ | ||
| claims: string; | ||
| /** | ||
| * Server error number; | ||
| */ | ||
| readonly errorNo?: string; | ||
| constructor(errorCode?: string, errorMessage?: string, subError?: string, timestamp?: string, traceId?: string, correlationId?: string, claims?: string, errorNo?: string); | ||
| } | ||
| /** | ||
| * Helper function used to determine if an error thrown by the server requires interaction to resolve | ||
| * @param errorCode | ||
| * @param errorString | ||
| * @param subError | ||
| */ | ||
| export declare function isInteractionRequiredError(errorCode?: string, errorString?: string, subError?: string): boolean; | ||
| /** | ||
| * Creates an InteractionRequiredAuthError | ||
| */ | ||
| export declare function createInteractionRequiredAuthError(errorCode: string, errorMessage?: string): InteractionRequiredAuthError; | ||
| //# sourceMappingURL=InteractionRequiredAuthError.d.ts.map |
| {"version":3,"file":"InteractionRequiredAuthError.d.ts","sourceRoot":"","sources":["../../../src/error/InteractionRequiredAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,iCAAiC,MAAM,wCAAwC,CAAC;AAC5F,OAAO,EAAE,iCAAiC,EAAE,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,qCAAqC,UAOjD,CAAC;AAEF,eAAO,MAAM,sCAAsC,UASlD,CAAC;AAEF;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,SAAS;IACvD;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;;;OAQG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;gBAGtB,SAAS,CAAC,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,MAAM,EACrB,QAAQ,CAAC,EAAE,MAAM,EACjB,SAAS,CAAC,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,EAChB,aAAa,CAAC,EAAE,MAAM,EACtB,MAAM,CAAC,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,MAAM;CAYvB;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACtC,SAAS,CAAC,EAAE,MAAM,EAClB,WAAW,CAAC,EAAE,MAAM,EACpB,QAAQ,CAAC,EAAE,MAAM,GAClB,OAAO,CAkBT;AAED;;GAEG;AACH,wBAAgB,kCAAkC,CAC9C,SAAS,EAAE,MAAM,EACjB,YAAY,CAAC,EAAE,MAAM,GACtB,4BAA4B,CAE9B"} |
| /** | ||
| * MSAL-defined interaction required error code indicating no tokens are found in cache. | ||
| * @public | ||
| */ | ||
| export declare const noTokensFound = "no_tokens_found"; | ||
| /** | ||
| * MSAL-defined error code indicating a native account is unavailable on the platform. | ||
| * @public | ||
| */ | ||
| export declare const nativeAccountUnavailable = "native_account_unavailable"; | ||
| /** | ||
| * MSAL-defined error code indicating the refresh token has expired and user interaction is needed. | ||
| * @public | ||
| */ | ||
| export declare const refreshTokenExpired = "refresh_token_expired"; | ||
| /** | ||
| * MSAL-defined error code indicating UI/UX is not allowed (e.g., blocked by policy), requiring alternate interaction. | ||
| * @public | ||
| */ | ||
| export declare const uxNotAllowed = "ux_not_allowed"; | ||
| /** | ||
| * Server-originated error code indicating interaction is required to complete the request. | ||
| * @public | ||
| */ | ||
| export declare const interactionRequired = "interaction_required"; | ||
| /** | ||
| * Server-originated error code indicating user consent is required. | ||
| * @public | ||
| */ | ||
| export declare const consentRequired = "consent_required"; | ||
| /** | ||
| * Server-originated error code indicating user login is required. | ||
| * @public | ||
| */ | ||
| export declare const loginRequired = "login_required"; | ||
| /** | ||
| * Server-originated error code indicating the token is invalid or corrupted. | ||
| * @public | ||
| */ | ||
| export declare const badToken = "bad_token"; | ||
| /** | ||
| * Server-originated error code indicating the user is in an interrupted state and interaction is required. | ||
| * @public | ||
| */ | ||
| export declare const interruptedUser = "interrupted_user"; | ||
| //# sourceMappingURL=InteractionRequiredAuthErrorCodes.d.ts.map |
| {"version":3,"file":"InteractionRequiredAuthErrorCodes.d.ts","sourceRoot":"","sources":["../../../src/error/InteractionRequiredAuthErrorCodes.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C;;;GAGG;AACH,eAAO,MAAM,wBAAwB,+BAA+B,CAAC;AACrE;;;GAGG;AACH,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAC3D;;;GAGG;AACH,eAAO,MAAM,YAAY,mBAAmB,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,mBAAmB,yBAAyB,CAAC;AAC1D;;;GAGG;AACH,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD;;;GAGG;AACH,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C;;;GAGG;AACH,eAAO,MAAM,QAAQ,cAAc,CAAC;AACpC;;;GAGG;AACH,eAAO,MAAM,eAAe,qBAAqB,CAAC"} |
| import { AuthError } from "./AuthError.js"; | ||
| import * as JoseHeaderErrorCodes from "./JoseHeaderErrorCodes.js"; | ||
| export { JoseHeaderErrorCodes }; | ||
| /** | ||
| * Error thrown when there is an error in the client code running on the browser. | ||
| */ | ||
| export declare class JoseHeaderError extends AuthError { | ||
| constructor(errorCode: string, errorMessage?: string); | ||
| } | ||
| /** Returns JoseHeaderError object */ | ||
| export declare function createJoseHeaderError(code: string): JoseHeaderError; | ||
| //# sourceMappingURL=JoseHeaderError.d.ts.map |
| {"version":3,"file":"JoseHeaderError.d.ts","sourceRoot":"","sources":["../../../src/error/JoseHeaderError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC;;GAEG;AACH,qBAAa,eAAgB,SAAQ,SAAS;gBAC9B,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;CAMvD;AAED,qCAAqC;AACrC,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAEnE"} |
| export declare const missingKidError = "missing_kid_error"; | ||
| export declare const missingAlgError = "missing_alg_error"; | ||
| //# sourceMappingURL=JoseHeaderErrorCodes.d.ts.map |
| {"version":3,"file":"JoseHeaderErrorCodes.d.ts","sourceRoot":"","sources":["../../../src/error/JoseHeaderErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe,sBAAsB,CAAC;AACnD,eAAO,MAAM,eAAe,sBAAsB,CAAC"} |
| import { AuthError } from "./AuthError.js"; | ||
| /** | ||
| * Represents network related errors | ||
| */ | ||
| export declare class NetworkError extends AuthError { | ||
| error: AuthError; | ||
| httpStatus?: number; | ||
| responseHeaders?: Record<string, string>; | ||
| constructor(error: AuthError, httpStatus?: number, responseHeaders?: Record<string, string>); | ||
| } | ||
| /** | ||
| * Creates NetworkError object for a failed network request | ||
| * @param error - Error to be thrown back to the caller | ||
| * @param httpStatus - Status code of the network request | ||
| * @param responseHeaders - Response headers of the network request, when available | ||
| * @returns NetworkError object | ||
| */ | ||
| export declare function createNetworkError(error: AuthError, httpStatus?: number, responseHeaders?: Record<string, string>, additionalError?: Error): NetworkError; | ||
| //# sourceMappingURL=NetworkError.d.ts.map |
| {"version":3,"file":"NetworkError.d.ts","sourceRoot":"","sources":["../../../src/error/NetworkError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;GAEG;AACH,qBAAa,YAAa,SAAQ,SAAS;IACvC,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;gBAGrC,KAAK,EAAE,SAAS,EAChB,UAAU,CAAC,EAAE,MAAM,EACnB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAU/C;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAC9B,KAAK,EAAE,SAAS,EAChB,UAAU,CAAC,EAAE,MAAM,EACnB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACxC,eAAe,CAAC,EAAE,KAAK,GACxB,YAAY,CAGd"} |
| import { AuthError } from "./AuthError.js"; | ||
| /** | ||
| * Error class for MSAL Runtime errors that preserves detailed broker information | ||
| */ | ||
| export declare class PlatformBrokerError extends AuthError { | ||
| /** | ||
| * Numeric error code from MSAL Runtime | ||
| */ | ||
| statusCode: number; | ||
| /** | ||
| * Error tag from MSAL Runtime | ||
| */ | ||
| tag: string; | ||
| constructor(errorStatus: string, errorContext: string, errorCode: number, errorTag: number); | ||
| } | ||
| //# sourceMappingURL=PlatformBrokerError.d.ts.map |
| {"version":3,"file":"PlatformBrokerError.d.ts","sourceRoot":"","sources":["../../../src/error/PlatformBrokerError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AA8B3C;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,SAAS;IAC9C;;OAEG;IACI,UAAU,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACI,GAAG,EAAE,MAAM,CAAC;gBAGf,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM;CAavB"} |
| import { AuthError } from "./AuthError.js"; | ||
| /** | ||
| * Error thrown when there is an error with the server code, for example, unavailability. | ||
| */ | ||
| export declare class ServerError extends AuthError { | ||
| /** | ||
| * Server error number; | ||
| */ | ||
| readonly errorNo?: string; | ||
| /** | ||
| * Http status number; | ||
| */ | ||
| readonly status?: number; | ||
| constructor(errorCode?: string, errorMessage?: string, subError?: string, errorNo?: string, status?: number); | ||
| } | ||
| //# sourceMappingURL=ServerError.d.ts.map |
| {"version":3,"file":"ServerError.d.ts","sourceRoot":"","sources":["../../../src/error/ServerError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;GAEG;AACH,qBAAa,WAAY,SAAQ,SAAS;IACtC;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;gBAGrB,SAAS,CAAC,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,MAAM,EACrB,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,MAAM;CAStB"} |
| export { SignedHttpRequest, ShrOptions } from "./crypto/SignedHttpRequest.js"; | ||
| export { JoseHeader } from "./crypto/JoseHeader.js"; | ||
| export { ExternalTokenResponse } from "./response/ExternalTokenResponse.js"; | ||
| export { IPerformanceClient, PerformanceCallbackFunction, InProgressPerformanceEvent, } from "./telemetry/performance/IPerformanceClient.js"; | ||
| export { IntFields, PerformanceEvent, PerformanceEventStatus, SubMeasurement, } from "./telemetry/performance/PerformanceEvent.js"; | ||
| export * as PerformanceEvents from "./telemetry/performance/PerformanceEvents.js"; | ||
| export { IPerformanceMeasurement } from "./telemetry/performance/IPerformanceMeasurement.js"; | ||
| export { PerformanceClient } from "./telemetry/performance/PerformanceClient.js"; | ||
| export { StubPerformanceClient } from "./telemetry/performance/StubPerformanceClient.js"; | ||
| export { PopTokenGenerator } from "./crypto/PopTokenGenerator.js"; | ||
| //# sourceMappingURL=exports-browser-only.d.ts.map |
| {"version":3,"file":"exports-browser-only.d.ts","sourceRoot":"","sources":["../../src/exports-browser-only.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EACH,kBAAkB,EAClB,2BAA2B,EAC3B,0BAA0B,GAC7B,MAAM,+CAA+C,CAAC;AACvD,OAAO,EACH,SAAS,EACT,gBAAgB,EAChB,sBAAsB,EACtB,cAAc,GACjB,MAAM,6CAA6C,CAAC;AACrD,OAAO,KAAK,iBAAiB,MAAM,8CAA8C,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,oDAAoD,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AAEzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC"} |
| import * as AuthToken from "./account/AuthToken.js"; | ||
| import * as AuthorityFactory from "./authority/AuthorityFactory.js"; | ||
| import * as CacheHelpers from "./cache/utils/CacheHelpers.js"; | ||
| import * as TimeUtils from "./utils/TimeUtils.js"; | ||
| import * as UrlUtils from "./utils/UrlUtils.js"; | ||
| import * as AADServerParamKeys from "./constants/AADServerParamKeys.js"; | ||
| import * as AccountEntityUtils from "./cache/utils/AccountEntityUtils.js"; | ||
| export { AuthToken }; | ||
| export { AuthorityFactory }; | ||
| export { CacheHelpers }; | ||
| export { TimeUtils }; | ||
| export { UrlUtils }; | ||
| export { AADServerParamKeys }; | ||
| export { AccountEntityUtils }; | ||
| export { AuthorizationCodeClient } from "./client/AuthorizationCodeClient.js"; | ||
| export { RefreshTokenClient } from "./client/RefreshTokenClient.js"; | ||
| export { SilentFlowClient } from "./client/SilentFlowClient.js"; | ||
| export { AuthOptions, SystemOptions, LoggerOptions, DEFAULT_SYSTEM_OPTIONS, AzureCloudOptions, ApplicationTelemetry, } from "./config/ClientConfiguration.js"; | ||
| export { ClientConfiguration } from "./config/ClientConfiguration.js"; | ||
| export { AccountInfo, ActiveAccountFilters, TenantProfile, updateAccountTenantProfileData, tenantIdMatchesHomeTenant, buildTenantProfile, } from "./account/AccountInfo.js"; | ||
| export { TokenClaims, getTenantIdFromIdTokenClaims, } from "./account/TokenClaims.js"; | ||
| export { TokenClaims as IdTokenClaims } from "./account/TokenClaims.js"; | ||
| export { CcsCredential, CcsCredentialType } from "./account/CcsCredential.js"; | ||
| export { ClientInfo, buildClientInfo, buildClientInfoFromHomeAccountId, } from "./account/ClientInfo.js"; | ||
| export { Authority, formatAuthorityUri, buildStaticAuthorityOptions, } from "./authority/Authority.js"; | ||
| export { AuthorityOptions, AzureCloudInstance, StaticAuthorityOptions, } from "./authority/AuthorityOptions.js"; | ||
| export { AuthorityType } from "./authority/AuthorityType.js"; | ||
| export { ProtocolMode } from "./authority/ProtocolMode.js"; | ||
| export { OIDCOptions } from "./authority/OIDCOptions.js"; | ||
| export { CacheManager, DefaultStorageClass } from "./cache/CacheManager.js"; | ||
| export { AccountCache, AccountFilter, AccessTokenCache, IdTokenCache, RefreshTokenCache, AppMetadataCache, CredentialFilter, ValidCacheType, ValidCredentialType, TokenKeys, } from "./cache/utils/CacheTypes.js"; | ||
| export { CacheRecord } from "./cache/entities/CacheRecord.js"; | ||
| export { CredentialEntity } from "./cache/entities/CredentialEntity.js"; | ||
| export { AppMetadataEntity } from "./cache/entities/AppMetadataEntity.js"; | ||
| export { AccountEntity } from "./cache/entities/AccountEntity.js"; | ||
| export { IdTokenEntity } from "./cache/entities/IdTokenEntity.js"; | ||
| export { AccessTokenEntity } from "./cache/entities/AccessTokenEntity.js"; | ||
| export { RefreshTokenEntity } from "./cache/entities/RefreshTokenEntity.js"; | ||
| export { ServerTelemetryEntity } from "./cache/entities/ServerTelemetryEntity.js"; | ||
| export { AuthorityMetadataEntity } from "./cache/entities/AuthorityMetadataEntity.js"; | ||
| export { ThrottlingEntity } from "./cache/entities/ThrottlingEntity.js"; | ||
| export { INetworkModule, NetworkRequestOptions, StubbedNetworkModule, } from "./network/INetworkModule.js"; | ||
| export { NetworkResponse } from "./network/NetworkResponse.js"; | ||
| export { ThrottlingUtils } from "./network/ThrottlingUtils.js"; | ||
| export { RequestThumbprint, getRequestThumbprint, } from "./network/RequestThumbprint.js"; | ||
| export { IUri } from "./url/IUri.js"; | ||
| export { UrlString } from "./url/UrlString.js"; | ||
| export { ICrypto, PkceCodes, DEFAULT_CRYPTO_IMPLEMENTATION, SignedHttpRequestParameters, } from "./crypto/ICrypto.js"; | ||
| export * as AuthorizeProtocol from "./protocol/Authorize.js"; | ||
| export * as TokenProtocol from "./protocol/Token.js"; | ||
| export { BaseAuthRequest, enforceResourceParameter, } from "./request/BaseAuthRequest.js"; | ||
| export { CommonAuthorizationUrlRequest } from "./request/CommonAuthorizationUrlRequest.js"; | ||
| export { CommonAuthorizationCodeRequest } from "./request/CommonAuthorizationCodeRequest.js"; | ||
| export { CommonRefreshTokenRequest } from "./request/CommonRefreshTokenRequest.js"; | ||
| export { CommonSilentFlowRequest } from "./request/CommonSilentFlowRequest.js"; | ||
| export { CommonEndSessionRequest } from "./request/CommonEndSessionRequest.js"; | ||
| export * as RequestParameterBuilder from "./request/RequestParameterBuilder.js"; | ||
| export { StoreInCache } from "./request/StoreInCache.js"; | ||
| export { AzureRegion } from "./authority/AzureRegion.js"; | ||
| export { AzureRegionConfiguration } from "./authority/AzureRegionConfiguration.js"; | ||
| export { AuthenticationResult } from "./response/AuthenticationResult.js"; | ||
| export { AuthorizationCodePayload } from "./response/AuthorizationCodePayload.js"; | ||
| export { AuthorizeResponse } from "./response/AuthorizeResponse.js"; | ||
| export { ServerAuthorizationTokenResponse } from "./response/ServerAuthorizationTokenResponse.js"; | ||
| export { ResponseHandler, buildAccountToCache, } from "./response/ResponseHandler.js"; | ||
| export { ScopeSet } from "./request/ScopeSet.js"; | ||
| export { AuthenticationHeaderParser } from "./request/AuthenticationHeaderParser.js"; | ||
| export { ILoggerCallback, LogLevel, Logger } from "./logger/Logger.js"; | ||
| export { InteractionRequiredAuthError, InteractionRequiredAuthErrorCodes, createInteractionRequiredAuthError, } from "./error/InteractionRequiredAuthError.js"; | ||
| export { AuthError, AuthErrorCodes, createAuthError, } from "./error/AuthError.js"; | ||
| export { PlatformBrokerError } from "./error/PlatformBrokerError.js"; | ||
| export { ServerError } from "./error/ServerError.js"; | ||
| export { NetworkError, createNetworkError } from "./error/NetworkError.js"; | ||
| export { CacheError, CacheErrorCodes, createCacheError, } from "./error/CacheError.js"; | ||
| export { ClientAuthError, ClientAuthErrorCodes, createClientAuthError, } from "./error/ClientAuthError.js"; | ||
| export { ClientConfigurationError, ClientConfigurationErrorCodes, createClientConfigurationError, } from "./error/ClientConfigurationError.js"; | ||
| export * as Constants from "./utils/Constants.js"; | ||
| export { StringUtils } from "./utils/StringUtils.js"; | ||
| export { StringDict } from "./utils/MsalTypes.js"; | ||
| export { RequestStateObject, LibraryStateObject } from "./utils/StateTypes.js"; | ||
| export * as ProtocolUtils from "./utils/ProtocolUtils.js"; | ||
| export * from "./utils/FunctionWrappers.js"; | ||
| export { ServerTelemetryManager } from "./telemetry/server/ServerTelemetryManager.js"; | ||
| export { ServerTelemetryRequest } from "./telemetry/server/ServerTelemetryRequest.js"; | ||
| export { version } from "./packageMetadata.js"; | ||
| //# sourceMappingURL=exports-common.d.ts.map |
| {"version":3,"file":"exports-common.d.ts","sourceRoot":"","sources":["../../src/exports-common.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,gBAAgB,MAAM,iCAAiC,CAAC;AACpE,OAAO,KAAK,YAAY,MAAM,+BAA+B,CAAC;AAC9D,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,kBAAkB,MAAM,mCAAmC,CAAC;AACxE,OAAO,KAAK,kBAAkB,MAAM,qCAAqC,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,OAAO,EAAE,SAA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D,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EACH,UAAU,EACV,eAAe,EACf,gBAAgB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACH,eAAe,EACf,oBAAoB,EACpB,qBAAqB,GACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,wBAAwB,EACxB,6BAA6B,EAC7B,8BAA8B,GACjC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC"} |
| import * as ClientAssertionUtils from "./utils/ClientAssertionUtils.js"; | ||
| export { ClientAssertionUtils }; | ||
| export { IAppTokenProvider, AppTokenProviderParameters, AppTokenProviderResult, } from "./config/AppTokenProvider.js"; | ||
| export { INativeBrokerPlugin } from "./broker/nativeBroker/INativeBrokerPlugin.js"; | ||
| export { ICachePlugin } from "./cache/interface/ICachePlugin.js"; | ||
| export { TokenCacheContext } from "./cache/persistence/TokenCacheContext.js"; | ||
| export { ISerializableTokenCache } from "./cache/interface/ISerializableTokenCache.js"; | ||
| export { NativeRequest } from "./request/NativeRequest.js"; | ||
| export { NativeSignOutRequest } from "./request/NativeSignOutRequest.js"; | ||
| export { ClientAssertion, ClientAssertionConfig, ClientAssertionCallback, } from "./account/ClientCredentials.js"; | ||
| export { DeviceCodeResponse, ServerDeviceCodeResponse, } from "./response/DeviceCodeResponse.js"; | ||
| export { getClientAssertion } from "./utils/ClientAssertionUtils.js"; | ||
| export { IGuidGenerator } from "./crypto/IGuidGenerator.js"; | ||
| export { StubPerformanceClient } from "./telemetry/performance/StubPerformanceClient.js"; | ||
| export { buildClientConfiguration, CommonClientConfiguration, } from "./config/ClientConfiguration.js"; | ||
| //# sourceMappingURL=exports-node-only.d.ts.map |
| {"version":3,"file":"exports-node-only.d.ts","sourceRoot":"","sources":["../../src/exports-node-only.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,oBAAoB,MAAM,iCAAiC,CAAC;AAExE,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC,OAAO,EACH,iBAAiB,EACjB,0BAA0B,EAC1B,sBAAsB,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EACH,eAAe,EACf,qBAAqB,EACrB,uBAAuB,GAC1B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACH,kBAAkB,EAClB,wBAAwB,GAC3B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AACzF,OAAO,EACH,wBAAwB,EACxB,yBAAyB,GAC5B,MAAM,iCAAiC,CAAC"} |
| /** | ||
| * This file is the entrypoint when importing with the browser subpath e.g. "import { someExport } from @azure/msal-common/browser" | ||
| * Additional exports should be added to the applicable exports-*.ts files | ||
| */ | ||
| export * from "./exports-common.js"; | ||
| export * from "./exports-browser-only.js"; | ||
| //# sourceMappingURL=index-browser.d.ts.map |
| {"version":3,"file":"index-browser.d.ts","sourceRoot":"","sources":["../../src/index-browser.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC"} |
| /** | ||
| * This file is the entrypoint when importing with the node subpath e.g. "import { someExport } from @azure/msal-common/node" | ||
| * Additional exports should be added to the applicable exports-*.ts files | ||
| */ | ||
| export * from "./exports-common.js"; | ||
| export * from "./exports-node-only.js"; | ||
| //# sourceMappingURL=index-node.d.ts.map |
| {"version":3,"file":"index-node.d.ts","sourceRoot":"","sources":["../../src/index-node.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC"} |
| /** | ||
| * @packageDocumentation | ||
| * @module @azure/msal-common | ||
| */ | ||
| /** | ||
| * This file is the entrypoint when importing without a specific subpath e.g. "import { someExport } from @azure/msal-common" | ||
| * Additional exports should be added to the applicable exports-*.ts files | ||
| */ | ||
| export * from "./exports-common.js"; | ||
| export * from "./exports-browser-only.js"; | ||
| export * from "./exports-node-only.js"; | ||
| //# sourceMappingURL=index.d.ts.map |
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAKA;;;GAGG;AAEH;;;GAGG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC"} |
| import type { LoggerOptions } from "../config/ClientConfiguration.js"; | ||
| /** | ||
| * Options for logger messages. | ||
| */ | ||
| export type LoggerMessageOptions = { | ||
| logLevel: LogLevel; | ||
| containsPii?: boolean; | ||
| context?: string; | ||
| correlationId: string; | ||
| }; | ||
| /** | ||
| * Log message level. | ||
| */ | ||
| export declare enum LogLevel { | ||
| Error = 0, | ||
| Warning = 1, | ||
| Info = 2, | ||
| Verbose = 3, | ||
| Trace = 4 | ||
| } | ||
| /** | ||
| * Callback to send the messages to. | ||
| */ | ||
| export interface ILoggerCallback { | ||
| (level: LogLevel, message: string, containsPii: boolean): void; | ||
| } | ||
| /** | ||
| * Represents a single logged message with metadata | ||
| */ | ||
| export interface LoggedMessage { | ||
| hash: string; | ||
| level: LogLevel; | ||
| containsPii: boolean; | ||
| milliseconds: number; | ||
| } | ||
| /** | ||
| * Get all logs for specific correlation ID | ||
| * @param correlationId | ||
| */ | ||
| export declare function getLogsFromCache(correlationId: string): LoggedMessage[]; | ||
| /** | ||
| * Get logs for correlation ID and flush them from cache | ||
| * Attaches logs with empty correlation id to the requested correlation logs | ||
| * @param correlationId | ||
| */ | ||
| export declare function getAndFlushLogsFromCache(correlationId: string): LoggedMessage[]; | ||
| /** | ||
| * Get all correlation IDs that have logs | ||
| */ | ||
| export declare function getCachedCorrelationIds(): string[]; | ||
| /** | ||
| * Class which facilitates logging of messages to a specific place. | ||
| */ | ||
| export declare class Logger { | ||
| private level; | ||
| private piiLoggingEnabled; | ||
| private localCallback; | ||
| private packageName; | ||
| private packageVersion; | ||
| constructor(loggerOptions: LoggerOptions, packageName?: string, packageVersion?: string); | ||
| private static createDefaultLoggerOptions; | ||
| /** | ||
| * Create new Logger with existing configurations. | ||
| */ | ||
| clone(packageName: string, packageVersion: string): Logger; | ||
| /** | ||
| * Log message with required options. | ||
| */ | ||
| private logMessage; | ||
| /** | ||
| * Execute callback with message. | ||
| */ | ||
| executeCallback(level: LogLevel, message: string, containsPii: boolean): void; | ||
| /** | ||
| * Logs error messages. | ||
| */ | ||
| error(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs error messages with PII. | ||
| */ | ||
| errorPii(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs warning messages. | ||
| */ | ||
| warning(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs warning messages with PII. | ||
| */ | ||
| warningPii(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs info messages. | ||
| */ | ||
| info(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs info messages with PII. | ||
| */ | ||
| infoPii(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs verbose messages. | ||
| */ | ||
| verbose(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs verbose messages with PII. | ||
| */ | ||
| verbosePii(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs trace messages. | ||
| */ | ||
| trace(message: string, correlationId: string): void; | ||
| /** | ||
| * Logs trace messages with PII. | ||
| */ | ||
| tracePii(message: string, correlationId: string): void; | ||
| /** | ||
| * Returns whether PII Logging is enabled or not. | ||
| */ | ||
| isPiiLoggingEnabled(): boolean; | ||
| } | ||
| //# sourceMappingURL=Logger.d.ts.map |
| {"version":3,"file":"Logger.d.ts","sourceRoot":"","sources":["../../../src/logger/Logger.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,oBAAY,QAAQ;IAChB,KAAK,IAAA;IACL,OAAO,IAAA;IACP,IAAI,IAAA;IACJ,OAAO,IAAA;IACP,KAAK,IAAA;CACR;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,GAAG,IAAI,CAAC;CAClE;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,QAAQ,CAAC;IAChB,WAAW,EAAE,O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AE,MAAM,GAAG,IAAI;IAQlD;;OAEG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQrD;;OAEG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQrD;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQxD;;OAEG;IACH,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQnD;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAQtD;;OAEG;IACH,mBAAmB,IAAI,OAAO;CAGjC"} |
| import { NetworkResponse } from "./NetworkResponse.js"; | ||
| /** | ||
| * Options allowed by network request APIs. | ||
| */ | ||
| export type NetworkRequestOptions = { | ||
| headers?: Record<string, string>; | ||
| body?: string; | ||
| }; | ||
| /** | ||
| * Client network interface to send backend requests. | ||
| * @interface | ||
| */ | ||
| export interface INetworkModule { | ||
| /** | ||
| * Interface function for async network "GET" requests. Based on the Fetch standard: https://fetch.spec.whatwg.org/ | ||
| * @param url | ||
| * @param options - Headers and/or body to include on the request | ||
| * @param timeout | ||
| */ | ||
| sendGetRequestAsync<T>(url: string, options?: NetworkRequestOptions, timeout?: number): Promise<NetworkResponse<T>>; | ||
| /** | ||
| * Interface function for async network "POST" requests. Based on the Fetch standard: https://fetch.spec.whatwg.org/ | ||
| * @param url | ||
| * @param options - Headers and/or body to include on the request | ||
| */ | ||
| sendPostRequestAsync<T>(url: string, options?: NetworkRequestOptions): Promise<NetworkResponse<T>>; | ||
| } | ||
| export declare const StubbedNetworkModule: INetworkModule; | ||
| //# sourceMappingURL=INetworkModule.d.ts.map |
| {"version":3,"file":"INetworkModule.d.ts","sourceRoot":"","sources":["../../../src/network/INetworkModule.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;;OAKG;IACH,mBAAmB,CAAC,CAAC,EACjB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,EAC/B,OAAO,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IAE/B;;;;OAIG;IACH,oBAAoB,CAAC,CAAC,EAClB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,GAChC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;CAClC;AAED,eAAO,MAAM,oBAAoB,EAAE,cAWlC,CAAC"} |
| export type NetworkResponse<T> = { | ||
| headers: Record<string, string>; | ||
| body: T; | ||
| status: number; | ||
| }; | ||
| //# sourceMappingURL=NetworkResponse.d.ts.map |
| {"version":3,"file":"NetworkResponse.d.ts","sourceRoot":"","sources":["../../../src/network/NetworkResponse.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI;IAC7B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,CAAC,CAAC;IACR,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC"} |
| import { ShrOptions } from "../crypto/SignedHttpRequest.js"; | ||
| import { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| import { AuthenticationScheme } from "../utils/Constants.js"; | ||
| /** | ||
| * Type representing a unique request thumbprint. | ||
| */ | ||
| export type RequestThumbprint = { | ||
| clientId: string; | ||
| authority: string; | ||
| scopes: Array<string>; | ||
| homeAccountIdentifier?: string; | ||
| claims?: string; | ||
| authenticationScheme?: AuthenticationScheme; | ||
| resourceRequestMethod?: string; | ||
| resourceRequestUri?: string; | ||
| shrClaims?: string; | ||
| sshKid?: string; | ||
| shrOptions?: ShrOptions; | ||
| embeddedClientId?: string; | ||
| }; | ||
| export declare function getRequestThumbprint(clientId: string, request: BaseAuthRequest, homeAccountId?: string): RequestThumbprint; | ||
| //# sourceMappingURL=RequestThumbprint.d.ts.map |
| {"version":3,"file":"RequestThumbprint.d.ts","sourceRoot":"","sources":["../../../src/network/RequestThumbprint.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,wBAAgB,oBAAoB,CAChC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,eAAe,EACxB,aAAa,CAAC,EAAE,MAAM,GACvB,iBAAiB,CAenB"} |
| import { NetworkResponse } from "./NetworkResponse.js"; | ||
| import { ServerAuthorizationTokenResponse } from "../response/ServerAuthorizationTokenResponse.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { RequestThumbprint } from "./RequestThumbprint.js"; | ||
| import { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| /** @internal */ | ||
| export declare class ThrottlingUtils { | ||
| /** | ||
| * Prepares a RequestThumbprint to be stored as a key. | ||
| * @param thumbprint | ||
| */ | ||
| static generateThrottlingStorageKey(thumbprint: RequestThumbprint): string; | ||
| /** | ||
| * Performs necessary throttling checks before a network request. | ||
| * @param cacheManager | ||
| * @param thumbprint | ||
| */ | ||
| static preProcess(cacheManager: CacheManager, thumbprint: RequestThumbprint, correlationId: string): void; | ||
| /** | ||
| * Performs necessary throttling checks after a network request. | ||
| * @param cacheManager | ||
| * @param thumbprint | ||
| * @param response | ||
| */ | ||
| static postProcess(cacheManager: CacheManager, thumbprint: RequestThumbprint, response: NetworkResponse<ServerAuthorizationTokenResponse>, correlationId: string): void; | ||
| /** | ||
| * Checks a NetworkResponse object's status codes against 429 or 5xx | ||
| * @param response | ||
| */ | ||
| static checkResponseStatus(response: NetworkResponse<ServerAuthorizationTokenResponse>): boolean; | ||
| /** | ||
| * Checks a NetworkResponse object's RetryAfter header | ||
| * @param response | ||
| */ | ||
| static checkResponseForRetryAfter(response: NetworkResponse<ServerAuthorizationTokenResponse>): boolean; | ||
| /** | ||
| * Calculates the Unix-time value for a throttle to expire given throttleTime in seconds. | ||
| * @param throttleTime | ||
| */ | ||
| static calculateThrottleTime(throttleTime: number): number; | ||
| static removeThrottle(cacheManager: CacheManager, clientId: string, request: BaseAuthRequest, homeAccountIdentifier?: string): void; | ||
| } | ||
| //# sourceMappingURL=ThrottlingUtils.d.ts.map |
| {"version":3,"file":"ThrottlingUtils.d.ts","sourceRoot":"","sources":["../../../src/network/ThrottlingUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AAEnG,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAEH,iBAAiB,EACpB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,gBAAgB;AAChB,qBAAa,eAAe;IACxB;;;OAGG;IACH,MAAM,CAAC,4BAA4B,CAAC,UAAU,EAAE,iBAAiB,GAAG,MAAM;IAI1E;;;;OAIG;IACH,MAAM,CAAC,UAAU,CACb,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,iBAAiB,EAC7B,aAAa,EAAE,MAAM,GACtB,IAAI;IAiBP;;;;;OAKG;IACH,MAAM,CAAC,WAAW,CACd,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,iBAAiB,EAC7B,QAAQ,EAAE,eAAe,CAAC,gCAAgC,CAAC,EAC3D,aAAa,EAAE,MAAM,GACtB,IAAI;IAwBP;;;OAGG;IACH,MAAM,CAAC,mBAAmB,CACtB,QAAQ,EAAE,eAAe,CAAC,gCAAgC,CAAC,GAC5D,OAAO;IAOV;;;OAGG;IACH,MAAM,CAAC,0BAA0B,CAC7B,QAAQ,EAAE,eAAe,CAAC,gCAAgC,CAAC,GAC5D,OAAO;IAYV;;;OAGG;IACH,MAAM,CAAC,qBAAqB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;IAa1D,MAAM,CAAC,cAAc,CACjB,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,eAAe,EACxB,qBAAqB,CAAC,EAAE,MAAM,GAC/B,IAAI;CASV"} |
| export declare const name = "@azure/msal-common"; | ||
| export declare const version = "16.5.2"; | ||
| //# sourceMappingURL=packageMetadata.d.ts.map |
| {"version":3,"file":"packageMetadata.d.ts","sourceRoot":"","sources":["../../src/packageMetadata.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI,uBAAuB,CAAC;AACzC,eAAO,MAAM,OAAO,WAAW,CAAC"} |
| import { CommonAuthorizationUrlRequest } from "../request/CommonAuthorizationUrlRequest.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { AuthOptions } from "../config/ClientConfiguration.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { Authority } from "../authority/Authority.js"; | ||
| import { AuthorizationCodePayload } from "../response/AuthorizationCodePayload.js"; | ||
| import { AuthorizeResponse } from "../response/AuthorizeResponse.js"; | ||
| /** | ||
| * Returns map of parameters that are applicable to all calls to /authorize whether using PKCE or EAR | ||
| * @param config | ||
| * @param request | ||
| * @param logger | ||
| * @param performanceClient | ||
| * @returns | ||
| */ | ||
| export declare function getStandardAuthorizeRequestParameters(authOptions: AuthOptions, request: CommonAuthorizationUrlRequest, logger: Logger, performanceClient?: IPerformanceClient): Map<string, string>; | ||
| /** | ||
| * Returns authorize endpoint with given request parameters in the query string | ||
| * @param authority | ||
| * @param requestParameters | ||
| * @returns | ||
| */ | ||
| export declare function getAuthorizeUrl(authority: Authority, requestParameters: Map<string, string>): string; | ||
| /** | ||
| * Handles the hash fragment response from public client code request. Returns a code response used by | ||
| * the client to exchange for a token in acquireToken. | ||
| * @param serverParams | ||
| * @param cachedState | ||
| */ | ||
| export declare function getAuthorizationCodePayload(serverParams: AuthorizeResponse, cachedState: string): AuthorizationCodePayload; | ||
| /** | ||
| * Function which validates server authorization code response. | ||
| * @param serverResponseHash | ||
| * @param requestState | ||
| */ | ||
| export declare function validateAuthorizationResponse(serverResponse: AuthorizeResponse, requestState: string): void; | ||
| //# sourceMappingURL=Authorize.d.ts.map |
| {"version":3,"file":"Authorize.d.ts","sourceRoot":"","sources":["../../../src/protocol/Authorize.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAE5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEpF,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAG/D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAWrE;;;;;;;GAOG;AACH,wBAAgB,qCAAqC,CACjD,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,6BAA6B,EACtC,MAAM,EAAE,MAAM,EACd,iBAAiB,CAAC,EAAE,kBAAkB,GACvC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAiOrB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC3B,SAAS,EAAE,SAAS,EACpB,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACvC,MAAM,CAMR;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACvC,YAAY,EAAE,iBAAiB,EAC/B,WAAW,EAAE,MAAM,GACpB,wBAAwB,CAY1B;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CACzC,cAAc,EAAE,iBAAiB,EACjC,YAAY,EAAE,MAAM,GACrB,IAAI,CAuEN"} |
| import { CcsCredential } from "../account/CcsCredential.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| import { IPerformanceClient } from "../exports-browser-only.js"; | ||
| import { ServerAuthorizationTokenResponse } from "../response/ServerAuthorizationTokenResponse.js"; | ||
| import { RequestThumbprint } from "../network/RequestThumbprint.js"; | ||
| import { INetworkModule, NetworkRequestOptions } from "../network/INetworkModule.js"; | ||
| import { NetworkResponse } from "../network/NetworkResponse.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| /** | ||
| * Creates default headers for requests to token endpoint | ||
| */ | ||
| export declare function createTokenRequestHeaders(logger: Logger, preventCorsPreflight: boolean, ccsCred?: CcsCredential): Record<string, string>; | ||
| /** | ||
| * Creates query string for the /token request | ||
| * @param request | ||
| */ | ||
| export declare function createTokenQueryParameters(request: BaseAuthRequest, clientId: string, redirectUri: string, performanceClient: IPerformanceClient): string; | ||
| /** | ||
| * Http post to token endpoint | ||
| * @param tokenEndpoint | ||
| * @param queryString | ||
| * @param headers | ||
| * @param thumbprint | ||
| */ | ||
| export declare function executePostToTokenEndpoint(tokenEndpoint: string, queryString: string, headers: Record<string, string>, thumbprint: RequestThumbprint, correlationId: string, cacheManager: CacheManager, networkClient: INetworkModule, logger: Logger, performanceClient: IPerformanceClient, serverTelemetryManager: ServerTelemetryManager | null): Promise<NetworkResponse<ServerAuthorizationTokenResponse>>; | ||
| /** | ||
| * Wraps sendPostRequestAsync with necessary preflight and postflight logic | ||
| * @param thumbprint - Request thumbprint for throttling | ||
| * @param tokenEndpoint - Endpoint to make the POST to | ||
| * @param options - Body and Headers to include on the POST request | ||
| * @param correlationId - CorrelationId for telemetry | ||
| * @param cacheManager - Cache manager instance | ||
| * @param networkClient - Network module instance | ||
| * @param logger - Logger instance | ||
| * @param performanceClient - Performance client instance | ||
| */ | ||
| export declare function sendPostRequest<T extends ServerAuthorizationTokenResponse>(thumbprint: RequestThumbprint, tokenEndpoint: string, options: NetworkRequestOptions, correlationId: string, cacheManager: CacheManager, networkClient: INetworkModule, logger: Logger, performanceClient: IPerformanceClient): Promise<NetworkResponse<T>>; | ||
| //# sourceMappingURL=Token.d.ts.map |
| {"version":3,"file":"Token.d.ts","sourceRoot":"","sources":["../../../src/protocol/Token.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAqB,MAAM,6BAA6B,CAAC;AAE/E,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAIhE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,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Y,EAC1B,aAAa,EAAE,cAAc,EAC7B,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,kBAAkB,GACtC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CA6D7B"} |
| /** | ||
| * This is a helper class that parses supported HTTP response authentication headers to extract and return | ||
| * header challenge values that can be used outside the basic authorization flows. | ||
| */ | ||
| export declare class AuthenticationHeaderParser { | ||
| private headers; | ||
| constructor(headers: Record<string, string>); | ||
| /** | ||
| * This method parses the SHR nonce value out of either the Authentication-Info or WWW-Authenticate authentication headers. | ||
| * @returns | ||
| */ | ||
| getShrNonce(): string; | ||
| /** | ||
| * Parses an HTTP header's challenge set into a key/value map. | ||
| * @param header | ||
| * @returns | ||
| */ | ||
| private parseChallenges; | ||
| } | ||
| //# sourceMappingURL=AuthenticationHeaderParser.d.ts.map |
| {"version":3,"file":"AuthenticationHeaderParser.d.ts","sourceRoot":"","sources":["../../../src/request/AuthenticationHeaderParser.ts"],"names":[],"mappings":"AAmBA;;;GAGG;AACH,qBAAa,0BAA0B;IACnC,OAAO,CAAC,OAAO,CAAyB;gBAE5B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAI3C;;;OAGG;IACH,WAAW,IAAI,MAAM;IAqCrB;;;;OAIG;IACH,OAAO,CAAC,eAAe;CAa1B"} |
| import { AuthenticationScheme, HttpMethod } from "../utils/Constants.js"; | ||
| import type { AzureCloudOptions } from "../config/ClientConfiguration.js"; | ||
| import { StringDict } from "../utils/MsalTypes.js"; | ||
| import { StoreInCache } from "./StoreInCache.js"; | ||
| import { ShrOptions } from "../crypto/SignedHttpRequest.js"; | ||
| /** | ||
| * BaseAuthRequest | ||
| */ | ||
| export type BaseAuthRequest = { | ||
| /** | ||
| * URL of the authority, the security token service (STS) from which MSAL will acquire tokens. Defaults to https://login.microsoftonline.com/common. If using the same authority for all request, authority should set on client application object and not request, to avoid resolving authority endpoints multiple times. | ||
| */ | ||
| authority: string; | ||
| /** | ||
| * Unique GUID set per request to trace a request end-to-end for telemetry purposes. | ||
| */ | ||
| correlationId: string; | ||
| /** | ||
| * Array of scopes the application is requesting access to. | ||
| */ | ||
| scopes: Array<string>; | ||
| /** | ||
| * The type of token retrieved. Defaults to "Bearer". Can also be type "pop" or "SSH". | ||
| */ | ||
| authenticationScheme?: AuthenticationScheme; | ||
| /** | ||
| * A stringified claims request which will be added to all /authorize and /token calls | ||
| */ | ||
| claims?: string; | ||
| /** | ||
| * A stringified claims object which will be added to a Signed HTTP Request | ||
| */ | ||
| shrClaims?: string; | ||
| /** | ||
| * A server-generated timestamp that has been encrypted and base64URL encoded, which will be added to a Signed HTTP Request. | ||
| */ | ||
| shrNonce?: string; | ||
| /** | ||
| * An object containing options for the Signed HTTP Request | ||
| */ | ||
| shrOptions?: ShrOptions; | ||
| /** | ||
| * HTTP Request type used to request data from the resource (i.e. "GET", "POST", etc.). Used for proof-of-possession flows. | ||
| */ | ||
| resourceRequestMethod?: string; | ||
| /** | ||
| * URI that token will be used for. Used for proof-of-possession flows. | ||
| */ | ||
| resourceRequestUri?: string; | ||
| /** | ||
| * A stringified JSON Web Key representing a public key that can be signed by an SSH certificate. | ||
| */ | ||
| sshJwk?: string; | ||
| /** | ||
| * Key ID that uniquely identifies the SSH public key mentioned above. | ||
| */ | ||
| sshKid?: string; | ||
| /** | ||
| * Convenience string enums for users to provide public/sovereign cloud ids | ||
| */ | ||
| azureCloudOptions?: AzureCloudOptions; | ||
| /** | ||
| * Maximum allowed age, in milliseconds, of the user's authentication before a new sign-in is required. | ||
| */ | ||
| maxAge?: number; | ||
| /** | ||
| * Object containing boolean values indicating whether to store tokens in the cache or not (default is true) | ||
| */ | ||
| storeInCache?: StoreInCache; | ||
| /** | ||
| * Scenario id to track custom user prompts | ||
| */ | ||
| scenarioId?: string; | ||
| /** | ||
| * Key ID to identify the public key for PoP token request | ||
| */ | ||
| popKid?: string; | ||
| /** | ||
| * Embedded client id. When specified, broker client id (brk_client_id) and redirect uri (brk_redirect_uri) params are set with values from the config, overriding the corresponding extra parameters, if present. | ||
| */ | ||
| embeddedClientId?: string; | ||
| /** | ||
| * HTTP method to use for the /authorize request. Defaults to GET, but can be set to POST if the request requires body parameters. | ||
| */ | ||
| httpMethod?: HttpMethod; | ||
| /** | ||
| * Resource parameter to be sent with the request. Used for MCP flows. | ||
| */ | ||
| resource?: string; | ||
| /** | ||
| * When true and a brokered flow is in effect—i.e., when a broker client id (brk_client_id), typically derived from embeddedClientId or other broker parameters, is included in the request—clientCapabilities from configuration will be excluded from claims. Has no effect when brk_client_id is not present (non-brokered flows). | ||
| */ | ||
| skipBrokerClaims?: boolean; | ||
| /** | ||
| * String to string map of custom query parameters added to outgoing token service requests. Unless the parameter is only supported on query strings use extraParameters instead | ||
| */ | ||
| extraQueryParameters?: StringDict; | ||
| /** | ||
| * String to string map of custom parameters added to outgoing token service requests. | ||
| */ | ||
| extraParameters?: StringDict; | ||
| }; | ||
| /** | ||
| * Helper to enforce resource parameter presence in token requests when isMcp is set in the configuration. | ||
| * If resource parameter is set in both the request and in extraQueryParameters or extraParameters, an error will be thrown. | ||
| * This is used for MCP flows. | ||
| * @param isMcp - Flag indicating if application is an MCP app, from configuration | ||
| * @param request - Auth request | ||
| */ | ||
| export declare function enforceResourceParameter(isMcp: boolean, request: Partial<BaseAuthRequest>): void; | ||
| //# sourceMappingURL=BaseAuthRequest.d.ts.map |
| {"version":3,"file":"BaseAuthRequest.d.ts","sourceRoot":"","sources":["../../../src/request/BaseAuthRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAI5D;;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KAAK,EAAE,OAAO,EACd,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,GAClC,IAAI,CAoBN"} |
| import { BaseAuthRequest } from "./BaseAuthRequest.js"; | ||
| import { CcsCredential } from "../account/CcsCredential.js"; | ||
| /** | ||
| * Request object passed by user to acquire a token from the server exchanging a valid authorization code (second leg of OAuth2.0 Authorization Code flow) | ||
| */ | ||
| export type CommonAuthorizationCodeRequest = BaseAuthRequest & { | ||
| /** | ||
| * The authorization_code that the user acquired in the first leg of the flow. | ||
| */ | ||
| code: string; | ||
| /** | ||
| * The redirect URI of your app, where the authority will redirect to after the user inputs credentials and consents. It must exactly match one of the redirect URIs you registered in the portal | ||
| */ | ||
| redirectUri: string; | ||
| /** | ||
| * The same code_verifier that was used to obtain the authorization_code. Required if PKCE was used in the authorization code grant request.For more information, see the PKCE RFC: https://tools.ietf.org/html/rfc7636 | ||
| */ | ||
| codeVerifier?: string; | ||
| /** | ||
| * Enables the acquisition of a SPA authorization code (confidential clients only). | ||
| */ | ||
| enableSpaAuthorizationCode?: boolean; | ||
| /** | ||
| * Encoded client_info returned with the authorization code, used to bind the token response to a specific account. | ||
| */ | ||
| clientInfo?: string; | ||
| /** | ||
| * Credential used to populate the CCS (Cache Credential Service) header. | ||
| */ | ||
| ccsCredential?: CcsCredential; | ||
| }; | ||
| //# sourceMappingURL=CommonAuthorizationCodeRequest.d.ts.map |
| {"version":3,"file":"CommonAuthorizationCodeRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonAuthorizationCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,eAAe,GAAG;IAC3D;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CACjC,CAAC"} |
| import { ResponseMode } from "../utils/Constants.js"; | ||
| import { BaseAuthRequest } from "./BaseAuthRequest.js"; | ||
| import { AccountInfo } from "../account/AccountInfo.js"; | ||
| /** | ||
| * Request object passed by user to retrieve a Code from the server (first leg of authorization code grant flow) | ||
| */ | ||
| export type CommonAuthorizationUrlRequest = BaseAuthRequest & { | ||
| /** | ||
| * 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. | ||
| */ | ||
| redirectUri: string; | ||
| /** | ||
| * Specifies the method that should be used to send the authentication result to your app. Can be query, form_post, or fragment. If no value is passed in, it defaults to query. | ||
| */ | ||
| responseMode: ResponseMode; | ||
| /** | ||
| * AccountInfo obtained from a getAccount API. Will be used in certain scenarios to generate login_hint if both loginHint and sid params are not provided. | ||
| */ | ||
| account?: AccountInfo; | ||
| /** | ||
| * JSON Web Key used when constructing Encrypted Authorize Response (EAR) parameters. | ||
| */ | ||
| earJwk?: string; | ||
| /** | ||
| * 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 | ||
| */ | ||
| codeChallenge?: string; | ||
| /** | ||
| * 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 | ||
| */ | ||
| codeChallengeMethod?: string; | ||
| /** | ||
| * 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. | ||
| */ | ||
| domainHint?: string; | ||
| /** | ||
| * Scopes for a different resource when the user needs consent upfront. | ||
| */ | ||
| extraScopesToConsent?: Array<string>; | ||
| /** | ||
| * 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. Can also be the string value extracted from the login_hint claim on an idToken obtained previously to provide SSO. | ||
| */ | ||
| loginHint?: string; | ||
| /** | ||
| * 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. | ||
| */ | ||
| nonce: string; | ||
| /** | ||
| * Indicates the type of user interaction that is required. | ||
| * login: will force the user to enter their credentials on that request, negating single-sign on | ||
| * 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 | ||
| * consent: will the trigger the OAuth consent dialog after the user signs in, asking the user to grant permissions to the app | ||
| * 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 | ||
| * create: will direct the user to the account creation experience instead of the log in experience | ||
| * no_session: will not read existing session token when authenticating the user. Upon user being successfully authenticated, EVO won’t create a new session for the user. FOR INTERNAL USE ONLY. | ||
| */ | ||
| prompt?: string; | ||
| /** | ||
| * Session ID, unique identifier for the session. Available as an optional claim on ID tokens. Use login_hint optional claim provided on loginHint paramter instead, when available. | ||
| */ | ||
| sid?: string; | ||
| /** | ||
| * 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. For security and privacy reasons, we do not recommend putting URLs or other sensitive data directly in the state parameter. Instead, use a key or identifier that corresponds to data stored in browser storage (e.g., localStorage, sessionStorage), allowing your app to securely reference the necessary data after authentication. | ||
| */ | ||
| state: string; | ||
| /** | ||
| * Indicates whether this authorization request is being initiated by a platform authentication broker instead of a standard web flow. | ||
| */ | ||
| platformBroker?: boolean; | ||
| }; | ||
| //# sourceMappingURL=CommonAuthorizationUrlRequest.d.ts.map |
| {"version":3,"file":"CommonAuthorizationUrlRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonAuthorizationUrlRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,eAAe,GAAG;IAC1D;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,YAAY,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,oBAAoB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC"} |
| import { AccountInfo } from "../account/AccountInfo.js"; | ||
| import { StringDict } from "../utils/MsalTypes.js"; | ||
| /** | ||
| * CommonEndSessionRequest | ||
| */ | ||
| export type CommonEndSessionRequest = { | ||
| /** | ||
| * Unique GUID set per request to trace a request end-to-end for telemetry purposes. | ||
| */ | ||
| correlationId: string; | ||
| /** | ||
| * Account object that will be logged out of. All tokens tied to this account will be cleared. | ||
| */ | ||
| account?: AccountInfo | null; | ||
| /** | ||
| * URI to navigate to after logout page. | ||
| */ | ||
| postLogoutRedirectUri?: string | null; | ||
| /** | ||
| * ID Token used by B2C to validate logout if required by the policy | ||
| */ | ||
| idTokenHint?: string; | ||
| /** | ||
| * A value included in the request to the logout endpoint which will be returned in the query string upon post logout redirection. For security and privacy reasons, we do not recommend putting URLs or other sensitive data directly in the state parameter. Instead, use a key or identifier that corresponds to data stored in browser storage (e.g., localStorage, sessionStorage), allowing your app to securely reference the necessary data after logout. | ||
| */ | ||
| state?: string; | ||
| /** | ||
| * A string that specifies the account that is being logged out in order to skip the server account picker on logout | ||
| */ | ||
| logoutHint?: string; | ||
| /** | ||
| * String to string map of custom query parameters added to the /authorize call | ||
| */ | ||
| extraQueryParameters?: StringDict; | ||
| }; | ||
| //# sourceMappingURL=CommonEndSessionRequest.d.ts.map |
| {"version":3,"file":"CommonEndSessionRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonEndSessionRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IAClC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,oBAAoB,CAAC,EAAE,UAAU,CAAC;CACrC,CAAC"} |
| import { BaseAuthRequest } from "./BaseAuthRequest.js"; | ||
| import { CcsCredential } from "../account/CcsCredential.js"; | ||
| /** | ||
| * CommonRefreshTokenRequest | ||
| */ | ||
| export type CommonRefreshTokenRequest = BaseAuthRequest & { | ||
| /** | ||
| * A refresh token returned from a previous request to the Identity provider. | ||
| */ | ||
| refreshToken: string; | ||
| /** | ||
| * Credential used to populate the CCS (Cache Credential Service) header. | ||
| */ | ||
| ccsCredential?: CcsCredential; | ||
| /** | ||
| * Force MSAL to cache a refresh token flow response when there is no account in the cache. Used for migration scenarios. | ||
| */ | ||
| forceCache?: boolean; | ||
| /** | ||
| * Redirect URI to send with the refresh token request. | ||
| */ | ||
| redirectUri?: string; | ||
| }; | ||
| //# sourceMappingURL=CommonRefreshTokenRequest.d.ts.map |
| {"version":3,"file":"CommonRefreshTokenRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonRefreshTokenRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,eAAe,GAAG;IACtD;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"} |
| import { AccountInfo } from "../account/AccountInfo.js"; | ||
| import { BaseAuthRequest } from "./BaseAuthRequest.js"; | ||
| /** | ||
| * SilentFlow parameters passed by the user to retrieve credentials silently | ||
| */ | ||
| export type CommonSilentFlowRequest = BaseAuthRequest & { | ||
| /** | ||
| * Account object to lookup the credentials | ||
| */ | ||
| account: AccountInfo; | ||
| /** | ||
| * Skip cache lookup and forces network call(s) to get fresh tokens | ||
| */ | ||
| forceRefresh: boolean; | ||
| /** | ||
| * RedirectUri registered on the app registration - only required in brokering scenarios | ||
| */ | ||
| redirectUri?: string; | ||
| /** | ||
| * If refresh token will expire within the configured value, consider it already expired. Used to pre-emptively invoke interaction when cached refresh token is close to expiry. | ||
| */ | ||
| refreshTokenExpirationOffsetSeconds?: number; | ||
| }; | ||
| //# sourceMappingURL=CommonSilentFlowRequest.d.ts.map |
| {"version":3,"file":"CommonSilentFlowRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonSilentFlowRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG;IACpD;;OAEG;IACH,OAAO,EAAE,WAAW,CAAC;IACrB;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,mCAAmC,CAAC,EAAE,MAAM,CAAC;CAChD,CAAC"} |
| import { StringDict } from "../utils/MsalTypes.js"; | ||
| export type NativeRequest = { | ||
| clientId: string; | ||
| authority: string; | ||
| correlationId: string; | ||
| redirectUri: string; | ||
| scopes: Array<string>; | ||
| claims?: string; | ||
| authenticationScheme?: string; | ||
| resourceRequestMethod?: string; | ||
| resourceRequestUri?: string; | ||
| shrNonce?: string; | ||
| accountId?: string; | ||
| forceRefresh?: boolean; | ||
| resource?: string; | ||
| extraParameters?: StringDict; | ||
| extraScopesToConsent?: Array<string>; | ||
| loginHint?: string; | ||
| prompt?: string; | ||
| }; | ||
| //# sourceMappingURL=NativeRequest.d.ts.map |
| {"version":3,"file":"NativeRequest.d.ts","sourceRoot":"","sources":["../../../src/request/NativeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,MAAM,MAAM,aAAa,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,oBAAoB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"} |
| export type NativeSignOutRequest = { | ||
| clientId: string; | ||
| accountId: string; | ||
| correlationId: string; | ||
| }; | ||
| //# sourceMappingURL=NativeSignOutRequest.d.ts.map |
| {"version":3,"file":"NativeSignOutRequest.d.ts","sourceRoot":"","sources":["../../../src/request/NativeSignOutRequest.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,oBAAoB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC"} |
| import * as Constants from "../utils/Constants.js"; | ||
| import { StringDict } from "../utils/MsalTypes.js"; | ||
| import { ApplicationTelemetry, LibraryInfo } from "../config/ClientConfiguration.js"; | ||
| import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js"; | ||
| import { ClientInfo } from "../account/ClientInfo.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| export declare function instrumentBrokerParams(parameters: Map<string, string>, correlationId?: string, performanceClient?: IPerformanceClient): void; | ||
| /** | ||
| * Add the given response_type | ||
| * @param parameters | ||
| * @param responseType | ||
| */ | ||
| export declare function addResponseType(parameters: Map<string, string>, responseType: Constants.OAuthResponseType): void; | ||
| /** | ||
| * add response_mode. defaults to query. | ||
| * @param responseMode | ||
| */ | ||
| export declare function addResponseMode(parameters: Map<string, string>, responseMode?: Constants.ResponseMode): void; | ||
| /** | ||
| * Add flag to indicate STS should attempt to use WAM if available | ||
| */ | ||
| export declare function addNativeBroker(parameters: Map<string, string>): void; | ||
| /** | ||
| * add scopes. set addOidcScopes to false to prevent default scopes in non-user scenarios | ||
| * @param scopeSet | ||
| * @param addOidcScopes | ||
| */ | ||
| export declare function addScopes(parameters: Map<string, string>, scopes: string[], addOidcScopes?: boolean, defaultScopes?: Array<string>): void; | ||
| /** | ||
| * add clientId | ||
| * @param clientId | ||
| */ | ||
| export declare function addClientId(parameters: Map<string, string>, clientId: string): void; | ||
| /** | ||
| * add redirect_uri | ||
| * @param redirectUri | ||
| */ | ||
| export declare function addRedirectUri(parameters: Map<string, string>, redirectUri: string): void; | ||
| /** | ||
| * add post logout redirectUri | ||
| * @param redirectUri | ||
| */ | ||
| export declare function addPostLogoutRedirectUri(parameters: Map<string, string>, redirectUri: string): void; | ||
| /** | ||
| * add id_token_hint to logout request | ||
| * @param idTokenHint | ||
| */ | ||
| export declare function addIdTokenHint(parameters: Map<string, string>, idTokenHint: string): void; | ||
| /** | ||
| * add domain_hint | ||
| * @param domainHint | ||
| */ | ||
| export declare function addDomainHint(parameters: Map<string, string>, domainHint: string): void; | ||
| /** | ||
| * add login_hint | ||
| * @param loginHint | ||
| */ | ||
| export declare function addLoginHint(parameters: Map<string, string>, loginHint: string): void; | ||
| /** | ||
| * Adds the CCS (Cache Credential Service) query parameter for login_hint | ||
| * @param loginHint | ||
| */ | ||
| export declare function addCcsUpn(parameters: Map<string, string>, loginHint: string): void; | ||
| /** | ||
| * Adds the CCS (Cache Credential Service) query parameter for account object | ||
| * @param loginHint | ||
| */ | ||
| export declare function addCcsOid(parameters: Map<string, string>, clientInfo: ClientInfo): void; | ||
| /** | ||
| * add sid | ||
| * @param sid | ||
| */ | ||
| export declare function addSid(parameters: Map<string, string>, sid: string): void; | ||
| /** | ||
| * Adds claims to request parameters, conditionally excluding clientCapabilities | ||
| * when skipBrokerClaims is true and a brokered flow is in effect. | ||
| * @param parameters - The request parameters map | ||
| * @param claims - The claims string from the request | ||
| * @param clientCapabilities - The client capabilities from configuration | ||
| * @param skipBrokerClaims - When true and BROKER_CLIENT_ID is present, excludes clientCapabilities from claims | ||
| */ | ||
| export declare function addClaims(parameters: Map<string, string>, claims?: string, clientCapabilities?: Array<string>, skipBrokerClaims?: boolean): void; | ||
| /** | ||
| * add correlationId | ||
| * @param correlationId | ||
| */ | ||
| export declare function addCorrelationId(parameters: Map<string, string>, correlationId: string): void; | ||
| /** | ||
| * add library info query params | ||
| * @param libraryInfo | ||
| */ | ||
| export declare function addLibraryInfo(parameters: Map<string, string>, libraryInfo: LibraryInfo): void; | ||
| /** | ||
| * Add client telemetry parameters | ||
| * @param appTelemetry | ||
| */ | ||
| export declare function addApplicationTelemetry(parameters: Map<string, string>, appTelemetry: ApplicationTelemetry): void; | ||
| /** | ||
| * add prompt | ||
| * @param prompt | ||
| */ | ||
| export declare function addPrompt(parameters: Map<string, string>, prompt: string): void; | ||
| /** | ||
| * add state | ||
| * @param state | ||
| */ | ||
| export declare function addState(parameters: Map<string, string>, state: string): void; | ||
| /** | ||
| * add nonce | ||
| * @param nonce | ||
| */ | ||
| export declare function addNonce(parameters: Map<string, string>, nonce: string): void; | ||
| /** | ||
| * add code_challenge and code_challenge_method | ||
| * - throw if either of them are not passed | ||
| * @param codeChallenge | ||
| * @param codeChallengeMethod | ||
| */ | ||
| export declare function addCodeChallengeParams(parameters: Map<string, string>, codeChallenge?: string, codeChallengeMethod?: string): void; | ||
| /** | ||
| * add the `authorization_code` passed by the user to exchange for a token | ||
| * @param code | ||
| */ | ||
| export declare function addAuthorizationCode(parameters: Map<string, string>, code: string): void; | ||
| /** | ||
| * add the `authorization_code` passed by the user to exchange for a token | ||
| * @param code | ||
| */ | ||
| export declare function addDeviceCode(parameters: Map<string, string>, code: string): void; | ||
| /** | ||
| * add the `refreshToken` passed by the user | ||
| * @param refreshToken | ||
| */ | ||
| export declare function addRefreshToken(parameters: Map<string, string>, refreshToken: string): void; | ||
| /** | ||
| * add the `code_verifier` passed by the user to exchange for a token | ||
| * @param codeVerifier | ||
| */ | ||
| export declare function addCodeVerifier(parameters: Map<string, string>, codeVerifier: string): void; | ||
| /** | ||
| * add client_secret | ||
| * @param clientSecret | ||
| */ | ||
| export declare function addClientSecret(parameters: Map<string, string>, clientSecret: string): void; | ||
| /** | ||
| * add clientAssertion for confidential client flows | ||
| * @param clientAssertion | ||
| */ | ||
| export declare function addClientAssertion(parameters: Map<string, string>, clientAssertion: string): void; | ||
| /** | ||
| * add clientAssertionType for confidential client flows | ||
| * @param clientAssertionType | ||
| */ | ||
| export declare function addClientAssertionType(parameters: Map<string, string>, clientAssertionType: string): void; | ||
| /** | ||
| * add OBO assertion for confidential client flows | ||
| * @param clientAssertion | ||
| */ | ||
| export declare function addOboAssertion(parameters: Map<string, string>, oboAssertion: string): void; | ||
| /** | ||
| * add grant type | ||
| * @param grantType | ||
| */ | ||
| export declare function addRequestTokenUse(parameters: Map<string, string>, tokenUse: string): void; | ||
| /** | ||
| * add grant type | ||
| * @param grantType | ||
| */ | ||
| export declare function addGrantType(parameters: Map<string, string>, grantType: string): void; | ||
| /** | ||
| * add client info | ||
| * | ||
| */ | ||
| export declare function addClientInfo(parameters: Map<string, string>): void; | ||
| /** | ||
| * add clidata=1 to request to indicate client data support | ||
| */ | ||
| export declare function addCliData(parameters: Map<string, string>): void; | ||
| export declare function addInstanceAware(parameters: Map<string, string>): void; | ||
| /** | ||
| * Add extraParameters | ||
| * @param extraParams - String dictionary containing extra parameters to be added. | ||
| */ | ||
| export declare function addExtraParameters(parameters: Map<string, string>, extraParams: StringDict): void; | ||
| export declare function addClientCapabilitiesToClaims(claims?: string, clientCapabilities?: Array<string>): string; | ||
| /** | ||
| * adds `username` for Password Grant flow | ||
| * @param username | ||
| */ | ||
| export declare function addUsername(parameters: Map<string, string>, username: string): void; | ||
| /** | ||
| * adds `password` for Password Grant flow | ||
| * @param password | ||
| */ | ||
| export declare function addPassword(parameters: Map<string, string>, password: string): void; | ||
| /** | ||
| * add pop_jwk to query params | ||
| * @param cnfString | ||
| */ | ||
| export declare function addPopToken(parameters: Map<string, string>, cnfString: string): void; | ||
| /** | ||
| * add SSH JWK and key ID to query params | ||
| */ | ||
| export declare function addSshJwk(parameters: Map<string, string>, sshJwkString: string): void; | ||
| /** | ||
| * add server telemetry fields | ||
| * @param serverTelemetryManager | ||
| */ | ||
| export declare function addServerTelemetry(parameters: Map<string, string>, serverTelemetryManager: ServerTelemetryManager): void; | ||
| /** | ||
| * Adds parameter that indicates to the server that throttling is supported | ||
| */ | ||
| export declare function addThrottling(parameters: Map<string, string>): void; | ||
| /** | ||
| * Adds logout_hint parameter for "silent" logout which prevent server account picker | ||
| */ | ||
| export declare function addLogoutHint(parameters: Map<string, string>, logoutHint: string): void; | ||
| export declare function addBrokerParameters(parameters: Map<string, string>, brokerClientId: string, brokerRedirectUri: string): void; | ||
| /** | ||
| * Add EAR (Encrypted Authorize Response) request parameters | ||
| * @param parameters | ||
| * @param jwk | ||
| */ | ||
| export declare function addEARParameters(parameters: Map<string, string>, jwk: string): void; | ||
| export declare function addResource(parameters: Map<string, string>, resource?: string): void; | ||
| //# sourceMappingURL=RequestParameterBuilder.d.ts.map |
| {"version":3,"file":"RequestParameterBuilder.d.ts","sourceRoot":"","sources":["../../../src/request/RequestParameterBuilder.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAC;AAOnD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EACH,oBAAoB,EACpB,WAAW,EACd,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAA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,GAAG,EAAE,MAAM,GACZ,IAAI,CAMN;AAED,wBAAgB,WAAW,CACvB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,QAAQ,CAAC,EAAE,MAAM,GAClB,IAAI,CAIN"} |
| /** | ||
| * The ScopeSet class creates a set of scopes. Scopes are case-insensitive, unique values, so the Set object in JS makes | ||
| * the most sense to implement for this class. All scopes are trimmed and converted to lower case strings in intersection and union functions | ||
| * to ensure uniqueness of strings. | ||
| */ | ||
| export declare class ScopeSet { | ||
| private scopes; | ||
| constructor(inputScopes: Array<string>); | ||
| /** | ||
| * Factory method to create ScopeSet from space-delimited string | ||
| * @param inputScopeString | ||
| * @param appClientId | ||
| * @param scopesRequired | ||
| */ | ||
| static fromString(inputScopeString: string): ScopeSet; | ||
| /** | ||
| * Creates the set of scopes to search for in cache lookups | ||
| * @param inputScopeString | ||
| * @returns | ||
| */ | ||
| static createSearchScopes(inputScopeString: Array<string>): ScopeSet; | ||
| /** | ||
| * Check if a given scope is present in this set of scopes. | ||
| * @param scope | ||
| */ | ||
| containsScope(scope: string): boolean; | ||
| /** | ||
| * Check if a set of scopes is present in this set of scopes. | ||
| * @param scopeSet | ||
| */ | ||
| containsScopeSet(scopeSet: ScopeSet): boolean; | ||
| /** | ||
| * Check if set of scopes contains only the defaults | ||
| */ | ||
| containsOnlyOIDCScopes(): boolean; | ||
| /** | ||
| * Appends single scope if passed | ||
| * @param newScope | ||
| */ | ||
| appendScope(newScope: string): void; | ||
| /** | ||
| * Appends multiple scopes if passed | ||
| * @param newScopes | ||
| */ | ||
| appendScopes(newScopes: Array<string>): void; | ||
| /** | ||
| * Removes element from set of scopes. | ||
| * @param scope | ||
| */ | ||
| removeScope(scope: string): void; | ||
| /** | ||
| * Removes default scopes from set of scopes | ||
| * Primarily used to prevent cache misses if the default scopes are not returned from the server | ||
| */ | ||
| removeOIDCScopes(): void; | ||
| /** | ||
| * Combines an array of scopes with the current set of scopes. | ||
| * @param otherScopes | ||
| */ | ||
| unionScopeSets(otherScopes: ScopeSet): Set<string>; | ||
| /** | ||
| * Check if scopes intersect between this set and another. | ||
| * @param otherScopes | ||
| */ | ||
| intersectingScopeSets(otherScopes: ScopeSet): boolean; | ||
| /** | ||
| * Returns size of set of scopes. | ||
| */ | ||
| getScopeCount(): number; | ||
| /** | ||
| * Returns the scopes as an array of string values | ||
| */ | ||
| asArray(): Array<string>; | ||
| /** | ||
| * Prints scopes into a space-delimited string | ||
| */ | ||
| printScopes(): string; | ||
| /** | ||
| * Prints scopes into a space-delimited lower-case string (used for caching) | ||
| */ | ||
| printScopesLowerCase(): string; | ||
| } | ||
| //# sourceMappingURL=ScopeSet.d.ts.map |
| {"version":3,"file":"ScopeSet.d.ts","sourceRoot":"","sources":["../../../src/request/ScopeSet.ts"],"names":[],"mappings":"AAoBA;;;;GAIG;AACH,qBAAa,QAAQ;IAEjB,OAAO,CAAC,MAAM,CAAc;gBAEhB,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC;IAoBtC;;;;;OAKG;IACH,MAAM,CAAC,UAAU,CAAC,gBAAgB,EAAE,MAAM,GAAG,QAAQ;IAMrD;;;;OAIG;IACH,MAAM,CAAC,kBAAkB,CAAC,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,QAAQ;IAiBpE;;;OAGG;IACH,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IASrC;;;OAGG;IACH,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO;IAW7C;;OAEG;IACH,sBAAsB,IAAI,OAAO;IAWjC;;;OAGG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAMnC;;;OAGG;IACH,YAAY,CAAC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI;IAU5C;;;OAGG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAShC;;;OAGG;IACH,gBAAgB,IAAI,IAAI;IAMxB;;;OAGG;IACH,cAAc,CAAC,WAAW,EAAE,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC;IAclD;;;OAGG;IACH,qBAAqB,CAAC,WAAW,EAAE,QAAQ,GAAG,OAAO;IAkBrD;;OAEG;IACH,aAAa,IAAI,MAAM;IAIvB;;OAEG;IACH,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC;IAMxB;;OAEG;IACH,WAAW,IAAI,MAAM;IAQrB;;OAEG;IACH,oBAAoB,IAAI,MAAM;CAGjC"} |
| /** | ||
| * Controls whether tokens should be stored in the cache or not. If set to false, tokens may still be acquired and returned but will not be cached for later retrieval. | ||
| */ | ||
| export type StoreInCache = { | ||
| accessToken?: boolean; | ||
| idToken?: boolean; | ||
| refreshToken?: boolean; | ||
| }; | ||
| //# sourceMappingURL=StoreInCache.d.ts.map |
| {"version":3,"file":"StoreInCache.d.ts","sourceRoot":"","sources":["../../../src/request/StoreInCache.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IAEvB,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC"} |
| import { AccountInfo } from "../account/AccountInfo.js"; | ||
| /** | ||
| * Result returned from the authority's token endpoint. | ||
| * - uniqueId - `oid` or `sub` claim from ID token | ||
| * - tenantId - `tid` claim from ID token | ||
| * - scopes - Scopes that are validated for the respective token | ||
| * - account - An account object representation of the currently signed-in user | ||
| * - idToken - Id token received as part of the response | ||
| * - idTokenClaims - MSAL-relevant ID token claims | ||
| * - accessToken - Access token or SSH certificate received as part of the response | ||
| * - fromCache - Boolean denoting whether token came from cache | ||
| * - expiresOn - Javascript Date object representing relative expiration of access token | ||
| * - extExpiresOn - Javascript Date object representing extended relative expiration of access token in case of server outage | ||
| * - refreshOn - Javascript Date object representing relative time until an access token must be refreshed | ||
| * - state - Value passed in by user in request | ||
| * - familyId - Family ID identifier, usually only used for refresh tokens | ||
| * - requestId - Request ID returned as part of the response | ||
| */ | ||
| export type AuthenticationResult = { | ||
| authority: string; | ||
| uniqueId: string; | ||
| tenantId: string; | ||
| scopes: Array<string>; | ||
| account: AccountInfo | null; | ||
| idToken: string; | ||
| idTokenClaims: object; | ||
| accessToken: string; | ||
| fromCache: boolean; | ||
| expiresOn: Date | null; | ||
| extExpiresOn?: Date; | ||
| refreshOn?: Date; | ||
| tokenType: string; | ||
| correlationId: string; | ||
| requestId?: string; | ||
| state?: string; | ||
| familyId?: string; | ||
| cloudGraphHostName?: string; | ||
| msGraphHost?: string; | ||
| code?: string; | ||
| fromPlatformBroker?: boolean; | ||
| resource?: string; | ||
| }; | ||
| //# sourceMappingURL=AuthenticationResult.d.ts.map |
| {"version":3,"file":"AuthenticationResult.d.ts","sourceRoot":"","sources":["../../../src/response/AuthenticationResult.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"} |
| /** | ||
| * Response returned after processing the code response query string or fragment. | ||
| */ | ||
| export type AuthorizationCodePayload = { | ||
| code: string; | ||
| cloud_instance_name?: string; | ||
| cloud_instance_host_name?: string; | ||
| cloud_graph_host_name?: string; | ||
| msgraph_host?: string; | ||
| state?: string; | ||
| nonce?: string; | ||
| client_info?: string; | ||
| }; | ||
| //# sourceMappingURL=AuthorizationCodePayload.d.ts.map |
| {"version":3,"file":"AuthorizationCodePayload.d.ts","sourceRoot":"","sources":["../../../src/response/AuthorizationCodePayload.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"} |
| /** | ||
| * Response properties that may be returned by the /authorize endpoint | ||
| */ | ||
| export type AuthorizeResponse = { | ||
| /** | ||
| * Authorization Code to be exchanged for tokens | ||
| */ | ||
| code?: string; | ||
| /** | ||
| * Encrypted Authorize Response (EAR) JWE | ||
| */ | ||
| ear_jwe?: string; | ||
| /** | ||
| * Client info object containing UserId and TenantId | ||
| */ | ||
| client_info?: string; | ||
| /** | ||
| * State string, should match what was sent on request | ||
| */ | ||
| state?: string; | ||
| /** | ||
| * Cloud instance returned when application is instance aware | ||
| */ | ||
| cloud_instance_name?: string; | ||
| /** | ||
| * Cloud instance hostname returned when application is instance aware | ||
| */ | ||
| cloud_instance_host_name?: string; | ||
| /** | ||
| * AAD Graph hostname returned when application is instance aware | ||
| * https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-graph-api | ||
| */ | ||
| cloud_graph_host_name?: string; | ||
| /** | ||
| * Microsoft Graph hostname returned when application is instance aware | ||
| * https://docs.microsoft.com/en-us/graph/overview | ||
| */ | ||
| msgraph_host?: string; | ||
| /** | ||
| * Server error code | ||
| */ | ||
| error?: string; | ||
| /** | ||
| * Server error URI | ||
| */ | ||
| error_uri?: string; | ||
| /** | ||
| * Server error description | ||
| */ | ||
| error_description?: string; | ||
| /** | ||
| * Server Sub-Error | ||
| */ | ||
| suberror?: string; | ||
| /** | ||
| * Timestamp of request | ||
| */ | ||
| timestamp?: string; | ||
| /** | ||
| * Trace Id used to look up request in logs | ||
| */ | ||
| trace_id?: string; | ||
| /** | ||
| * Correlation ID use to look up request in logs | ||
| */ | ||
| correlation_id?: string; | ||
| /** | ||
| * Claims | ||
| */ | ||
| claims?: string; | ||
| /** | ||
| * AccountId for the user, returned when platform broker is available to use | ||
| */ | ||
| accountId?: string; | ||
| /** | ||
| * Client data returned by the server when clidata=1 is sent on the request. | ||
| * On the wire, this is sent as a URL-encoded string in the format: | ||
| * account_type|error|sub_error|cloud_instance|caller_data_boundary | ||
| * In this parsed AuthorizeResponse object, the value is already URL-decoded. | ||
| */ | ||
| clientdata?: string; | ||
| }; | ||
| //# sourceMappingURL=AuthorizeResponse.d.ts.map |
| {"version":3,"file":"AuthorizeResponse.d.ts","sourceRoot":"","sources":["../../../src/response/AuthorizeResponse.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"} |
| /** | ||
| * DeviceCode returned by the security token service device code endpoint containing information necessary for device code flow. | ||
| * - userCode: code which user needs to provide when authenticating at the verification URI | ||
| * - deviceCode: code which should be included in the request for the access token | ||
| * - verificationUri: URI where user can authenticate | ||
| * - expiresIn: expiration time of the device code in seconds | ||
| * - interval: interval at which the STS should be polled at | ||
| * - message: message which should be displayed to the user | ||
| */ | ||
| export type DeviceCodeResponse = { | ||
| userCode: string; | ||
| deviceCode: string; | ||
| verificationUri: string; | ||
| expiresIn: number; | ||
| interval: number; | ||
| message: string; | ||
| }; | ||
| export type ServerDeviceCodeResponse = { | ||
| user_code: string; | ||
| device_code: string; | ||
| verification_uri: string; | ||
| expires_in: number; | ||
| interval: number; | ||
| message: string; | ||
| }; | ||
| //# sourceMappingURL=DeviceCodeResponse.d.ts.map |
| {"version":3,"file":"DeviceCodeResponse.d.ts","sourceRoot":"","sources":["../../../src/response/DeviceCodeResponse.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC"} |
| import { ServerAuthorizationTokenResponse } from "./ServerAuthorizationTokenResponse.js"; | ||
| /** | ||
| * Response object used for loading external tokens to cache. | ||
| * - token_type: Indicates the token type value. The only type that Azure AD supports is Bearer. | ||
| * - scope: The scopes that the access_token is valid for. | ||
| * - expires_in: How long the access token is valid (in seconds). | ||
| * - id_token: A JSON Web Token (JWT). The app can decode the segments of this token to request information about the user who signed in. | ||
| * - refresh_token: An OAuth 2.0 refresh token. The app can use this token acquire additional access tokens after the current access token expires. | ||
| * - access_token: The requested access token. The app can use this token to authenticate to the secured resource, such as a web API. | ||
| * - client_info: Client info object | ||
| */ | ||
| export type ExternalTokenResponse = Pick<ServerAuthorizationTokenResponse, "token_type" | "scope" | "expires_in" | "ext_expires_in" | "id_token" | "refresh_token" | "refresh_token_expires_in" | "foci"> & { | ||
| access_token?: string; | ||
| client_info?: string; | ||
| }; | ||
| //# sourceMappingURL=ExternalTokenResponse.d.ts.map |
| {"version":3,"file":"ExternalTokenResponse.d.ts","sourceRoot":"","sources":["../../../src/response/ExternalTokenResponse.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAEzF;;;;;;;;;GASG;AACH,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACpC,gCAAgC,EAC9B,YAAY,GACZ,OAAO,GACP,YAAY,GACZ,gBAAgB,GAChB,UAAU,GACV,eAAe,GACf,0BAA0B,GAC1B,MAAM,CACX,GAAG;IACA,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"} |
| export type IMDSBadResponse = { | ||
| error: string; | ||
| "newest-versions": Array<string>; | ||
| }; | ||
| //# sourceMappingURL=IMDSBadResponse.d.ts.map |
| {"version":3,"file":"IMDSBadResponse.d.ts","sourceRoot":"","sources":["../../../src/response/IMDSBadResponse.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,eAAe,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACpC,CAAC"} |
| import { TokenClaims } from "../account/TokenClaims.js"; | ||
| import { Authority } from "../authority/Authority.js"; | ||
| import { CacheManager } from "../cache/CacheManager.js"; | ||
| import { AccountEntity } from "../cache/entities/AccountEntity.js"; | ||
| import { CacheRecord } from "../cache/entities/CacheRecord.js"; | ||
| import { ICachePlugin } from "../cache/interface/ICachePlugin.js"; | ||
| import { ISerializableTokenCache } from "../cache/interface/ISerializableTokenCache.js"; | ||
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { Logger } from "../logger/Logger.js"; | ||
| import { BaseAuthRequest } from "../request/BaseAuthRequest.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| import { RequestStateObject } from "../utils/StateTypes.js"; | ||
| import { AuthenticationResult } from "./AuthenticationResult.js"; | ||
| import { AuthorizationCodePayload } from "./AuthorizationCodePayload.js"; | ||
| import { ServerAuthorizationTokenResponse } from "./ServerAuthorizationTokenResponse.js"; | ||
| /** | ||
| * Class that handles response parsing. | ||
| * @internal | ||
| */ | ||
| export declare class ResponseHandler { | ||
| private clientId; | ||
| private cacheStorage; | ||
| private cryptoObj; | ||
| private logger; | ||
| private homeAccountIdentifier; | ||
| private performanceClient; | ||
| private serializableCache; | ||
| private persistencePlugin; | ||
| constructor(clientId: string, cacheStorage: CacheManager, cryptoObj: ICrypto, logger: Logger, performanceClient: IPerformanceClient, serializableCache: ISerializableTokenCache | null, persistencePlugin: ICachePlugin | null); | ||
| /** | ||
| * Function which validates server authorization token response. | ||
| * @param serverResponse | ||
| * @param correlationId | ||
| * @param refreshAccessToken | ||
| */ | ||
| validateTokenResponse(serverResponse: ServerAuthorizationTokenResponse, correlationId: string, refreshAccessToken?: boolean): void; | ||
| /** | ||
| * Returns a constructed token response based on given string. Also manages the cache updates and cleanups. | ||
| * @param serverTokenResponse | ||
| * @param authority | ||
| */ | ||
| handleServerTokenResponse(serverTokenResponse: ServerAuthorizationTokenResponse, authority: Authority, reqTimestamp: number, request: BaseAuthRequest, apiId: number, authCodePayload?: AuthorizationCodePayload, userAssertionHash?: string, handlingRefreshTokenResponse?: boolean, forceCacheRefreshTokenResponse?: boolean, serverRequestId?: string): Promise<AuthenticationResult>; | ||
| /** | ||
| * Generates CacheRecord | ||
| * @param serverTokenResponse | ||
| * @param idTokenObj | ||
| * @param authority | ||
| */ | ||
| private generateCacheRecord; | ||
| /** | ||
| * Creates an @AuthenticationResult from @CacheRecord , @IdToken , and a boolean that states whether or not the result is from cache. | ||
| * | ||
| * Optionally takes a state string that is set as-is in the response. | ||
| * | ||
| * @param cacheRecord | ||
| * @param idTokenObj | ||
| * @param fromTokenCache | ||
| * @param stateString | ||
| */ | ||
| static generateAuthenticationResult(cryptoObj: ICrypto, authority: Authority, cacheRecord: CacheRecord, fromTokenCache: boolean, request: BaseAuthRequest, performanceClient: IPerformanceClient, idTokenClaims?: TokenClaims, requestState?: RequestStateObject, serverTokenResponse?: ServerAuthorizationTokenResponse, requestId?: string): Promise<AuthenticationResult>; | ||
| } | ||
| export declare function buildAccountToCache(cacheStorage: CacheManager, authority: Authority, homeAccountId: string, base64Decode: (input: string) => string, correlationId: string, idTokenClaims?: TokenClaims, clientInfo?: string, environment?: string, claimsTenantId?: string | null, authCodePayload?: AuthorizationCodePayload, nativeAccountId?: string, logger?: Logger, performanceClient?: IPerformanceClient): AccountEntity; | ||
| //# sourceMappingURL=ResponseHandler.d.ts.map |
| {"version":3,"file":"ResponseHandler.d.ts","sourceRoot":"","sources":["../../../src/response/ResponseHandler.ts"],"names":[],"mappings":"AAeA,OAAO,EACH,WAAW,EAEd,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAG/D,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AAIxF,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAW/C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAGpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAEzF;;;GAGG;AACH,qBAAa,eAAe;IAC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AkB,EACjC,mBAAmB,CAAC,EAAE,gCAAgC,EACtD,SAAS,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,oBAAoB,CAAC;CAqGnC;AAED,wBAAgB,mBAAmB,CAC/B,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,EACvC,aAAa,EAAE,MAAM,EACrB,aAAa,CAAC,EAAE,WAAW,EAC3B,UAAU,CAAC,EAAE,MAAM,EACnB,WAAW,CAAC,EAAE,MAAM,EACpB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,EAC9B,eAAe,CAAC,EAAE,wBAAwB,EAC1C,eAAe,CAAC,EAAE,MAAM,EACxB,MAAM,CAAC,EAAE,MAAM,EACf,iBAAiB,CAAC,EAAE,kBAAkB,GACvC,aAAa,CAmEf"} |
| import { AuthenticationScheme } from "../utils/Constants.js"; | ||
| /** | ||
| * Deserialized response object from server authorization code request. | ||
| * - token_type: Indicates the token type value. Can be either Bearer or pop. | ||
| * - scope: The scopes that the access_token is valid for. | ||
| * - expires_in: How long the access token is valid (in seconds). | ||
| * - refresh_in: Duration afer which a token should be renewed, regardless of expiration. | ||
| * - ext_expires_in: How long the access token is valid (in seconds) if the server isn't responding. | ||
| * - access_token: The requested access token. The app can use this token to authenticate to the secured resource, such as a web API. | ||
| * - refresh_token: An OAuth 2.0 refresh token. The app can use this token acquire additional access tokens after the current access token expires. | ||
| * - id_token: A JSON Web Token (JWT). The app can decode the segments of this token to request information about the user who signed in. | ||
| * - key_id: A string that uniquely identifies a public key that the request is bound to. | ||
| * | ||
| * In case of error: | ||
| * - error: An error code string that can be used to classify types of errors that occur, and can be used to react to errors. | ||
| * - error_description: A specific error message that can help a developer identify the root cause of an authentication error. | ||
| * - error_codes: A list of STS-specific error codes that can help in diagnostics. | ||
| * - timestamp: The time at which the error occurred. | ||
| * - trace_id: A unique identifier for the request that can help in diagnostics. | ||
| * - correlation_id: A unique identifier for the request that can help in diagnostics across components. | ||
| * - status: the network request's response status | ||
| */ | ||
| export type ServerAuthorizationTokenResponse = { | ||
| status?: number; | ||
| token_type?: AuthenticationScheme; | ||
| scope?: string; | ||
| expires_in?: number; | ||
| refresh_in?: number; | ||
| ext_expires_in?: number; | ||
| access_token?: string; | ||
| refresh_token?: string; | ||
| refresh_token_expires_in?: number; | ||
| id_token?: string; | ||
| client_info?: string; | ||
| foci?: string; | ||
| spa_code?: string; | ||
| spa_accountid?: string; | ||
| key_id?: string; | ||
| error?: string; | ||
| error_description?: string; | ||
| error_codes?: Array<string>; | ||
| suberror?: string; | ||
| timestamp?: string; | ||
| trace_id?: string; | ||
| correlation_id?: string; | ||
| claims?: string; | ||
| }; | ||
| //# sourceMappingURL=ServerAuthorizationTokenResponse.d.ts.map |
| {"version":3,"file":"ServerAuthorizationTokenResponse.d.ts","sourceRoot":"","sources":["../../../src/response/ServerAuthorizationTokenResponse.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"} |
| import { PerformanceEvent } from "./PerformanceEvent.js"; | ||
| import { AccountInfo } from "../../account/AccountInfo.js"; | ||
| export type PerformanceCallbackFunction = (events: PerformanceEvent[]) => void; | ||
| export type InProgressPerformanceEvent = { | ||
| end: (event?: Partial<PerformanceEvent>, error?: unknown, account?: AccountInfo) => PerformanceEvent | null; | ||
| discard: () => void; | ||
| add: (fields: { | ||
| [key: string]: {} | undefined; | ||
| }) => void; | ||
| increment: (fields: { | ||
| [key: string]: number | undefined; | ||
| }) => void; | ||
| event: PerformanceEvent; | ||
| }; | ||
| export interface IPerformanceClient { | ||
| startMeasurement(measureName: string, correlationId?: string): InProgressPerformanceEvent; | ||
| endMeasurement(event: PerformanceEvent): PerformanceEvent | null; | ||
| discardMeasurements(correlationId: string): void; | ||
| addFields(fields: { | ||
| [key: string]: {} | undefined; | ||
| }, correlationId: string): void; | ||
| incrementFields(fields: { | ||
| [key: string]: number | undefined; | ||
| }, correlationId: string): void; | ||
| removePerformanceCallback(callbackId: string): boolean; | ||
| addPerformanceCallback(callback: PerformanceCallbackFunction): string; | ||
| emitEvents(events: PerformanceEvent[], correlationId: string): void; | ||
| generateId(): string; | ||
| } | ||
| //# sourceMappingURL=IPerformanceClient.d.ts.map |
| {"version":3,"file":"IPerformanceClient.d.ts","sourceRoot":"","sources":["../../../../src/telemetry/performance/IPerformanceClient.ts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,CAAC;IACR,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;IACvD,sBAAsB,CAAC,QAAQ,EAAE,2BAA2B,GAAG,MAAM,CAAC;IACtE,UAAU,CAAC,MAAM,EAAE,gBAAgB,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IACpE,UAAU,IAAI,MAAM,CAAC;CACxB"} |
| export interface IPerformanceMeasurement { | ||
| startMeasurement(): void; | ||
| endMeasurement(): void; | ||
| flushMeasurement(): number | null; | ||
| } | ||
| //# sourceMappingURL=IPerformanceMeasurement.d.ts.map |
| {"version":3,"file":"IPerformanceMeasurement.d.ts","sourceRoot":"","sources":["../../../../src/telemetry/performance/IPerformanceMeasurement.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,uBAAuB;IACpC,gBAAgB,IAAI,IAAI,CAAC;IACzB,cAAc,IAAI,IAAI,CAAC;IACvB,gBAAgB,IAAI,MAAM,GAAG,IAAI,CAAC;CACrC"} |
| import { ApplicationTelemetry } from "../../config/ClientConfiguration.js"; | ||
| import { Logger } from "../../logger/Logger.js"; | ||
| import { InProgressPerformanceEvent, IPerformanceClient, PerformanceCallbackFunction } from "./IPerformanceClient.js"; | ||
| import { PerformanceEvent, PerformanceEventContext, PerformanceEventStackedContext } from "./PerformanceEvent.js"; | ||
| import { AccountInfo } from "../../account/AccountInfo.js"; | ||
| /** | ||
| * Starts context by adding payload to the stack | ||
| * @param event {PerformanceEvent} | ||
| * @param stack {?PerformanceEventStackedContext[]} stack | ||
| */ | ||
| export declare function startContext(event: PerformanceEvent, stack?: PerformanceEventStackedContext[]): void; | ||
| /** | ||
| * Ends context by removing payload from the stack and returning parent or self, if stack is empty, payload | ||
| * | ||
| * @param event {PerformanceEvent} | ||
| * @param stack {?PerformanceEventStackedContext[]} stack | ||
| * @param error {?unknown} error | ||
| */ | ||
| export declare function endContext(event: PerformanceEvent, stack?: PerformanceEventStackedContext[], error?: unknown): PerformanceEventContext | undefined; | ||
| /** | ||
| * Adds error name and stack trace to the telemetry event | ||
| * @param error {Error} | ||
| * @param logger {Logger} | ||
| * @param event {PerformanceEvent} | ||
| * @param stackMaxSize {number} max error stack size to capture | ||
| */ | ||
| export declare function addError(error: unknown, logger: Logger, event: PerformanceEvent, stackMaxSize?: number): void; | ||
| /** | ||
| * Compacts error stack into array by fetching N first entries | ||
| * @param stack {string} error stack | ||
| * @param stackMaxSize {number} max error stack size to capture | ||
| * @returns {string[]} | ||
| */ | ||
| export declare function compactStack(stack: string, stackMaxSize: number): string[]; | ||
| /** | ||
| * Compacts error stack line by shortening file path | ||
| * Example: https://localhost/msal-common/src/authority/Authority.js:100:1 -> Authority.js:100:1 | ||
| * @param line {string} stack line | ||
| * @returns {string} | ||
| */ | ||
| export declare function compactStackLine(line: string): string; | ||
| export declare function getAccountType(account?: AccountInfo): "AAD" | "MSA" | "B2C" | undefined; | ||
| export declare abstract class PerformanceClient implements IPerformanceClient { | ||
| protected authority: string; | ||
| protected libraryName: string; | ||
| protected libraryVersion: string; | ||
| protected applicationTelemetry: ApplicationTelemetry; | ||
| protected clientId: string; | ||
| protected logger: Logger; | ||
| protected callbacks: Map<string, PerformanceCallbackFunction>; | ||
| /** | ||
| * Multiple events with the same correlation id. | ||
| * @protected | ||
| * @type {Map<string, PerformanceEvent>} | ||
| */ | ||
| protected eventsByCorrelationId: Map<string, PerformanceEvent>; | ||
| protected intFields: Set<string>; | ||
| /** | ||
| * Map of stacked events by correlation id. | ||
| * | ||
| * @protected | ||
| */ | ||
| protected eventStack: Map<string, PerformanceEventStackedContext[]>; | ||
| /** | ||
| * Creates an instance of PerformanceClient, | ||
| * an abstract class containing core performance telemetry logic. | ||
| * | ||
| * @constructor | ||
| * @param {string} clientId Client ID of the application | ||
| * @param {string} authority Authority used by the application | ||
| * @param {Logger} logger Logger used by the application | ||
| * @param {string} libraryName Name of the library | ||
| * @param {string} libraryVersion Version of the library | ||
| * @param {ApplicationTelemetry} applicationTelemetry application name and version | ||
| * @param {Set<String>} intFields integer fields to be truncated | ||
| */ | ||
| constructor(clientId: string, authority: string, logger: Logger, libraryName: string, libraryVersion: string, applicationTelemetry: ApplicationTelemetry, intFields?: Set<string>); | ||
| /** | ||
| * Generates and returns a unique id, typically a guid. | ||
| * | ||
| * @abstract | ||
| * @returns {string} | ||
| */ | ||
| abstract generateId(): string; | ||
| /** | ||
| * Starts measuring performance for a given operation. Returns a function that should be used to end the measurement. | ||
| * | ||
| * @param {PerformanceEvents} measureName | ||
| * @param {?string} [correlationId] | ||
| * @returns {InProgressPerformanceEvent} | ||
| */ | ||
| startMeasurement(measureName: string, correlationId?: string): InProgressPerformanceEvent; | ||
| /** | ||
| * Stops measuring the performance for an operation. Should only be called directly by PerformanceClient classes, | ||
| * as consumers should instead use the function returned by startMeasurement. | ||
| * Adds a new field named as "[event name]DurationMs" for sub-measurements, completes and emits an event | ||
| * otherwise. | ||
| * | ||
| * @param {PerformanceEvent} event | ||
| * @param {unknown} error | ||
| * @param {AccountInfo?} account | ||
| * @returns {(PerformanceEvent | null)} | ||
| */ | ||
| endMeasurement(event: PerformanceEvent, error?: unknown, account?: AccountInfo): PerformanceEvent | null; | ||
| /** | ||
| * Saves extra information to be emitted when the measurements are flushed | ||
| * @param fields | ||
| * @param correlationId | ||
| */ | ||
| addFields(fields: { | ||
| [key: string]: {} | undefined; | ||
| }, correlationId: string): void; | ||
| /** | ||
| * Increment counters to be emitted when the measurements are flushed | ||
| * @param fields {string[]} | ||
| * @param correlationId {string} correlation identifier | ||
| */ | ||
| incrementFields(fields: { | ||
| [key: string]: number | undefined; | ||
| }, correlationId: string): void; | ||
| /** | ||
| * Upserts event into event cache. | ||
| * First key is the correlation id, second key is the event id. | ||
| * Allows for events to be grouped by correlation id, | ||
| * and to easily allow for properties on them to be updated. | ||
| * | ||
| * @private | ||
| * @param {PerformanceEvent} event | ||
| */ | ||
| protected cacheEventByCorrelationId(event: PerformanceEvent): void; | ||
| /** | ||
| * Removes measurements and aux data for a given correlation id. | ||
| * | ||
| * @param {string} correlationId | ||
| */ | ||
| discardMeasurements(correlationId: string): void; | ||
| /** | ||
| * Registers a callback function to receive performance events. | ||
| * | ||
| * @param {PerformanceCallbackFunction} callback | ||
| * @returns {string} | ||
| */ | ||
| addPerformanceCallback(callback: PerformanceCallbackFunction): string; | ||
| /** | ||
| * Removes a callback registered with addPerformanceCallback. | ||
| * | ||
| * @param {string} callbackId | ||
| * @returns {boolean} | ||
| */ | ||
| removePerformanceCallback(callbackId: string): boolean; | ||
| /** | ||
| * Emits events to all registered callbacks. | ||
| * | ||
| * @param {PerformanceEvent[]} events | ||
| * @param {?string} [correlationId] | ||
| */ | ||
| emitEvents(events: PerformanceEvent[], correlationId: string): void; | ||
| /** | ||
| * Enforce truncation of integral fields in performance event. | ||
| * @param {PerformanceEvent} event performance event to update. | ||
| */ | ||
| private truncateIntegralFields; | ||
| /** | ||
| * Returns event duration in milliseconds | ||
| * @param startTimeMs {number} | ||
| * @returns {number} | ||
| */ | ||
| private getDurationMs; | ||
| } | ||
| //# sourceMappingURL=PerformanceClient.d.ts.map |
| {"version":3,"file":"PerformanceClient.d.ts","sourceRoot":"","sources":["../../../../src/telemetry/performance/PerformanceClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAA4B,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EACH,0BAA0B,EAC1B,kBAAkB,EAClB,2BAA2B,EAC9B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGH,gBAAgB,EAChB,uBAAuB,EACvB,8BAA8B,EAEjC,MAAM,uBAAuB,CAAC;AAK/B,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D;;;;GAIG;AACH,wBAAgB,YAAY,CACxB,KAAK,EAAE,gBAAgB,EACvB,KAAK,CAAC,EAAE,8BAA8B,EAAE,GACzC,IAAI,CAQN;AAED;;;;;;GAMG;AACH,wBAAg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B;IAU9B;;;;OAIG;IACH,OAAO,CAAC,aAAa;CAKxB"} |
| import { DataBoundary } from "../../account/AccountInfo.js"; | ||
| /** | ||
| * State of the performance event. | ||
| * | ||
| * @export | ||
| * @enum {number} | ||
| */ | ||
| export declare const PerformanceEventStatus: { | ||
| readonly NotStarted: 0; | ||
| readonly InProgress: 1; | ||
| readonly Completed: 2; | ||
| }; | ||
| export type PerformanceEventStatus = (typeof PerformanceEventStatus)[keyof typeof PerformanceEventStatus]; | ||
| export type SubMeasurement = { | ||
| name: string; | ||
| startTimeMs: number; | ||
| }; | ||
| /** | ||
| * Performance measurement taken by the library, including metadata about the request and application. | ||
| * | ||
| * @export | ||
| * @typedef {PerformanceEvent} | ||
| */ | ||
| export type PerformanceEvent = { | ||
| /** | ||
| * Unique id for the event | ||
| * | ||
| * @type {string} | ||
| */ | ||
| eventId: string; | ||
| /** | ||
| * State of the perforance measure. | ||
| * | ||
| * @type {PerformanceEventStatus} | ||
| */ | ||
| status: PerformanceEventStatus; | ||
| /** | ||
| * Login authority used for the request | ||
| * | ||
| * @type {string} | ||
| */ | ||
| authority: string; | ||
| /** | ||
| * Client id for the application | ||
| * | ||
| * @type {string} | ||
| */ | ||
| clientId: string; | ||
| /** | ||
| * Correlation ID used for the request | ||
| * | ||
| * @type {string} | ||
| */ | ||
| correlationId: string; | ||
| /** | ||
| * End-to-end duration in milliseconds. | ||
| * @date 3/22/2022 - 3:40:05 PM | ||
| * | ||
| * @type {number} | ||
| */ | ||
| durationMs?: number; | ||
| /** | ||
| * Visibility of the page when the event completed. | ||
| * Read from: https://developer.mozilla.org/docs/Web/API/Page_Visibility_API | ||
| * | ||
| * @type {?(string | null)} | ||
| */ | ||
| endPageVisibility?: string | null; | ||
| /** | ||
| * Whether the result was retrieved from the cache. | ||
| * | ||
| * @type {(boolean | null)} | ||
| */ | ||
| fromCache?: boolean | null; | ||
| /** | ||
| * Event name (usually in the form of classNameFunctionName) | ||
| * | ||
| * @type {string} | ||
| */ | ||
| name: string; | ||
| /** | ||
| * Visibility of the page when the event completed. | ||
| * Read from: https://developer.mozilla.org/docs/Web/API/Page_Visibility_API | ||
| * | ||
| * @type {?(string | null)} | ||
| */ | ||
| startPageVisibility?: string | null; | ||
| /** | ||
| * Online status when the event started. | ||
| * Read from: https://developer.mozilla.org/docs/Web/API/NavigatorOnLine/onLine | ||
| */ | ||
| startOnlineStatus?: boolean | null; | ||
| /** | ||
| * Unix millisecond timestamp when the event was initiated. | ||
| * | ||
| * @type {number} | ||
| */ | ||
| startTimeMs: number; | ||
| /** | ||
| * Whether or the operation completed successfully. | ||
| * | ||
| * @type {(boolean | null)} | ||
| */ | ||
| success?: boolean | null; | ||
| /** | ||
| * Add specific error code in case of failure | ||
| * | ||
| * @type {string} | ||
| */ | ||
| errorCode?: string; | ||
| /** | ||
| * Add specific sub error code in case of failure | ||
| * | ||
| * @type {string} | ||
| */ | ||
| subErrorCode?: string; | ||
| /** | ||
| * Server error number | ||
| */ | ||
| serverErrorNo?: string; | ||
| /** | ||
| * Server sub error number | ||
| */ | ||
| serverSubErrorNo?: string; | ||
| /** | ||
| * Name of the library used for the operation. | ||
| * | ||
| * @type {string} | ||
| */ | ||
| libraryName: string; | ||
| /** | ||
| * Version of the library used for the operation. | ||
| * | ||
| * @type {string} | ||
| */ | ||
| libraryVersion: string; | ||
| /** | ||
| * Version of the library used last. Used to track upgrades and downgrades | ||
| */ | ||
| previousLibraryVersion?: string; | ||
| /** | ||
| * Whether the response is from a native component (e.g., WAM) | ||
| * | ||
| * @type {?boolean} | ||
| */ | ||
| isNativeBroker?: boolean; | ||
| /** | ||
| * Platform-specific fields, when calling STS and/or broker for token requests | ||
| */ | ||
| isPlatformAuthorizeRequest?: boolean; | ||
| isPlatformBrokerRequest?: boolean; | ||
| brokerErrorName?: string; | ||
| brokerErrorCode?: string; | ||
| /** | ||
| * Request ID returned from the response | ||
| * | ||
| * @type {?string} | ||
| */ | ||
| requestId?: string; | ||
| /** | ||
| * Cache lookup policy | ||
| * | ||
| * @type {?number} | ||
| */ | ||
| cacheLookupPolicy?: number | undefined; | ||
| /** | ||
| * Cache Outcome | ||
| * @type {?number} | ||
| */ | ||
| cacheOutcome?: number; | ||
| /** | ||
| * Sub-measurements for internal use. To be deleted before flushing. | ||
| */ | ||
| incompleteSubMeasurements?: Map<string, SubMeasurement>; | ||
| visibilityChangeCount?: number; | ||
| onlineStatusChangeCount?: number; | ||
| incompleteSubsCount?: number; | ||
| /** | ||
| * Network connection info from the Network Information API (Chromium only). | ||
| * Read from: https://developer.mozilla.org/docs/Web/API/NetworkInformation | ||
| */ | ||
| networkEffectiveType?: string; | ||
| networkRtt?: number; | ||
| /** | ||
| * CorrelationId of the in progress iframe request that was awaited | ||
| */ | ||
| awaitIframeCorrelationId?: string; | ||
| /** | ||
| * Monitor_window_timeout debugging telemetry | ||
| */ | ||
| redirectBridgeTimeoutMs?: number; | ||
| isRedirectUriCrossOrigin?: boolean; | ||
| redirectBridgeMessageVersion?: number; | ||
| lateResponseExperimentEnabled?: boolean; | ||
| /** | ||
| * Size of the id token | ||
| * | ||
| * @type {number} | ||
| */ | ||
| idTokenSize?: number; | ||
| /** | ||
| * | ||
| * Size of the access token | ||
| * | ||
| * @type {number} | ||
| */ | ||
| accessTokenSize?: number; | ||
| /** | ||
| * | ||
| * Size of the refresh token | ||
| * | ||
| * @type {number} | ||
| */ | ||
| refreshTokenSize?: number | undefined; | ||
| /** | ||
| * Application name as specified by the app. | ||
| * | ||
| * @type {?string} | ||
| */ | ||
| appName?: string; | ||
| /** | ||
| * Application version as specified by the app. | ||
| * | ||
| * @type {?string} | ||
| */ | ||
| appVersion?: string; | ||
| /** | ||
| * The following are fields that may be emitted in native broker scenarios | ||
| */ | ||
| extensionId?: string; | ||
| extensionVersion?: string; | ||
| matsBrokerVersion?: string; | ||
| matsAccountJoinOnStart?: string; | ||
| matsAccountJoinOnEnd?: string; | ||
| matsDeviceJoin?: string; | ||
| matsPromptBehavior?: string; | ||
| matsApiErrorCode?: number; | ||
| matsUiVisible?: boolean; | ||
| matsSilentCode?: number; | ||
| matsSilentBiSubCode?: number; | ||
| matsSilentMessage?: string; | ||
| matsSilentStatus?: number; | ||
| matsHttpStatus?: number; | ||
| matsHttpEventCount?: number; | ||
| /** | ||
| * Http POST metadata | ||
| */ | ||
| httpVerToken?: string; | ||
| httpStatus?: number; | ||
| contentTypeHeader?: string; | ||
| contentLengthHeader?: string; | ||
| /** | ||
| * Platform broker fields | ||
| */ | ||
| allowPlatformBroker?: boolean; | ||
| extensionInstalled?: boolean; | ||
| extensionHandshakeTimeoutMs?: number; | ||
| extensionHandshakeTimedOut?: boolean; | ||
| /** | ||
| * Nested App Auth Fields | ||
| */ | ||
| nestedAppAuthRequest?: boolean; | ||
| /** | ||
| * Multiple matched access/id/refresh tokens in the cache | ||
| */ | ||
| multiMatchedAT?: number; | ||
| multiMatchedID?: number; | ||
| multiMatchedRT?: number; | ||
| errorName?: string; | ||
| errorStack?: string[]; | ||
| context?: string; | ||
| cacheLocation?: string; | ||
| cacheRetentionDays?: number; | ||
| accountCachedBy?: string; | ||
| acntLoggedOut?: boolean; | ||
| cacheMatchedAccounts?: number; | ||
| cacheRtCount?: number; | ||
| cacheIdCount?: number; | ||
| cacheAtCount?: number; | ||
| scenarioId?: string; | ||
| accountType?: "AAD" | "MSA" | "B2C"; | ||
| /** | ||
| * Server error that triggers a request retry | ||
| * | ||
| * @type {string} | ||
| */ | ||
| retryError?: string; | ||
| embeddedClientId?: string; | ||
| embeddedRedirectUri?: string; | ||
| isAsyncPopup?: boolean; | ||
| cacheRtExpiresOnSeconds?: number; | ||
| ntwkRtExpiresOnSeconds?: number; | ||
| extRtExpiresOnSeconds?: number; | ||
| rtOffsetSeconds?: number; | ||
| sidFromClaim?: boolean; | ||
| sidFromClaims?: boolean; | ||
| sidFromRequest?: boolean; | ||
| loginHintFromRequest?: boolean; | ||
| loginHintFromUpn?: boolean; | ||
| loginHintFromClaim?: boolean; | ||
| domainHintFromRequest?: boolean; | ||
| prompt?: string; | ||
| usePreGeneratedPkce?: boolean; | ||
| msalInstanceCount?: number; | ||
| sameClientIdInstanceCount?: number; | ||
| navigateCallbackResult?: boolean; | ||
| dataBoundary?: DataBoundary; | ||
| logs?: string; | ||
| isMcp?: boolean; | ||
| /** | ||
| * Source of cloud discovery metadata (config, cache, network, hardcoded_values) | ||
| */ | ||
| cloudDiscoverySource?: string; | ||
| /** | ||
| * Source of authority endpoint metadata (config, cache, network, hardcoded_values) | ||
| */ | ||
| authorityEndpointSource?: string; | ||
| /** | ||
| * Number of accounts removed during cache cleanup | ||
| */ | ||
| accountsRemoved?: number; | ||
| /** | ||
| * Number of access tokens removed during cache cleanup | ||
| */ | ||
| accessTokensRemoved?: number; | ||
| /** | ||
| * Number of failures when removing token binding keys | ||
| */ | ||
| removeTokenBindingKeyFailure?: number; | ||
| /** | ||
| * Reason for silent refresh fallback to iframe | ||
| * Format: errorCode or errorCode|subError | ||
| * | ||
| * @type {?string} | ||
| */ | ||
| silentRefreshReason?: string; | ||
| /** | ||
| * Whether this request was deduped with another in-flight request | ||
| */ | ||
| deduped?: boolean; | ||
| /** | ||
| * Whether the user has "Keep Me Signed In" enabled | ||
| */ | ||
| kmsi?: boolean; | ||
| /** | ||
| * Cached SSO capability status from the most recent SSO verification | ||
| */ | ||
| ssoCapable?: boolean; | ||
| /** | ||
| * Whether this event was executed in the background | ||
| */ | ||
| isBackground?: boolean; | ||
| /** | ||
| * Cache migration telemetry — pre-migration counts | ||
| */ | ||
| preMigrateAcntCount?: number; | ||
| preMigrateATCount?: number; | ||
| preMigrateITCount?: number; | ||
| preMigrateRTCount?: number; | ||
| /** | ||
| * Cache migration telemetry — post-migration counts | ||
| */ | ||
| postMigrateAcntCount?: number; | ||
| postMigrateATCount?: number; | ||
| postMigrateITCount?: number; | ||
| postMigrateRTCount?: number; | ||
| /** | ||
| * Cache migration telemetry — old schema counts | ||
| */ | ||
| oldAcntCount?: number; | ||
| oldATCount?: number; | ||
| oldITCount?: number; | ||
| oldRTCount?: number; | ||
| /** | ||
| * Cache migration telemetry — skipped and migrated counts | ||
| */ | ||
| skipATMigrateCount?: number; | ||
| skipITMigrateCount?: number; | ||
| skipRTMigrateCount?: number; | ||
| migratedATCount?: number; | ||
| migratedITCount?: number; | ||
| migratedRTCount?: number; | ||
| /** | ||
| * Cache telemetry — expired, invalid, and removed counts | ||
| */ | ||
| expiredCacheRemovedCount?: number; | ||
| expiredAcntRemovedCount?: number; | ||
| invalidCacheCount?: number; | ||
| /** | ||
| * Encrypted cache telemetry | ||
| */ | ||
| unencryptedCacheCount?: number; | ||
| encryptedCacheCount?: number; | ||
| encryptedCacheExpiredCount?: number; | ||
| encryptedCacheCorruptionCount?: number; | ||
| /** | ||
| * Container for dynamically-named telemetry fields. | ||
| * Fields whose names are constructed at runtime (e.g., "[eventName]CallCount") | ||
| * should be stored here instead of being set as top-level properties. | ||
| * Use the "ext." prefix when calling addFields/incrementFields to automatically | ||
| * route fields to this sub-object. | ||
| * | ||
| * @remarks | ||
| * This property is typed as `Record<string, string | number>`. | ||
| */ | ||
| ext?: Record<string, string | number>; | ||
| }; | ||
| export type PerformanceEventContext = { | ||
| dur?: number; | ||
| err?: string; | ||
| subErr?: string; | ||
| fail?: number; | ||
| }; | ||
| export type PerformanceEventStackedContext = PerformanceEventContext & { | ||
| name?: string; | ||
| childErr?: string; | ||
| }; | ||
| /** | ||
| * Prefix used to mark telemetry field names as dynamic. | ||
| * Fields with this prefix in addFields/incrementFields calls will be routed | ||
| * to the PerformanceEvent.ext sub-object. | ||
| */ | ||
| export declare const EXT_FIELD_PREFIX = "ext."; | ||
| export declare const IntFields: ReadonlySet<string>; | ||
| //# sourceMappingURL=PerformanceEvent.d.ts.map |
| {"version":3,"file":"PerformanceEvent.d.ts","sourceRoot":"","sources":["../../../../src/telemetry/performance/PerformanceEvent.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D;;;;;GAKG;AACH,eA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MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,6BAA6B,CAAC,EAAE,MAAM,CAAC;IAEvC;;;;;;;;;OASG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IAClC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,uBAAuB,GAAG;IACnE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,SAAS,CAAC;AAEvC,eAAO,MAAM,SAAS,EAAE,WAAW,CAAC,MAAM,CA4BxC,CAAC"} |
| /** | ||
| * Time spent sending/waiting for the response of a request to the token endpoint | ||
| */ | ||
| export declare const NetworkClientSendPostRequestAsync = "networkClientSendPostRequestAsync"; | ||
| export declare const RefreshTokenClientExecutePostToTokenEndpoint = "refreshTokenClientExecutePostToTokenEndpoint"; | ||
| export declare const AuthorizationCodeClientExecutePostToTokenEndpoint = "authorizationCodeClientExecutePostToTokenEndpoint"; | ||
| /** | ||
| * Time spent on the network for refresh token acquisition | ||
| */ | ||
| export declare const RefreshTokenClientExecuteTokenRequest = "refreshTokenClientExecuteTokenRequest"; | ||
| /** | ||
| * Time taken for acquiring refresh token , records RT size | ||
| */ | ||
| export declare const RefreshTokenClientAcquireToken = "refreshTokenClientAcquireToken"; | ||
| /** | ||
| * Time taken for acquiring cached refresh token | ||
| */ | ||
| export declare const RefreshTokenClientAcquireTokenWithCachedRefreshToken = "refreshTokenClientAcquireTokenWithCachedRefreshToken"; | ||
| /** | ||
| * Helper function to create token request body in RefreshTokenClient (msal-common). | ||
| */ | ||
| export declare const RefreshTokenClientCreateTokenRequestBody = "refreshTokenClientCreateTokenRequestBody"; | ||
| export declare const SilentFlowClientGenerateResultFromCacheRecord = "silentFlowClientGenerateResultFromCacheRecord"; | ||
| /** | ||
| * getAuthCodeUrl API (msal-browser and msal-node). | ||
| */ | ||
| export declare const GetAuthCodeUrl = "getAuthCodeUrl"; | ||
| /** | ||
| * Functions from InteractionHandler (msal-browser) | ||
| */ | ||
| export declare const HandleCodeResponseFromServer = "handleCodeResponseFromServer"; | ||
| /** | ||
| * APIs in Authorization Code Client (msal-common) | ||
| */ | ||
| export declare const AuthClientExecuteTokenRequest = "authClientExecuteTokenRequest"; | ||
| export declare const AuthClientCreateTokenRequestBody = "authClientCreateTokenRequestBody"; | ||
| export declare const UpdateTokenEndpointAuthority = "updateTokenEndpointAuthority"; | ||
| /** | ||
| * Generate functions in PopTokenGenerator (msal-common) | ||
| */ | ||
| export declare const PopTokenGenerateCnf = "popTokenGenerateCnf"; | ||
| /** | ||
| * handleServerTokenResponse API in ResponseHandler (msal-common) | ||
| */ | ||
| export declare const HandleServerTokenResponse = "handleServerTokenResponse"; | ||
| /** | ||
| * Authority functions | ||
| */ | ||
| export declare const AuthorityResolveEndpointsAsync = "authorityResolveEndpointsAsync"; | ||
| export declare const AuthorityGetCloudDiscoveryMetadataFromNetwork = "authorityGetCloudDiscoveryMetadataFromNetwork"; | ||
| export declare const AuthorityUpdateCloudDiscoveryMetadata = "authorityUpdateCloudDiscoveryMetadata"; | ||
| export declare const AuthorityGetEndpointMetadataFromNetwork = "authorityGetEndpointMetadataFromNetwork"; | ||
| export declare const AuthorityUpdateEndpointMetadata = "authorityUpdateEndpointMetadata"; | ||
| export declare const AuthorityUpdateMetadataWithRegionalInformation = "authorityUpdateMetadataWithRegionalInformation"; | ||
| /** | ||
| * Region Discovery functions | ||
| */ | ||
| export declare const RegionDiscoveryDetectRegion = "regionDiscoveryDetectRegion"; | ||
| export declare const RegionDiscoveryGetRegionFromIMDS = "regionDiscoveryGetRegionFromIMDS"; | ||
| export declare const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion"; | ||
| /** | ||
| * Cache operations | ||
| */ | ||
| export declare const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken"; | ||
| export declare const SetUserData = "setUserData"; | ||
| //# sourceMappingURL=PerformanceEvents.d.ts.map |
| {"version":3,"file":"PerformanceEvents.d.ts","sourceRoot":"","sources":["../../../../src/telemetry/performance/PerformanceEvents.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,iCAAiC,sCACP,CAAC;AACxC,eAAO,MAAM,4CAA4C,iDACP,CAAC;AACnD,eAAO,MAAM,iDAAiD,sDACP,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,qCAAqC,0CACP,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,8BAA8B,mCAAmC,CAAC;AAE/E;;GAEG;AACH,eAAO,MAAM,oDAAoD,yDACP,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,wCAAwC,6CACP,CAAC;AAE/C,eAAO,MAAM,6CAA6C,kDACP,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,6BAA6B,kCAAkC,CAAC;AAC7E,eAAO,MAAM,gCAAgC,qCACP,CAAC;AACvC,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,8BAA8B,mCAAmC,CAAC;AAC/E,eAAO,MAAM,6CAA6C,kDACP,CAAC;AACpD,eAAO,MAAM,qCAAqC,0CACP,CAAC;AAC5C,eAAO,MAAM,uCAAuC,4CACP,CAAC;AAC9C,eAAO,MAAM,+BAA+B,oCACP,CAAC;AACtC,eAAO,MAAM,8CAA8C,mDACP,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,2BAA2B,gCAAgC,CAAC;AACzE,eAAO,MAAM,gCAAgC,qCACP,CAAC;AACvC,eAAO,MAAM,gCAAgC,qCACP,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,2BAA2B,gCAAgC,CAAC;AACzE,eAAO,MAAM,WAAW,gBAAgB,CAAC"} |
| import { IPerformanceClient, InProgressPerformanceEvent } from "./IPerformanceClient.js"; | ||
| import { IPerformanceMeasurement } from "./IPerformanceMeasurement.js"; | ||
| import { PerformanceEvent } from "./PerformanceEvent.js"; | ||
| export declare class StubPerformanceMeasurement implements IPerformanceMeasurement { | ||
| startMeasurement(): void; | ||
| endMeasurement(): void; | ||
| flushMeasurement(): number | null; | ||
| } | ||
| export declare class StubPerformanceClient implements IPerformanceClient { | ||
| generateId(): string; | ||
| startMeasurement(measureName: string, correlationId?: string | undefined): InProgressPerformanceEvent; | ||
| endMeasurement(): PerformanceEvent | null; | ||
| discardMeasurements(): void; | ||
| removePerformanceCallback(): boolean; | ||
| addPerformanceCallback(): string; | ||
| emitEvents(): void; | ||
| addFields(): void; | ||
| incrementFields(): void; | ||
| cacheEventByCorrelationId(): void; | ||
| } | ||
| //# sourceMappingURL=StubPerformanceClient.d.ts.map |
| {"version":3,"file":"StubPerformanceClient.d.ts","sourceRoot":"","sources":["../../../../src/telemetry/performance/StubPerformanceClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,kBAAkB,EAClB,0BAA0B,EAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EACH,gBAAgB,EAEnB,MAAM,uBAAuB,CAAC;AAE/B,qBAAa,0BAA2B,YAAW,uBAAuB;IACtE,gBAAgB,IAAI,IAAI;IAGxB,cAAc,IAAI,IAAI;IAGtB,gBAAgB,IAAI,MAAM,GAAG,IAAI;CAGpC;AAED,qBAAa,qBAAsB,YAAW,kBAAkB;IAC5D,UAAU,IAAI,MAAM;IAIpB,gBAAgB,CACZ,WAAW,EAAE,MAAM,EACnB,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,GACnC,0BAA0B;IAoB7B,cAAc,IAAI,gBAAgB,GAAG,IAAI;IAIzC,mBAAmB,IAAI,IAAI;IAI3B,yBAAyB,IAAI,OAAO;IAIpC,sBAAsB,IAAI,MAAM;IAIhC,UAAU,IAAI,IAAI;IAIlB,SAAS,IAAI,IAAI;IAIjB,eAAe,IAAI,IAAI;IAIvB,yBAAyB,IAAI,IAAI;CAGpC"} |
| import * as Constants from "../../utils/Constants.js"; | ||
| import { CacheManager } from "../../cache/CacheManager.js"; | ||
| import { ServerTelemetryRequest } from "./ServerTelemetryRequest.js"; | ||
| import { ServerTelemetryEntity } from "../../cache/entities/ServerTelemetryEntity.js"; | ||
| import { RegionDiscoveryMetadata } from "../../authority/RegionDiscoveryMetadata.js"; | ||
| type SkuParams = { | ||
| libraryName?: string; | ||
| libraryVersion?: string; | ||
| extensionName?: string; | ||
| extensionVersion?: string; | ||
| skus?: string; | ||
| }; | ||
| /** @internal */ | ||
| export declare class ServerTelemetryManager { | ||
| private cacheManager; | ||
| private apiId; | ||
| private correlationId; | ||
| private telemetryCacheKey; | ||
| private wrapperSKU; | ||
| private wrapperVer; | ||
| private regionUsed; | ||
| private regionSource; | ||
| private regionOutcome; | ||
| private cacheOutcome; | ||
| constructor(telemetryRequest: ServerTelemetryRequest, cacheManager: CacheManager); | ||
| /** | ||
| * API to add MSER Telemetry to request | ||
| */ | ||
| generateCurrentRequestHeaderValue(): string; | ||
| /** | ||
| * API to add MSER Telemetry for the last failed request | ||
| */ | ||
| generateLastRequestHeaderValue(): string; | ||
| /** | ||
| * API to cache token failures for MSER data capture | ||
| * @param error | ||
| */ | ||
| cacheFailedRequest(error: unknown): void; | ||
| /** | ||
| * Update server telemetry cache entry by incrementing cache hit counter | ||
| */ | ||
| incrementCacheHits(): number; | ||
| /** | ||
| * Get the server telemetry entity from cache or initialize a new one | ||
| */ | ||
| getLastRequests(): ServerTelemetryEntity; | ||
| /** | ||
| * Remove server telemetry cache entry | ||
| */ | ||
| clearTelemetryCache(): void; | ||
| /** | ||
| * Returns the maximum number of errors that can be flushed to the server in the next network request | ||
| * @param serverTelemetryEntity | ||
| */ | ||
| static maxErrorsToSend(serverTelemetryEntity: ServerTelemetryEntity): number; | ||
| /** | ||
| * Get the region discovery fields | ||
| * | ||
| * @returns string | ||
| */ | ||
| getRegionDiscoveryFields(): string; | ||
| /** | ||
| * Update the region discovery metadata | ||
| * | ||
| * @param regionDiscoveryMetadata | ||
| * @returns void | ||
| */ | ||
| updateRegionDiscoveryMetadata(regionDiscoveryMetadata: RegionDiscoveryMetadata): void; | ||
| /** | ||
| * Set cache outcome | ||
| */ | ||
| setCacheOutcome(cacheOutcome: Constants.CacheOutcome): void; | ||
| setNativeBrokerErrorCode(errorCode: string): void; | ||
| getNativeBrokerErrorCode(): string | undefined; | ||
| clearNativeBrokerErrorCode(): void; | ||
| static makeExtraSkuString(params: SkuParams): string; | ||
| } | ||
| export {}; | ||
| //# sourceMappingURL=ServerTelemetryManager.d.ts.map |
| {"version":3,"file":"ServerTelemetryManager.d.ts","sourceRoot":"","sources":["../../../../src/telemetry/server/ServerTelemetryManager.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,SAAS,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,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BAA6B,CACzB,uBAAuB,EAAE,uBAAuB,GACjD,IAAI;IAMP;;OAEG;IACH,eAAe,CAAC,YAAY,EAAE,SAAS,CAAC,YAAY,GAAG,IAAI;IAI3D,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAUjD,wBAAwB,IAAI,MAAM,GAAG,SAAS;IAI9C,0BAA0B,IAAI,IAAI;IAUlC,MAAM,CAAC,kBAAkB,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM;CAGvD"} |
| export type ServerTelemetryRequest = { | ||
| clientId: string; | ||
| apiId: number; | ||
| correlationId: string; | ||
| forceRefresh?: boolean; | ||
| wrapperSKU?: string; | ||
| wrapperVer?: string; | ||
| }; | ||
| //# sourceMappingURL=ServerTelemetryRequest.d.ts.map |
| {"version":3,"file":"ServerTelemetryRequest.d.ts","sourceRoot":"","sources":["../../../../src/telemetry/server/ServerTelemetryRequest.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,sBAAsB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"} |
| /** | ||
| * Interface which describes URI components. | ||
| */ | ||
| export interface IUri { | ||
| Protocol: string; | ||
| HostNameAndPort: string; | ||
| AbsolutePath: string; | ||
| Search: string; | ||
| Hash: string; | ||
| PathSegments: string[]; | ||
| QueryString: string; | ||
| } | ||
| //# sourceMappingURL=IUri.d.ts.map |
| {"version":3,"file":"IUri.d.ts","sourceRoot":"","sources":["../../../src/url/IUri.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,IAAI;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACvB"} |
| import { IUri } from "./IUri.js"; | ||
| /** | ||
| * Url object class which can perform various transformations on url strings. | ||
| */ | ||
| export declare class UrlString { | ||
| private _urlString; | ||
| get urlString(): string; | ||
| constructor(url: string); | ||
| /** | ||
| * Ensure urls are lower case and end with a / character. | ||
| * @param url | ||
| */ | ||
| static canonicalizeUri(url: string): string; | ||
| /** | ||
| * Throws if urlString passed is not a valid authority URI string. | ||
| */ | ||
| validateAsUri(): void; | ||
| /** | ||
| * Given a url and a query string return the url with provided query string appended | ||
| * @param url | ||
| * @param queryString | ||
| */ | ||
| static appendQueryString(url: string, queryString: string): string; | ||
| /** | ||
| * Returns a url with the hash removed | ||
| * @param url | ||
| */ | ||
| static removeHashFromUrl(url: string): string; | ||
| /** | ||
| * Given a url like https://a:b/common/d?e=f#g, and a tenantId, returns https://a:b/tenantId/d | ||
| * @param href The url | ||
| * @param tenantId The tenant id to replace | ||
| */ | ||
| replaceTenantPath(tenantId: string): UrlString; | ||
| /** | ||
| * Parses out the components from a url string. | ||
| * @returns An object with the various components. Please cache this value insted of calling this multiple times on the same url. | ||
| */ | ||
| getUrlComponents(): IUri; | ||
| static getDomainFromUrl(url: string): string; | ||
| static getAbsoluteUrl(relativeUrl: string, baseUrl: string): string; | ||
| static constructAuthorityUriFromObject(urlObject: IUri): UrlString; | ||
| } | ||
| //# sourceMappingURL=UrlString.d.ts.map |
| {"version":3,"file":"UrlString.d.ts","sourceRoot":"","sources":["../../../src/url/UrlString.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC;;GAEG;AACH,qBAAa,SAAS;IAElB,OAAO,CAAC,UAAU,CAAS;IAC3B,IAAW,SAAS,IAAI,MAAM,CAE7B;gBAEW,GAAG,EAAE,MAAM;IAcvB;;;OAGG;IACH,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAoB3C;;OAEG;IACH,aAAa,IAAI,IAAI;IA6BrB;;;;OAIG;IACH,MAAM,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM;IAUlE;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAI7C;;;;OAIG;IACH,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS;IAc9C;;;OAGG;IACH,gBAAgB,IAAI,IAAI;IAsCxB,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAc5C,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM;IAgBnE,MAAM,CAAC,+BAA+B,CAAC,SAAS,EAAE,IAAI,GAAG,SAAS;CASrE"} |
| import { ClientAssertionCallback } from "../account/ClientCredentials.js"; | ||
| export declare function getClientAssertion(clientAssertion: string | ClientAssertionCallback, clientId: string, tokenEndpoint?: string): Promise<string>; | ||
| //# sourceMappingURL=ClientAssertionUtils.d.ts.map |
| {"version":3,"file":"ClientAssertionUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/ClientAssertionUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,uBAAuB,EAE1B,MAAM,iCAAiC,CAAC;AAEzC,wBAAsB,kBAAkB,CACpC,eAAe,EAAE,MAAM,GAAG,uBAAuB,EACjD,QAAQ,EAAE,MAAM,EAChB,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,MAAM,CAAC,CAUjB"} |
| export declare const SKU = "msal.js.common"; | ||
| export declare const DEFAULT_AUTHORITY = "https://login.microsoftonline.com/common/"; | ||
| export declare const DEFAULT_AUTHORITY_HOST = "login.microsoftonline.com"; | ||
| export declare const DEFAULT_COMMON_TENANT = "common"; | ||
| export declare const ADFS = "adfs"; | ||
| export declare const DSTS = "dstsv2"; | ||
| export declare const AAD_INSTANCE_DISCOVERY_ENDPT: string; | ||
| export declare const CIAM_AUTH_URL = ".ciamlogin.com"; | ||
| export declare const AAD_TENANT_DOMAIN_SUFFIX = ".onmicrosoft.com"; | ||
| export declare const RESOURCE_DELIM = "|"; | ||
| export declare const CONSUMER_UTID = "9188040d-6c67-4c5b-b112-36a304b66dad"; | ||
| export declare const OPENID_SCOPE = "openid"; | ||
| export declare const PROFILE_SCOPE = "profile"; | ||
| export declare const OFFLINE_ACCESS_SCOPE = "offline_access"; | ||
| export declare const EMAIL_SCOPE = "email"; | ||
| export declare const CODE_GRANT_TYPE = "authorization_code"; | ||
| export declare const S256_CODE_CHALLENGE_METHOD = "S256"; | ||
| export declare const URL_FORM_CONTENT_TYPE = "application/x-www-form-urlencoded;charset=utf-8"; | ||
| export declare const AUTHORIZATION_PENDING = "authorization_pending"; | ||
| export declare const NOT_APPLICABLE = "N/A"; | ||
| export declare const NOT_AVAILABLE = "Not Available"; | ||
| export declare const FORWARD_SLASH = "/"; | ||
| export declare const IMDS_ENDPOINT = "http://169.254.169.254/metadata/instance/compute/location"; | ||
| export declare const IMDS_VERSION = "2020-06-01"; | ||
| export declare const IMDS_TIMEOUT = 2000; | ||
| export declare const AZURE_REGION_AUTO_DISCOVER_FLAG = "TryAutoDetect"; | ||
| export declare const REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX = "login.microsoft.com"; | ||
| export declare const KNOWN_PUBLIC_CLOUDS: string[]; | ||
| export declare const SHR_NONCE_VALIDITY = 240; | ||
| export declare const INVALID_INSTANCE = "invalid_instance"; | ||
| export declare const HTTP_SUCCESS: number; | ||
| export declare const HTTP_SUCCESS_RANGE_START: number; | ||
| export declare const HTTP_SUCCESS_RANGE_END: number; | ||
| export declare const HTTP_REDIRECT: number; | ||
| export declare const HTTP_CLIENT_ERROR: number; | ||
| export declare const HTTP_CLIENT_ERROR_RANGE_START: number; | ||
| export declare const HTTP_BAD_REQUEST: number; | ||
| export declare const HTTP_UNAUTHORIZED: number; | ||
| export declare const HTTP_NOT_FOUND: number; | ||
| export declare const HTTP_REQUEST_TIMEOUT: number; | ||
| export declare const HTTP_GONE: number; | ||
| export declare const HTTP_TOO_MANY_REQUESTS: number; | ||
| export declare const HTTP_CLIENT_ERROR_RANGE_END: number; | ||
| export declare const HTTP_SERVER_ERROR: number; | ||
| export declare const HTTP_SERVER_ERROR_RANGE_START: number; | ||
| export declare const HTTP_SERVICE_UNAVAILABLE: number; | ||
| export declare const HTTP_GATEWAY_TIMEOUT: number; | ||
| export declare const HTTP_SERVER_ERROR_RANGE_END: number; | ||
| export declare const HTTP_MULTI_SIDED_ERROR: number; | ||
| export declare const HttpMethod: { | ||
| readonly GET: "GET"; | ||
| readonly POST: "POST"; | ||
| }; | ||
| export type HttpMethod = (typeof HttpMethod)[keyof typeof HttpMethod]; | ||
| export declare const OIDC_DEFAULT_SCOPES: string[]; | ||
| export declare const OIDC_SCOPES: string[]; | ||
| /** | ||
| * Request header names | ||
| */ | ||
| export declare const HeaderNames: { | ||
| readonly CONTENT_TYPE: "Content-Type"; | ||
| readonly CONTENT_LENGTH: "Content-Length"; | ||
| readonly RETRY_AFTER: "Retry-After"; | ||
| readonly CCS_HEADER: "X-AnchorMailbox"; | ||
| readonly WWWAuthenticate: "WWW-Authenticate"; | ||
| readonly AuthenticationInfo: "Authentication-Info"; | ||
| readonly X_MS_REQUEST_ID: "x-ms-request-id"; | ||
| readonly X_MS_HTTP_VERSION: "x-ms-httpver"; | ||
| }; | ||
| export type HeaderNames = (typeof HeaderNames)[keyof typeof HeaderNames]; | ||
| /** | ||
| * Persistent cache keys MSAL which stay while user is logged in. | ||
| */ | ||
| export declare const PersistentCacheKeys: { | ||
| readonly ACTIVE_ACCOUNT_FILTERS: "active-account-filters"; | ||
| }; | ||
| export type PersistentCacheKeys = (typeof PersistentCacheKeys)[keyof typeof PersistentCacheKeys]; | ||
| /** | ||
| * String constants related to AAD Authority | ||
| */ | ||
| export declare const AADAuthority: { | ||
| readonly COMMON: "common"; | ||
| readonly ORGANIZATIONS: "organizations"; | ||
| readonly CONSUMERS: "consumers"; | ||
| }; | ||
| export type AADAuthority = (typeof AADAuthority)[keyof typeof AADAuthority]; | ||
| /** | ||
| * Claims request keys | ||
| */ | ||
| export declare const ClaimsRequestKeys: { | ||
| readonly ACCESS_TOKEN: "access_token"; | ||
| readonly XMS_CC: "xms_cc"; | ||
| }; | ||
| export type ClaimsRequestKeys = (typeof ClaimsRequestKeys)[keyof typeof ClaimsRequestKeys]; | ||
| /** | ||
| * we considered making this "enum" in the request instead of string, however it looks like the allowed list of | ||
| * prompt values kept changing over past couple of years. There are some undocumented prompt values for some | ||
| * internal partners too, hence the choice of generic "string" type instead of the "enum" | ||
| */ | ||
| export declare const PromptValue: { | ||
| LOGIN: string; | ||
| SELECT_ACCOUNT: string; | ||
| CONSENT: string; | ||
| NONE: string; | ||
| CREATE: string; | ||
| NO_SESSION: string; | ||
| }; | ||
| /** | ||
| * allowed values for codeVerifier | ||
| */ | ||
| export declare const CodeChallengeMethodValues: { | ||
| PLAIN: string; | ||
| S256: string; | ||
| }; | ||
| /** | ||
| * Allowed values for response_type | ||
| */ | ||
| export declare const OAuthResponseType: { | ||
| readonly CODE: "code"; | ||
| readonly IDTOKEN_TOKEN: "id_token token"; | ||
| readonly IDTOKEN_TOKEN_REFRESHTOKEN: "id_token token refresh_token"; | ||
| }; | ||
| export type OAuthResponseType = (typeof OAuthResponseType)[keyof typeof OAuthResponseType]; | ||
| /** | ||
| * allowed values for response_mode | ||
| */ | ||
| export declare const ResponseMode: { | ||
| readonly QUERY: "query"; | ||
| readonly FRAGMENT: "fragment"; | ||
| readonly FORM_POST: "form_post"; | ||
| }; | ||
| export type ResponseMode = (typeof ResponseMode)[keyof typeof ResponseMode]; | ||
| /** | ||
| * allowed grant_type | ||
| */ | ||
| export declare const GrantType: { | ||
| readonly IMPLICIT_GRANT: "implicit"; | ||
| readonly AUTHORIZATION_CODE_GRANT: "authorization_code"; | ||
| readonly CLIENT_CREDENTIALS_GRANT: "client_credentials"; | ||
| readonly RESOURCE_OWNER_PASSWORD_GRANT: "password"; | ||
| readonly REFRESH_TOKEN_GRANT: "refresh_token"; | ||
| readonly DEVICE_CODE_GRANT: "device_code"; | ||
| readonly JWT_BEARER: "urn:ietf:params:oauth:grant-type:jwt-bearer"; | ||
| }; | ||
| export type GrantType = (typeof GrantType)[keyof typeof GrantType]; | ||
| /** | ||
| * Account types in Cache | ||
| */ | ||
| export declare const CACHE_ACCOUNT_TYPE_MSSTS: string; | ||
| export declare const CACHE_ACCOUNT_TYPE_ADFS: string; | ||
| export declare const CACHE_ACCOUNT_TYPE_MSAV1: string; | ||
| export declare const CACHE_ACCOUNT_TYPE_GENERIC: string; | ||
| /** | ||
| * Separators used in cache | ||
| */ | ||
| export declare const CACHE_KEY_SEPARATOR: string; | ||
| export declare const CLIENT_INFO_SEPARATOR: string; | ||
| /** | ||
| * Credential Type stored in the cache | ||
| */ | ||
| export declare const CredentialType: { | ||
| readonly ID_TOKEN: "IdToken"; | ||
| readonly ACCESS_TOKEN: "AccessToken"; | ||
| readonly ACCESS_TOKEN_WITH_AUTH_SCHEME: "AccessToken_With_AuthScheme"; | ||
| readonly REFRESH_TOKEN: "RefreshToken"; | ||
| }; | ||
| export type CredentialType = (typeof CredentialType)[keyof typeof CredentialType]; | ||
| /** | ||
| * Combine all cache types | ||
| */ | ||
| export declare const CacheType: { | ||
| readonly ADFS: 1001; | ||
| readonly MSA: 1002; | ||
| readonly MSSTS: 1003; | ||
| readonly GENERIC: 1004; | ||
| readonly ACCESS_TOKEN: 2001; | ||
| readonly REFRESH_TOKEN: 2002; | ||
| readonly ID_TOKEN: 2003; | ||
| readonly APP_METADATA: 3001; | ||
| readonly UNDEFINED: 9999; | ||
| }; | ||
| export type CacheType = (typeof CacheType)[keyof typeof CacheType]; | ||
| /** | ||
| * More Cache related constants | ||
| */ | ||
| export declare const APP_METADATA: string; | ||
| export declare const CLIENT_INFO: string; | ||
| export declare const THE_FAMILY_ID: string; | ||
| export declare const AUTHORITY_METADATA_CACHE_KEY: string; | ||
| export declare const AUTHORITY_METADATA_REFRESH_TIME_SECONDS: number; | ||
| export declare const AuthorityMetadataSource: { | ||
| readonly CONFIG: "config"; | ||
| readonly CACHE: "cache"; | ||
| readonly NETWORK: "network"; | ||
| readonly HARDCODED_VALUES: "hardcoded_values"; | ||
| }; | ||
| export type AuthorityMetadataSource = (typeof AuthorityMetadataSource)[keyof typeof AuthorityMetadataSource]; | ||
| export declare const SERVER_TELEM_SCHEMA_VERSION: number; | ||
| export declare const SERVER_TELEM_MAX_CUR_HEADER_BYTES: number; | ||
| export declare const SERVER_TELEM_MAX_LAST_HEADER_BYTES: number; | ||
| export declare const SERVER_TELEM_MAX_CACHED_ERRORS: number; | ||
| export declare const SERVER_TELEM_CACHE_KEY: string; | ||
| export declare const SERVER_TELEM_CATEGORY_SEPARATOR: string; | ||
| export declare const SERVER_TELEM_VALUE_SEPARATOR: string; | ||
| export declare const SERVER_TELEM_OVERFLOW_TRUE: string; | ||
| export declare const SERVER_TELEM_OVERFLOW_FALSE: string; | ||
| export declare const SERVER_TELEM_UNKNOWN_ERROR: string; | ||
| /** | ||
| * Type of the authentication request | ||
| */ | ||
| export declare const AuthenticationScheme: { | ||
| readonly BEARER: "Bearer"; | ||
| readonly POP: "pop"; | ||
| readonly SSH: "ssh-cert"; | ||
| }; | ||
| export type AuthenticationScheme = (typeof AuthenticationScheme)[keyof typeof AuthenticationScheme]; | ||
| /** | ||
| * Constants related to throttling | ||
| */ | ||
| export declare const DEFAULT_THROTTLE_TIME_SECONDS: number; | ||
| export declare const DEFAULT_MAX_THROTTLE_TIME_SECONDS: number; | ||
| export declare const THROTTLING_PREFIX: string; | ||
| export declare const X_MS_LIB_CAPABILITY_VALUE: string; | ||
| /** | ||
| * Errors | ||
| */ | ||
| export declare const INVALID_GRANT_ERROR: string; | ||
| export declare const CLIENT_MISMATCH_ERROR: string; | ||
| /** | ||
| * Password grant parameters | ||
| */ | ||
| export declare const PasswordGrantConstants: { | ||
| readonly username: "username"; | ||
| readonly password: "password"; | ||
| }; | ||
| export type PasswordGrantConstants = (typeof PasswordGrantConstants)[keyof typeof PasswordGrantConstants]; | ||
| /** | ||
| * Region Discovery Sources | ||
| */ | ||
| export declare const RegionDiscoverySources: { | ||
| readonly FAILED_AUTO_DETECTION: "1"; | ||
| readonly INTERNAL_CACHE: "2"; | ||
| readonly ENVIRONMENT_VARIABLE: "3"; | ||
| readonly IMDS: "4"; | ||
| }; | ||
| export type RegionDiscoverySources = (typeof RegionDiscoverySources)[keyof typeof RegionDiscoverySources]; | ||
| /** | ||
| * Region Discovery Outcomes | ||
| */ | ||
| export declare const RegionDiscoveryOutcomes: { | ||
| readonly CONFIGURED_MATCHES_DETECTED: "1"; | ||
| readonly CONFIGURED_NO_AUTO_DETECTION: "2"; | ||
| readonly CONFIGURED_NOT_DETECTED: "3"; | ||
| readonly AUTO_DETECTION_REQUESTED_SUCCESSFUL: "4"; | ||
| readonly AUTO_DETECTION_REQUESTED_FAILED: "5"; | ||
| }; | ||
| export type RegionDiscoveryOutcomes = (typeof RegionDiscoveryOutcomes)[keyof typeof RegionDiscoveryOutcomes]; | ||
| /** | ||
| * Specifies the reason for fetching the access token from the identity provider | ||
| */ | ||
| export declare const CacheOutcome: { | ||
| readonly NOT_APPLICABLE: "0"; | ||
| readonly FORCE_REFRESH_OR_CLAIMS: "1"; | ||
| readonly NO_CACHED_ACCESS_TOKEN: "2"; | ||
| readonly CACHED_ACCESS_TOKEN_EXPIRED: "3"; | ||
| readonly PROACTIVELY_REFRESHED: "4"; | ||
| }; | ||
| export type CacheOutcome = (typeof CacheOutcome)[keyof typeof CacheOutcome]; | ||
| export declare const JsonWebTokenTypes: { | ||
| readonly Jwt: "JWT"; | ||
| readonly Jwk: "JWK"; | ||
| readonly Pop: "pop"; | ||
| }; | ||
| export type JsonWebTokenTypes = (typeof JsonWebTokenTypes)[keyof typeof JsonWebTokenTypes]; | ||
| export declare const ONE_DAY_IN_MS = 86400000; | ||
| export declare const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300; | ||
| export declare const EncodingTypes: { | ||
| readonly BASE64: "base64"; | ||
| readonly HEX: "hex"; | ||
| readonly UTF8: "utf-8"; | ||
| }; | ||
| export type EncodingTypes = (typeof EncodingTypes)[keyof typeof EncodingTypes]; | ||
| //# sourceMappingURL=Constants.d.ts.map |
| {"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../../src/utils/Constants.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,GAAG,mBAAmB,CAAC;AAEpC,eAAO,MAAM,iBAAiB,8CAA8C,CAAC;AAC7E,eAAO,MAAM,sBAAsB,8BAA8B,CAAC;AAClE,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAE9C,eAAO,MAAM,IAAI,SAAS,CAAC;AAC3B,eAAO,MAAM,IAAI,WAAW,CAAC;AAE7B,eAAO,MAAM,4BAA4B,QAAmF,CAAC;AAE7H,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,wBAAwB,qBAAqB,CAAC;AAE3D,eAAO,MAAM,cAAc,MAAM,CAAC;AAElC,eAAO,MAAM,aAAa,yCAAyC,CAAC;AAEpE,eAAO,MAAM,YAAY,WAAW,CAAC;AACrC,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,oBAAoB,mBAAmB,CAAC;AACrD,eAAO,MAAM,WAAW,UAAU,CAAC;AACnC,eAAO,MAAM,eAAe,uBAAuB,CAAC;AACpD,eAAO,MAAM,0BAA0B,SAAS,CAAC;AACjD,eAAO,MAAM,qBAAqB,oDACmB,CAAC;AACtD,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAC7D,eAAO,MAAM,cAAc,QAAQ,CAAC;AACpC,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,aAAa,MAAM,CAAC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AG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE5E,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GACzB,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE/D,eAAO,MAAM,aAAa,WAAW,CAAC;AAGtC,eAAO,MAAM,gCAAgC,MAAM,CAAC;AAEpD,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC"} |
| import { Logger } from "../logger/Logger.js"; | ||
| import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js"; | ||
| /** | ||
| * Wraps a function with a performance measurement. | ||
| * Usage: invoke(functionToCall, performanceClient, "EventName", "correlationId")(...argsToPassToFunction) | ||
| * @param callback | ||
| * @param eventName | ||
| * @param logger | ||
| * @param telemetryClient | ||
| * @param correlationId | ||
| * @returns | ||
| * @internal | ||
| */ | ||
| export declare const invoke: <T extends any[], U>(callback: (...args: T) => U, eventName: string, logger: Logger, telemetryClient: IPerformanceClient, correlationId: string) => (...args: T) => U; | ||
| /** | ||
| * Wraps an async function with a performance measurement. | ||
| * Usage: invokeAsync(functionToCall, performanceClient, "EventName", "correlationId")(...argsToPassToFunction) | ||
| * @param callback | ||
| * @param eventName | ||
| * @param logger | ||
| * @param telemetryClient | ||
| * @param correlationId | ||
| * @returns | ||
| * @internal | ||
| * | ||
| */ | ||
| export declare const invokeAsync: <T extends any[], U>(callback: (...args: T) => Promise<U>, eventName: string, logger: Logger, telemetryClient: IPerformanceClient, correlationId: string) => (...args: T) => Promise<U>; | ||
| //# sourceMappingURL=FunctionWrappers.d.ts.map |
| {"version":3,"file":"FunctionWrappers.d.ts","sourceRoot":"","sources":["../../../src/utils/FunctionWrappers.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEpF;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,MAAM,+DAEJ,MAAM,UACT,MAAM,mBACG,kBAAkB,iBACpB,MAAM,sBAsCxB,CAAC;AAEF;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,WAAW,wEAET,MAAM,UACT,MAAM,mBACG,kBAAkB,iBACpB,MAAM,+BA6CxB,CAAC"} |
| /** | ||
| * Key-Value type to support queryParams, extraQueryParams and claims | ||
| */ | ||
| export type StringDict = { | ||
| [key: string]: string; | ||
| }; | ||
| //# sourceMappingURL=MsalTypes.d.ts.map |
| {"version":3,"file":"MsalTypes.d.ts","sourceRoot":"","sources":["../../../src/utils/MsalTypes.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC"} |
| import { ICrypto } from "../crypto/ICrypto.js"; | ||
| import { RequestStateObject } from "./StateTypes.js"; | ||
| /** | ||
| * Appends user state with random guid, or returns random guid. | ||
| * @param cryptoObj | ||
| * @param userState | ||
| * @param meta | ||
| */ | ||
| export declare function setRequestState(cryptoObj: ICrypto, userState?: string, meta?: Record<string, string>): string; | ||
| /** | ||
| * Generates the state value used by the common library. | ||
| * @param cryptoObj | ||
| * @param meta | ||
| */ | ||
| export declare function generateLibraryState(cryptoObj: ICrypto, meta?: Record<string, string>): string; | ||
| /** | ||
| * Parses the state into the RequestStateObject, which contains the LibraryState info and the state passed by the user. | ||
| * @param base64Decode | ||
| * @param state | ||
| */ | ||
| export declare function parseRequestState(base64Decode: (input: string) => string, state: string): RequestStateObject; | ||
| //# sourceMappingURL=ProtocolUtils.d.ts.map |
| {"version":3,"file":"ProtocolUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/ProtocolUtils.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAK/C,OAAO,EAAsB,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEzE;;;;;GAKG;AACH,wBAAgB,eAAe,CAC3B,SAAS,EAAE,OAAO,EAClB,SAAS,CAAC,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC9B,MAAM,CAKR;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAChC,SAAS,EAAE,OAAO,EAClB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC9B,MAAM,CAiBR;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC7B,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,EACvC,KAAK,EAAE,MAAM,GACd,kBAAkB,CA4BpB"} |
| /** | ||
| * Type which defines library state | ||
| */ | ||
| export type LibraryStateObject = { | ||
| id: string; | ||
| meta?: Record<string, string>; | ||
| }; | ||
| /** | ||
| * Type which defines the stringified and encoded state object sent to the service in the authorize request. | ||
| */ | ||
| export type RequestStateObject = { | ||
| userRequestState: string; | ||
| libraryState: LibraryStateObject; | ||
| }; | ||
| //# sourceMappingURL=StateTypes.d.ts.map |
| {"version":3,"file":"StateTypes.d.ts","sourceRoot":"","sources":["../../../src/utils/StateTypes.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,kBAAkB,CAAC;CACpC,CAAC"} |
| /** | ||
| * @hidden | ||
| */ | ||
| export declare class StringUtils { | ||
| /** | ||
| * Check if stringified object is empty | ||
| * @param strObj | ||
| */ | ||
| static isEmptyObj(strObj?: string): boolean; | ||
| static startsWith(str: string, search: string): boolean; | ||
| static endsWith(str: string, search: string): boolean; | ||
| /** | ||
| * Parses string into an object. | ||
| * | ||
| * @param query | ||
| */ | ||
| static queryStringToObject<T>(query: string): T; | ||
| /** | ||
| * Trims entries in an array. | ||
| * | ||
| * @param arr | ||
| */ | ||
| static trimArrayEntries(arr: Array<string>): Array<string>; | ||
| /** | ||
| * Removes empty strings from array | ||
| * @param arr | ||
| */ | ||
| static removeEmptyStringsFromArray(arr: Array<string>): Array<string>; | ||
| /** | ||
| * Attempts to parse a string into JSON | ||
| * @param str | ||
| */ | ||
| static jsonParseHelper<T>(str: string): T | null; | ||
| } | ||
| //# sourceMappingURL=StringUtils.d.ts.map |
| {"version":3,"file":"StringUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/StringUtils.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,qBAAa,WAAW;IACpB;;;OAGG;IACH,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO;IAU3C,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO;IAIvD,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO;IAOrD;;;;OAIG;IACH,MAAM,CAAC,mBAAmB,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;IAe/C;;;;OAIG;IACH,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC;IAI1D;;;OAGG;IACH,MAAM,CAAC,2BAA2B,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC;IAMrE;;;OAGG;IACH,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI;CAOnD"} |
| /** | ||
| * Utility functions for managing date and time operations. | ||
| */ | ||
| /** | ||
| * return the current time in Unix time (seconds). | ||
| */ | ||
| export declare function nowSeconds(): number; | ||
| /** | ||
| * Converts JS Date object to seconds | ||
| * @param date Date | ||
| */ | ||
| export declare function toSecondsFromDate(date: Date): number; | ||
| /** | ||
| * Convert seconds to JS Date object. Seconds can be in a number or string format or undefined (will still return a date). | ||
| * @param seconds | ||
| */ | ||
| export declare function toDateFromSeconds(seconds: number | string | undefined): Date; | ||
| /** | ||
| * check if a token is expired based on given UTC time in seconds. | ||
| * @param expiresOn | ||
| */ | ||
| export declare function isTokenExpired(expiresOn: string, offset: number): boolean; | ||
| /** | ||
| * Checks if a cache entry is expired based on the last updated time and cache retention days. | ||
| * @param lastUpdatedAt | ||
| * @param cacheRetentionDays | ||
| * @returns | ||
| */ | ||
| export declare function isCacheExpired(lastUpdatedAt: string, cacheRetentionDays: number): boolean; | ||
| /** | ||
| * If the current time is earlier than the time that a token was cached at, we must discard the token | ||
| * i.e. The system clock was turned back after acquiring the cached token | ||
| * @param cachedAt | ||
| * @param offset | ||
| */ | ||
| export declare function wasClockTurnedBack(cachedAt: string): boolean; | ||
| /** | ||
| * Waits for t number of milliseconds | ||
| * @param t number | ||
| * @param value T | ||
| */ | ||
| export declare function delay<T>(t: number, value?: T): Promise<T | void>; | ||
| //# sourceMappingURL=TimeUtils.d.ts.map |
| {"version":3,"file":"TimeUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/TimeUtils.ts"],"names":[],"mappings":"AAKA;;GAEG;AAEH;;GAEG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAGnC;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAGpD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAK5E;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAOzE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC1B,aAAa,EAAE,MAAM,EACrB,kBAAkB,EAAE,MAAM,GAC3B,OAAO,CAIT;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAI5D;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAEhE"} |
| import { AuthorizeResponse } from "../response/AuthorizeResponse.js"; | ||
| /** | ||
| * Parses hash string from given string. Returns empty string if no hash symbol is found. | ||
| * @param hashString | ||
| */ | ||
| export declare function stripLeadingHashOrQuery(responseString: string): string; | ||
| /** | ||
| * Returns URL hash as server auth code response object. | ||
| */ | ||
| export declare function getDeserializedResponse(responseString: string): AuthorizeResponse | null; | ||
| /** | ||
| * Utility to create a URL from the params map | ||
| */ | ||
| export declare function mapToQueryString(parameters: Map<string, string>): string; | ||
| /** | ||
| * Normalizes URLs for comparison by removing hash, canonicalizing, | ||
| * and ensuring consistent URL encoding in query parameters. | ||
| * This fixes redirect loops when URLs contain encoded characters like apostrophes (%27). | ||
| * @param url - URL to normalize | ||
| * @returns Normalized URL string for comparison | ||
| */ | ||
| export declare function normalizeUrlForComparison(url: string): string; | ||
| //# sourceMappingURL=UrlUtils.d.ts.map |
| {"version":3,"file":"UrlUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/UrlUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAiCrE;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAWtE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACnC,cAAc,EAAE,MAAM,GACvB,iBAAiB,GAAG,IAAI,CA4B1B;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAQxE;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAwB7D"} |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
2635148
-20.55%656
-42.1%46036
-18.79%