@azure/msal-browser
Advanced tools
Comparing version 3.5.1-beta.1 to 3.6.0
@@ -0,0 +0,0 @@ import { AccountInfo, Logger, PerformanceCallbackFunction } from "@azure/msal-common"; |
@@ -17,2 +17,3 @@ import { ITokenCache } from "../cache/ITokenCache"; | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest"; | ||
/** | ||
@@ -202,3 +203,3 @@ * The PublicClientApplication class is the object exposed by the library to perform authentication and authorization functions in Single Page Applications | ||
*/ | ||
logoutPopup(logoutRequest?: EndSessionRequest): Promise<void>; | ||
logoutPopup(logoutRequest?: EndSessionPopupRequest): Promise<void>; | ||
/** | ||
@@ -205,0 +206,0 @@ * This function uses a hidden iframe to fetch an authorization code from the eSTS. There are cases where this may not work: |
@@ -0,0 +0,0 @@ import { ITokenCache } from "../cache/ITokenCache"; |
@@ -0,0 +0,0 @@ import { Logger, AuthenticationScheme, IPerformanceClient } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { NativeExtensionMethod } from "../../utils/BrowserConstants"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ export declare const USER_INTERACTION_REQUIRED = "USER_INTERACTION_REQUIRED"; |
@@ -0,0 +0,0 @@ import { Logger } from "@azure/msal-common"; |
@@ -74,4 +74,11 @@ import { CommonAuthorizationCodeRequest, ICrypto, AccountEntity, IdTokenEntity, AccessTokenEntity, RefreshTokenEntity, AppMetadataEntity, CacheManager, ServerTelemetryEntity, ThrottlingEntity, Logger, AuthorityMetadataEntity, AccountInfo, ValidCredentialType, TokenKeys, CredentialType, IPerformanceClient, StaticAuthorityOptions } from "@azure/msal-common"; | ||
*/ | ||
getAccount(accountKey: string): AccountEntity | null; | ||
getAccount(accountKey: string, logger?: Logger): AccountEntity | null; | ||
/** | ||
* Reads account from cache, deserializes it into an account entity and returns it. | ||
* If account is not found from the key, returns null and removes key from map. | ||
* @param accountKey | ||
* @returns | ||
*/ | ||
getCachedAccountEntity(accountKey: string): AccountEntity | null; | ||
/** | ||
* set account entity in the platform cache | ||
@@ -102,2 +109,7 @@ * @param account | ||
/** | ||
* Remove account entity from the platform cache if it's outdated | ||
* @param accountKey | ||
*/ | ||
removeOutdatedAccount(accountKey: string): void; | ||
/** | ||
* Removes given idToken from the cache and from the key map | ||
@@ -104,0 +116,0 @@ * @param key |
@@ -0,0 +0,0 @@ import { IWindowStorage } from "./IWindowStorage"; |
@@ -0,0 +0,0 @@ import { Logger } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { IAsyncStorage } from "./IAsyncMemoryStorage"; |
@@ -0,0 +0,0 @@ export interface IAsyncStorage<T> { |
@@ -0,0 +0,0 @@ import { ExternalTokenResponse } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ export interface IWindowStorage<T> { |
@@ -0,0 +0,0 @@ import { IWindowStorage } from "./IWindowStorage"; |
@@ -0,0 +0,0 @@ import { ICrypto, Logger, ExternalTokenResponse } from "@azure/msal-common"; |
@@ -5,3 +5,3 @@ import { SystemOptions, LoggerOptions, INetworkModule, ProtocolMode, OIDCOptions, AzureCloudOptions, ApplicationTelemetry, IPerformanceClient } from "@azure/msal-common"; | ||
export declare const DEFAULT_POPUP_TIMEOUT_MS = 60000; | ||
export declare const DEFAULT_IFRAME_TIMEOUT_MS = 6000; | ||
export declare const DEFAULT_IFRAME_TIMEOUT_MS = 10000; | ||
export declare const DEFAULT_REDIRECT_TIMEOUT_MS = 30000; | ||
@@ -8,0 +8,0 @@ export declare const DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS = 2000; |
@@ -0,0 +0,0 @@ import { IController } from "./IController"; |
@@ -0,0 +0,0 @@ import { AccountInfo, Logger, PerformanceCallbackFunction, IPerformanceClient, AccountFilter } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { CommonAuthorizationUrlRequest, CommonSilentFlowRequest, PerformanceCallbackFunction, AccountInfo, Logger, ICrypto, IPerformanceClient, AccountFilter } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { AccountInfo, INetworkModule, Logger, CommonSilentFlowRequest, ICrypto, PerformanceCallbackFunction, IPerformanceClient, BaseAuthRequest, AccountFilter } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { CommonAuthorizationUrlRequest, CommonSilentFlowRequest, PerformanceCallbackFunction, AccountInfo, Logger, ICrypto, IPerformanceClient, AccountFilter } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { IPerformanceClient, Logger } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { ICrypto, IPerformanceClient, Logger, ShrOptions, SignedHttpRequest, SignedHttpRequestParameters } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { IPerformanceClient, Logger, PkceCodes } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { LoggerOptions, SignedHttpRequestParameters } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { AuthError } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ export declare const pkceNotCreated = "pkce_not_created"; |
@@ -0,0 +0,0 @@ import { AuthError } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ export declare const storageNotSupported = "storage_not_supported"; |
@@ -0,0 +0,0 @@ import { AuthError } from "@azure/msal-common"; |
export declare const contentError = "ContentError"; | ||
export declare const userSwitch = "user_switch"; | ||
//# sourceMappingURL=NativeAuthErrorCodes.d.ts.map |
@@ -0,0 +0,0 @@ import { AuthError } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { ICrypto, Logger } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { AuthError, AccountInfo } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ export declare const EventType: { |
@@ -38,4 +38,4 @@ /** | ||
export { BrowserPerformanceMeasurement } from "./telemetry/BrowserPerformanceMeasurement"; | ||
export { AuthenticationScheme, AccountInfo, AccountEntity, IdTokenClaims, AuthError, AuthErrorCodes, AuthErrorMessage, ClientAuthError, ClientAuthErrorCodes, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorCodes, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorCodes, InteractionRequiredAuthErrorMessage, ServerError, INetworkModule, NetworkResponse, NetworkRequestOptions, ILoggerCallback, Logger, LogLevel, ProtocolMode, ServerResponseType, PromptValue, ExternalTokenResponse, StringUtils, UrlString, JsonWebTokenTypes, AzureCloudInstance, AzureCloudOptions, AuthenticationHeaderParser, OIDC_DEFAULT_SCOPES, PerformanceCallbackFunction, PerformanceEvent, PerformanceEvents, InProgressPerformanceEvent, } from "@azure/msal-common"; | ||
export { AuthenticationScheme, AccountInfo, AccountEntity, IdTokenClaims, AuthError, AuthErrorCodes, AuthErrorMessage, ClientAuthError, ClientAuthErrorCodes, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorCodes, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorCodes, InteractionRequiredAuthErrorMessage, ServerError, INetworkModule, NetworkResponse, NetworkRequestOptions, ILoggerCallback, Logger, LogLevel, ProtocolMode, ServerResponseType, PromptValue, ExternalTokenResponse, StringUtils, UrlString, JsonWebTokenTypes, AzureCloudInstance, AzureCloudOptions, AuthenticationHeaderParser, OIDC_DEFAULT_SCOPES, PerformanceCallbackFunction, PerformanceEvent, PerformanceEvents, InProgressPerformanceEvent, TenantProfile, } from "@azure/msal-common"; | ||
export { version } from "./packageMetadata"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -0,0 +0,0 @@ import { ICrypto, INetworkModule, Logger, AccountInfo, BaseAuthRequest, ServerTelemetryManager, Authority, IPerformanceClient } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { AuthorizationCodeClient, ClientConfiguration } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { Logger, ICrypto, AccountEntity, ScopeSet, IPerformanceClient, TokenClaims } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { CommonEndSessionRequest, IPerformanceClient, Logger, ICrypto } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { ServerTelemetryManager, ServerAuthorizationCodeResponse, ICrypto, Logger, IPerformanceClient } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { ICrypto, Logger, IPerformanceClient } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { StandardInteractionClient } from "./StandardInteractionClient"; |
@@ -0,0 +0,0 @@ import { ICrypto, Logger, AuthorizationCodeClient, IPerformanceClient } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { StandardInteractionClient } from "./StandardInteractionClient"; |
@@ -0,0 +0,0 @@ import { ServerTelemetryManager, CommonAuthorizationCodeRequest, AuthorizationCodeClient, ClientConfiguration, Authority, CommonEndSessionRequest, AccountInfo, AzureCloudOptions } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { AuthorizationCodePayload, CommonAuthorizationCodeRequest, AuthorizationCodeClient, CcsCredential, Logger, IPerformanceClient, ServerAuthorizationCodeResponse } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { AuthorizationCodeClient, CommonAuthorizationCodeRequest, Logger, IPerformanceClient, CcsCredential, ServerAuthorizationCodeResponse } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { Logger, IPerformanceClient, ServerResponseType } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ export type AccountInfo = { |
@@ -0,0 +0,0 @@ export type AccountByHomeIdRequest = { |
@@ -0,6 +1,9 @@ | ||
export type AuthBridgeResponse = string | { | ||
data: string; | ||
}; | ||
export interface AuthBridge { | ||
addEventListener: (eventName: string, callback: (response: string) => void) => void; | ||
addEventListener: (eventName: string, callback: (response: AuthBridgeResponse) => void) => void; | ||
postMessage: (message: string) => void; | ||
removeEventListener: (eventName: string, callback: (response: string) => void) => void; | ||
removeEventListener: (eventName: string, callback: (response: AuthBridgeResponse) => void) => void; | ||
} | ||
//# sourceMappingURL=AuthBridge.d.ts.map |
@@ -0,0 +0,0 @@ export interface BridgeCapabilities { |
@@ -0,0 +0,0 @@ import { BridgeStatusCode } from "./BridgeStatusCode"; |
@@ -0,0 +0,0 @@ import { AccountInfo } from "./AccountInfo"; |
@@ -0,0 +0,0 @@ export type BridgeRequest<TResponse> = { |
@@ -0,0 +0,0 @@ import { TokenRequest } from "./TokenRequest"; |
@@ -0,0 +0,0 @@ import { BridgeError } from "./BridgeError"; |
@@ -0,0 +0,0 @@ export declare enum BridgeStatusCode { |
@@ -0,0 +0,0 @@ import { AccountInfo } from "./AccountInfo"; |
@@ -0,0 +0,0 @@ import { BridgeCapabilities } from "./BridgeCapabilities"; |
@@ -0,0 +0,0 @@ import { TokenRequest } from "../TokenRequest"; |
@@ -0,0 +0,0 @@ export type TokenRequest = { |
@@ -0,0 +0,0 @@ import { AccountInfo } from "./AccountInfo"; |
@@ -0,0 +0,0 @@ import { NavigationOptions } from "./NavigationOptions"; |
@@ -0,0 +0,0 @@ import { INavigationClient } from "./INavigationClient"; |
@@ -0,0 +0,0 @@ import { ApiId } from "../utils/BrowserConstants"; |
@@ -0,0 +0,0 @@ import { INetworkModule, NetworkRequestOptions, NetworkResponse } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { Logger } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { BaseOperatingContext } from "./BaseOperatingContext"; |
@@ -0,0 +0,0 @@ import { BaseOperatingContext } from "./BaseOperatingContext"; |
@@ -0,0 +0,0 @@ import { BaseOperatingContext } from "./BaseOperatingContext"; |
export declare const name = "@azure/msal-browser"; | ||
export declare const version = "3.5.1-beta.1"; | ||
export declare const version = "3.6.0"; | ||
//# sourceMappingURL=packageMetadata.d.ts.map |
@@ -0,0 +0,0 @@ import { CommonAuthorizationCodeRequest } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { CommonAuthorizationUrlRequest } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { AccountInfo } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { CommonEndSessionRequest } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { CommonEndSessionRequest } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { CommonAuthorizationUrlRequest, StringDict } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { CommonAuthorizationUrlRequest, StringDict } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { AccountInfo, CommonSilentFlowRequest, StringDict } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { CommonAuthorizationUrlRequest, StringDict } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { AccountInfo, AuthenticationResult as CommonAuthenticationResult } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { ICrypto, Logger, ServerAuthorizationCodeResponse } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { PerformanceEvents, IPerformanceClient, PerformanceClient, IPerformanceMeasurement, InProgressPerformanceEvent } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { IPerformanceMeasurement, SubMeasurement } from "@azure/msal-common"; |
@@ -0,0 +0,0 @@ import { PopupRequest } from "../request/PopupRequest"; |
@@ -0,0 +0,0 @@ import { InteractionType } from "./BrowserConstants"; |
@@ -0,0 +0,0 @@ import { InteractionType } from "./BrowserConstants"; |
205
package.json
{ | ||
"name": "@azure/msal-browser", | ||
"author": { | ||
"name": "Microsoft", | ||
"email": "nugetaad@microsoft.com", | ||
"url": "https://www.microsoft.com" | ||
"name": "@azure/msal-browser", | ||
"author": { | ||
"name": "Microsoft", | ||
"email": "nugetaad@microsoft.com", | ||
"url": "https://www.microsoft.com" | ||
}, | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git" | ||
}, | ||
"version": "3.6.0", | ||
"description": "Microsoft Authentication Library for js", | ||
"keywords": [ | ||
"implicit", | ||
"authorization code", | ||
"PKCE", | ||
"js", | ||
"AAD", | ||
"msal", | ||
"oauth" | ||
], | ||
"type": "module", | ||
"sideEffects": false, | ||
"module": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"module": "./dist/index.mjs", | ||
"import": "./dist/index.mjs", | ||
"require": "./lib/msal-browser.cjs", | ||
"default": "./dist/index.mjs" | ||
}, | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git" | ||
}, | ||
"version": "3.5.1-beta.1", | ||
"description": "Microsoft Authentication Library for js", | ||
"keywords": [ | ||
"implicit", | ||
"authorization code", | ||
"PKCE", | ||
"js", | ||
"AAD", | ||
"msal", | ||
"oauth" | ||
], | ||
"type": "module", | ||
"sideEffects": false, | ||
"module": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"module": "./dist/index.mjs", | ||
"import": "./dist/index.mjs", | ||
"require": "./lib/msal-browser.cjs", | ||
"default": "./dist/index.mjs" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"engines": { | ||
"node": ">=0.8.0" | ||
}, | ||
"beachball": { | ||
"disallowedChangeTypes": [ | ||
"major" | ||
] | ||
}, | ||
"directories": { | ||
"test": "test" | ||
}, | ||
"files": [ | ||
"dist", | ||
"lib/msal-browser.js", | ||
"lib/msal-browser.js.map", | ||
"lib/msal-browser.cjs", | ||
"lib/msal-browser.cjs.map", | ||
"lib/msal-browser.min.js", | ||
"src" | ||
], | ||
"scripts": { | ||
"clean": "shx rm -rf dist lib", | ||
"clean:coverage": "rimraf ../../.nyc_output/*", | ||
"lint": "eslint src --ext .ts", | ||
"lint:fix": "npm run lint -- --fix", | ||
"test": "jest", | ||
"test:coverage": "jest --coverage", | ||
"test:coverage:only": "npm run clean:coverage && npm run test:coverage", | ||
"build:all": "cd ../.. && npm run build --workspace=@azure/msal-common --workspace=@azure/msal-browser", | ||
"build:modules": "rollup -c --strictDeprecations --bundleConfigAsCjs", | ||
"build:modules:watch": "rollup -cw --bundleConfigAsCjs", | ||
"build": "npm run clean && npm run build:modules", | ||
"prepack": "npm run build:all", | ||
"format:check": "npx prettier --ignore-path .gitignore --check src test", | ||
"format:fix": "npx prettier --ignore-path .gitignore --write src test" | ||
}, | ||
"devDependencies": { | ||
"@azure/storage-blob": "^12.2.1", | ||
"@babel/core": "^7.7.2", | ||
"@babel/plugin-proposal-class-properties": "^7.7.0", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.6.2", | ||
"@babel/preset-env": "^7.7.1", | ||
"@babel/preset-typescript": "^7.7.2", | ||
"@rollup/plugin-node-resolve": "^15.0.1", | ||
"@rollup/plugin-terser": "^0.4.0", | ||
"@rollup/plugin-typescript": "^11.0.0", | ||
"@types/jest": "^29.5.0", | ||
"@types/node": "^20.3.1", | ||
"@types/sinon": "^7.5.0", | ||
"dotenv": "^8.2.0", | ||
"eslint-config-msal": "^0.0.0", | ||
"fake-indexeddb": "^3.1.3", | ||
"jest": "^29.5.0", | ||
"jest-environment-jsdom": "^29.5.0", | ||
"prettier": "2.8.7", | ||
"rimraf": "^3.0.0", | ||
"rollup": "^3.14.0", | ||
"shx": "^0.3.2", | ||
"sinon": "^7.5.0", | ||
"ssri": "^8.0.1", | ||
"ts-jest": "^29.1.0", | ||
"tslib": "^1.10.0", | ||
"typescript": "^4.9.5" | ||
}, | ||
"dependencies": { | ||
"@azure/msal-common": "14.4.1-beta.1" | ||
} | ||
"./package.json": "./package.json" | ||
}, | ||
"engines": { | ||
"node": ">=0.8.0" | ||
}, | ||
"beachball": { | ||
"disallowedChangeTypes": [ | ||
"major" | ||
] | ||
}, | ||
"directories": { | ||
"test": "test" | ||
}, | ||
"files": [ | ||
"dist", | ||
"lib/msal-browser.js", | ||
"lib/msal-browser.js.map", | ||
"lib/msal-browser.cjs", | ||
"lib/msal-browser.cjs.map", | ||
"lib/msal-browser.min.js", | ||
"src" | ||
], | ||
"scripts": { | ||
"clean": "shx rm -rf dist lib", | ||
"clean:coverage": "rimraf ../../.nyc_output/*", | ||
"lint": "eslint src --ext .ts", | ||
"lint:fix": "npm run lint -- --fix", | ||
"test": "jest", | ||
"test:coverage": "jest --coverage", | ||
"test:coverage:only": "npm run clean:coverage && npm run test:coverage", | ||
"build:all": "cd ../.. && npm run build --workspace=@azure/msal-common --workspace=@azure/msal-browser", | ||
"build:modules": "rollup -c --strictDeprecations --bundleConfigAsCjs", | ||
"build:modules:watch": "rollup -cw --bundleConfigAsCjs", | ||
"build": "npm run clean && npm run build:modules", | ||
"prepack": "npm run build:all", | ||
"format:check": "npx prettier --ignore-path .gitignore --check src test", | ||
"format:fix": "npx prettier --ignore-path .gitignore --write src test" | ||
}, | ||
"devDependencies": { | ||
"@azure/storage-blob": "^12.2.1", | ||
"@babel/core": "^7.7.2", | ||
"@babel/plugin-proposal-class-properties": "^7.7.0", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.6.2", | ||
"@babel/preset-env": "^7.7.1", | ||
"@babel/preset-typescript": "^7.7.2", | ||
"@rollup/plugin-node-resolve": "^15.0.1", | ||
"@rollup/plugin-terser": "^0.4.0", | ||
"@rollup/plugin-typescript": "^11.0.0", | ||
"@types/jest": "^29.5.0", | ||
"@types/node": "^20.3.1", | ||
"@types/sinon": "^7.5.0", | ||
"dotenv": "^8.2.0", | ||
"eslint-config-msal": "^0.0.0", | ||
"msal-test-utils": "^0.0.1", | ||
"fake-indexeddb": "^3.1.3", | ||
"jest": "^29.5.0", | ||
"jest-environment-jsdom": "^29.5.0", | ||
"prettier": "2.8.7", | ||
"rimraf": "^3.0.0", | ||
"rollup": "^3.14.0", | ||
"shx": "^0.3.2", | ||
"sinon": "^7.5.0", | ||
"ssri": "^8.0.1", | ||
"ts-jest": "^29.1.0", | ||
"tslib": "^1.10.0", | ||
"typescript": "^4.9.5" | ||
}, | ||
"dependencies": { | ||
"@azure/msal-common": "14.5.0" | ||
} | ||
} |
@@ -30,2 +30,3 @@ /* | ||
import { ClearCacheRequest } from "../request/ClearCacheRequest"; | ||
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest"; | ||
@@ -310,3 +311,3 @@ /** | ||
*/ | ||
logoutPopup(logoutRequest?: EndSessionRequest): Promise<void> { | ||
logoutPopup(logoutRequest?: EndSessionPopupRequest): Promise<void> { | ||
return this.controller.logoutPopup(logoutRequest); | ||
@@ -313,0 +314,0 @@ } |
@@ -88,3 +88,3 @@ /* | ||
if (!this.dbOpen) { | ||
return await this.open(); | ||
return this.open(); | ||
} | ||
@@ -91,0 +91,0 @@ } |
@@ -22,2 +22,3 @@ /* | ||
CacheHelpers, | ||
buildAccountToCache, | ||
} from "@azure/msal-common"; | ||
@@ -244,36 +245,39 @@ import { BrowserConfiguration } from "../config/Configuration"; | ||
): AccountEntity { | ||
let homeAccountId; | ||
if (requestHomeAccountId) { | ||
homeAccountId = requestHomeAccountId; | ||
} else if (authority.authorityType !== undefined && clientInfo) { | ||
homeAccountId = AccountEntity.generateHomeAccountId( | ||
clientInfo, | ||
authority.authorityType, | ||
this.logger, | ||
this.cryptoObj, | ||
idTokenClaims | ||
); | ||
} | ||
if (this.isBrowserEnvironment) { | ||
this.logger.verbose("TokenCache - loading account"); | ||
let homeAccountId; | ||
if (requestHomeAccountId) { | ||
homeAccountId = requestHomeAccountId; | ||
} else if (authority.authorityType !== undefined && clientInfo) { | ||
homeAccountId = AccountEntity.generateHomeAccountId( | ||
clientInfo, | ||
authority.authorityType, | ||
this.logger, | ||
this.cryptoObj, | ||
idTokenClaims | ||
); | ||
} | ||
if (!homeAccountId) { | ||
throw createBrowserAuthError( | ||
BrowserAuthErrorCodes.unableToLoadToken | ||
); | ||
} | ||
if (!homeAccountId) { | ||
throw createBrowserAuthError( | ||
BrowserAuthErrorCodes.unableToLoadToken | ||
); | ||
} | ||
const claimsTenantId = idTokenClaims.tid; | ||
const accountEntity = AccountEntity.createAccount( | ||
{ | ||
const cachedAccount = buildAccountToCache( | ||
this.storage, | ||
authority, | ||
homeAccountId, | ||
idTokenClaims: idTokenClaims, | ||
idTokenClaims, | ||
base64Decode, | ||
clientInfo, | ||
environment: authority.hostnameAndPort, | ||
}, | ||
authority | ||
); | ||
claimsTenantId, | ||
undefined, | ||
undefined, | ||
this.logger | ||
); | ||
if (this.isBrowserEnvironment) { | ||
this.logger.verbose("TokenCache - loading account"); | ||
this.storage.setAccount(accountEntity); | ||
return accountEntity; | ||
this.storage.setAccount(cachedAccount); | ||
return cachedAccount; | ||
} else { | ||
@@ -280,0 +284,0 @@ throw createBrowserAuthError( |
@@ -36,3 +36,3 @@ /* | ||
export const DEFAULT_POPUP_TIMEOUT_MS = 60000; | ||
export const DEFAULT_IFRAME_TIMEOUT_MS = 6000; | ||
export const DEFAULT_IFRAME_TIMEOUT_MS = 10000; | ||
export const DEFAULT_REDIRECT_TIMEOUT_MS = 30000; | ||
@@ -39,0 +39,0 @@ export const DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS = 2000; |
@@ -19,3 +19,3 @@ /* | ||
const controller = await import("./StandardController"); | ||
return await controller.StandardController.createController(standard); | ||
return controller.StandardController.createController(standard); | ||
} | ||
@@ -38,8 +38,6 @@ | ||
const controller = await import("./NestedAppAuthController"); | ||
return await controller.NestedAppAuthController.createController( | ||
teamsApp | ||
); | ||
return controller.NestedAppAuthController.createController(teamsApp); | ||
} else if (standard.isAvailable()) { | ||
const controller = await import("./StandardController"); | ||
return await controller.StandardController.createController(standard); | ||
return controller.StandardController.createController(standard); | ||
} else { | ||
@@ -46,0 +44,0 @@ // Since neither of the actual operating contexts are available keep the UnknownOperatingContextController |
@@ -154,3 +154,3 @@ /* | ||
async clearKeystore(): Promise<boolean> { | ||
return await this.cache.clear(); | ||
return this.cache.clear(); | ||
} | ||
@@ -157,0 +157,0 @@ |
@@ -74,4 +74,4 @@ /* | ||
async removeKeys(publicKeyThumbprint: string): Promise<boolean> { | ||
return await this.cryptoOps.removeTokenBindingKey(publicKeyThumbprint); | ||
return this.cryptoOps.removeTokenBindingKey(publicKeyThumbprint); | ||
} | ||
} |
@@ -149,4 +149,5 @@ /* | ||
InProgressPerformanceEvent, | ||
TenantProfile, | ||
} from "@azure/msal-common"; | ||
export { version } from "./packageMetadata"; |
@@ -286,3 +286,3 @@ /* | ||
); | ||
return await AuthorityFactory.createDiscoveredInstance( | ||
return AuthorityFactory.createDiscoveredInstance( | ||
requestAuthority, | ||
@@ -299,3 +299,3 @@ this.config.system.networkClient, | ||
); | ||
return await AuthorityFactory.createDiscoveredInstance( | ||
return AuthorityFactory.createDiscoveredInstance( | ||
this.config.auth.authority, | ||
@@ -302,0 +302,0 @@ this.config.system.networkClient, |
@@ -36,3 +36,5 @@ /* | ||
AuthErrorCodes, | ||
updateAccountTenantProfileData, | ||
CacheHelpers, | ||
buildAccountToCache, | ||
} from "@azure/msal-common"; | ||
@@ -376,3 +378,3 @@ import { BaseInteractionClient } from "./BaseInteractionClient"; | ||
this.browserStorage.setInteractionInProgress(false); | ||
return result; | ||
return await result; | ||
} catch (e) { | ||
@@ -425,10 +427,14 @@ this.browserStorage.setInteractionInProgress(false); | ||
); | ||
const accountEntity = AccountEntity.createAccount( | ||
{ | ||
homeAccountId: homeAccountIdentifier, | ||
idTokenClaims: idTokenClaims, | ||
clientInfo: response.client_info, | ||
nativeAccountId: response.account.id, | ||
}, | ||
authority | ||
const baseAccount = buildAccountToCache( | ||
this.browserStorage, | ||
authority, | ||
homeAccountIdentifier, | ||
idTokenClaims, | ||
base64Decode, | ||
response.client_info, | ||
idTokenClaims.tid, | ||
undefined, | ||
response.account.id, | ||
this.logger | ||
); | ||
@@ -441,3 +447,3 @@ | ||
idTokenClaims, | ||
accountEntity, | ||
baseAccount, | ||
authority.canonicalAuthority, | ||
@@ -448,3 +454,3 @@ reqTimestamp | ||
// cache accounts and tokens in the appropriate storage | ||
this.cacheAccount(accountEntity); | ||
this.cacheAccount(baseAccount); | ||
this.cacheNativeTokens( | ||
@@ -541,3 +547,3 @@ response, | ||
} | ||
return await popTokenGenerator.signPopToken( | ||
return popTokenGenerator.signPopToken( | ||
response.access_token, | ||
@@ -589,11 +595,8 @@ request.keyId, | ||
const fullAccountEntity: AccountEntity = idTokenClaims | ||
? Object.assign(new AccountEntity(), { | ||
...accountEntity, | ||
idTokenClaims: idTokenClaims, | ||
}) | ||
: accountEntity; | ||
const accountInfo: AccountInfo | null = updateAccountTenantProfileData( | ||
accountEntity.getAccountInfo(), | ||
undefined, // tenantProfile optional | ||
idTokenClaims | ||
); | ||
const accountInfo = fullAccountEntity.getAccountInfo(); | ||
// generate PoP token as needed | ||
@@ -600,0 +603,0 @@ const responseAccessToken = await this.generatePopAccessToken( |
@@ -342,3 +342,3 @@ /* | ||
); | ||
return nativeInteractionClient.acquireToken({ | ||
return await nativeInteractionClient.acquireToken({ | ||
...validRequest, | ||
@@ -345,0 +345,0 @@ state: userRequestState, |
@@ -257,3 +257,3 @@ /* | ||
); | ||
return this.handleResponse( | ||
return await this.handleResponse( | ||
serverParams, | ||
@@ -317,3 +317,3 @@ serverTelemetryManager | ||
if (!processHashOnRedirect) { | ||
return this.handleResponse( | ||
return await this.handleResponse( | ||
serverParams, | ||
@@ -488,3 +488,3 @@ serverTelemetryManager | ||
); | ||
return await interactionHandler.handleCodeResponse(serverParams, state); | ||
return interactionHandler.handleCodeResponse(serverParams, state); | ||
} | ||
@@ -491,0 +491,0 @@ |
@@ -117,3 +117,3 @@ /* | ||
// Handle auth code parameters from request | ||
return invokeAsync( | ||
return await invokeAsync( | ||
interactionHandler.handleCodeResponseFromServer.bind( | ||
@@ -120,0 +120,0 @@ interactionHandler |
@@ -322,3 +322,3 @@ /* | ||
); | ||
return await invokeAsync( | ||
return invokeAsync( | ||
AuthorityFactory.createDiscoveredInstance.bind(AuthorityFactory), | ||
@@ -325,0 +325,0 @@ PerformanceEvents.AuthorityFactoryCreateDiscoveredInstance, |
@@ -43,3 +43,3 @@ /* | ||
if (navigateFrameWait) { | ||
return await invokeAsync( | ||
return invokeAsync( | ||
loadFrame, | ||
@@ -207,3 +207,3 @@ PerformanceEvents.SilentHandlerLoadFrame, | ||
); | ||
document.getElementsByTagName("body")[0].appendChild(authFrame); | ||
document.body.appendChild(authFrame); | ||
@@ -210,0 +210,0 @@ return authFrame; |
@@ -6,6 +6,7 @@ /* | ||
export type AuthBridgeResponse = string | { data: string }; | ||
export interface AuthBridge { | ||
addEventListener: ( | ||
eventName: string, | ||
callback: (response: string) => void | ||
callback: (response: AuthBridgeResponse) => void | ||
) => void; | ||
@@ -15,4 +16,4 @@ postMessage: (message: string) => void; | ||
eventName: string, | ||
callback: (response: string) => void | ||
callback: (response: AuthBridgeResponse) => void | ||
) => void; | ||
} |
@@ -12,3 +12,3 @@ /* | ||
} from "./AccountRequests"; | ||
import { AuthBridge } from "./AuthBridge"; | ||
import { AuthBridge, AuthBridgeResponse } from "./AuthBridge"; | ||
import { BridgeCapabilities } from "./BridgeCapabilities"; | ||
@@ -64,5 +64,7 @@ import { BridgeRequest } from "./BridgeRequest"; | ||
"message", | ||
(response: string) => { | ||
(response: AuthBridgeResponse) => { | ||
const responsePayload = | ||
typeof response === "string" ? response : response.data; | ||
const responseEnvelope: BridgeResponseEnvelope = | ||
JSON.parse(response); | ||
JSON.parse(responsePayload); | ||
const request = BridgeProxy.bridgeRequests.find( | ||
@@ -106,3 +108,3 @@ (element) => | ||
return promise; | ||
return await promise; | ||
} catch (error) { | ||
@@ -109,0 +111,0 @@ window.console.log(error); |
/* eslint-disable header/header */ | ||
export const name = "@azure/msal-browser"; | ||
export const version = "3.5.1-beta.1"; | ||
export const version = "3.6.0"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5441273
68788
1
27
+ Added@azure/msal-common@14.5.0(transitive)
- Removed@azure/msal-common@14.4.1-beta.1(transitive)
Updated@azure/msal-common@14.5.0