@azure/msal-common
Advanced tools
Comparing version 1.6.3 to 1.7.0
@@ -5,2 +5,45 @@ { | ||
{ | ||
"date": "Sat, 07 Nov 2020 01:50:14 GMT", | ||
"tag": "@azure/msal-common_v1.7.0", | ||
"version": "1.7.0", | ||
"comments": { | ||
"patch": [ | ||
{ | ||
"comment": "Mandate localAccount in AccountInfo", | ||
"author": "sameera.gajjarapu@microsoft.com", | ||
"commit": "ee770fc1f4ed1ef9e53b28a18487e9b7686ffa64", | ||
"package": "@azure/msal-common" | ||
}, | ||
{ | ||
"comment": "Filtered lookup of IdTokens, AppMetadata; Error handling in Node Storage (#2530)", | ||
"author": "sameera.gajjarapu@microsoft.com", | ||
"commit": "354dd86449d792b7369fb240c5e2cfd70ca73488", | ||
"package": "@azure/msal-common" | ||
} | ||
], | ||
"none": [ | ||
{ | ||
"comment": "Build Pipeline Changes (#2406)", | ||
"author": "thomas.norling@microsoft.com", | ||
"commit": "af8459c0d53a4dc2bf495017608c0bb03004d006", | ||
"package": "@azure/msal-common" | ||
} | ||
], | ||
"minor": [ | ||
{ | ||
"comment": "Implement Password Grant Flow (#2204)", | ||
"author": "sameera.gajjarapu@microsoft.com", | ||
"commit": "baf6d157e7bbeae439526aee13eb08962974925b", | ||
"package": "@azure/msal-common" | ||
}, | ||
{ | ||
"comment": "Fixing a bug and adding `localAccountId` in AccountInfo interface (#2516)", | ||
"author": "sameera.gajjarapu@microsoft.com", | ||
"commit": "c2ec3b43f07d9c18eec14e109caddcf7941f50b4", | ||
"package": "@azure/msal-common" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Mon, 26 Oct 2020 21:00:29 GMT", | ||
@@ -7,0 +50,0 @@ "tag": "@azure/msal-common_v1.6.3", |
# Change Log - @azure/msal-common | ||
This log was last generated on Mon, 26 Oct 2020 21:00:29 GMT and should not be manually modified. | ||
This log was last generated on Sat, 07 Nov 2020 01:50:14 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## 1.7.0 | ||
Sat, 07 Nov 2020 01:50:14 GMT | ||
### Minor changes | ||
- Implement Password Grant Flow (#2204) (sameera.gajjarapu@microsoft.com) | ||
- Fixing a bug and adding `localAccountId` in AccountInfo interface (#2516) (sameera.gajjarapu@microsoft.com) | ||
### Patches | ||
- Mandate localAccount in AccountInfo (sameera.gajjarapu@microsoft.com) | ||
- Filtered lookup of IdTokens, AppMetadata; Error handling in Node Storage (#2530) (sameera.gajjarapu@microsoft.com) | ||
## 1.6.3 | ||
@@ -8,0 +22,0 @@ |
@@ -14,3 +14,4 @@ /** | ||
username: string; | ||
localAccountId: string; | ||
name?: string; | ||
}; |
@@ -1,2 +0,2 @@ | ||
import { AccountCache, AccountFilter, CredentialFilter, CredentialCache } from "./utils/CacheTypes"; | ||
import { AccountCache, AccountFilter, CredentialFilter, CredentialCache, AppMetadataFilter, AppMetadataCache } from "./utils/CacheTypes"; | ||
import { CacheRecord } from "./entities/CacheRecord"; | ||
@@ -159,2 +159,13 @@ import { CredentialEntity } from "./entities/CredentialEntity"; | ||
/** | ||
* retrieve appMetadata matching all provided filters; if no filter is set, get all appMetadata | ||
* @param filter | ||
*/ | ||
getAppMetadataFilteredBy(filter: AppMetadataFilter): AppMetadataCache; | ||
/** | ||
* Support function to help match appMetadata | ||
* @param environment | ||
* @param clientId | ||
*/ | ||
private getAppMetadataFilteredByInternal; | ||
/** | ||
* Removes all accounts and related tokens from cache. | ||
@@ -161,0 +172,0 @@ */ |
@@ -5,2 +5,4 @@ import { Authority } from "../../authority/Authority"; | ||
import { AccountInfo } from "../../account/AccountInfo"; | ||
import { AuthorityType } from "../../authority/AuthorityType"; | ||
import { Logger } from "../../logger/Logger"; | ||
/** | ||
@@ -68,3 +70,3 @@ * Type that defines required and optional parameters for an Account field (based on universal cache schema implemented by all MSALs). | ||
*/ | ||
static createAccount(clientInfo: string, authority: Authority, idToken: AuthToken, crypto: ICrypto, oboAssertion?: string): AccountEntity; | ||
static createAccount(clientInfo: string, homeAccountId: string, authority: Authority, idToken: AuthToken, oboAssertion?: string): AccountEntity; | ||
/** | ||
@@ -75,4 +77,10 @@ * Builds non-AAD/ADFS account. | ||
*/ | ||
static createGenericAccount(authority: Authority, idToken: AuthToken, oboAssertion?: string): AccountEntity; | ||
static createGenericAccount(authority: Authority, homeAccountId: string, idToken: AuthToken, oboAssertion?: string): AccountEntity; | ||
/** | ||
* Generate HomeAccountId from server response | ||
* @param serverClientInfo | ||
* @param authType | ||
*/ | ||
static generateHomeAccountId(serverClientInfo: string, authType: AuthorityType, logger: Logger, cryptoObj: ICrypto, idToken?: AuthToken): string; | ||
/** | ||
* Validates an entity: checks for all expected params | ||
@@ -79,0 +87,0 @@ * @param entity |
@@ -59,2 +59,6 @@ import { AuthError } from "./AuthError"; | ||
}; | ||
multipleMatchingAppMetadata: { | ||
code: string; | ||
desc: string; | ||
}; | ||
tokenRequestCannotBeMade: { | ||
@@ -189,12 +193,14 @@ code: string; | ||
/** | ||
* Throws error when multiple tokens are in cache for the given scope. | ||
* @param scope | ||
* Throws error when multiple tokens are in cache. | ||
*/ | ||
static createMultipleMatchingTokensInCacheError(): ClientAuthError; | ||
/** | ||
* Throws error when multiple tokens are in cache for the given scope. | ||
* @param scope | ||
* Throws error when multiple accounts are in cache for the given params | ||
*/ | ||
static createMultipleMatchingAccountsInCacheError(): ClientAuthError; | ||
/** | ||
* Throws error when multiple appMetada are in cache for the given clientId. | ||
*/ | ||
static createMultipleMatchingAppMetadataInCacheError(): ClientAuthError; | ||
/** | ||
* Throws error when no auth code or refresh token is given to ServerTokenRequestParameters. | ||
@@ -201,0 +207,0 @@ */ |
@@ -7,2 +7,3 @@ export { AuthorizationCodeClient } from "./client/AuthorizationCodeClient"; | ||
export { SilentFlowClient } from "./client/SilentFlowClient"; | ||
export { UsernamePasswordClient } from "./client/UsernamePasswordClient"; | ||
export { AuthOptions, SystemOptions, LoggerOptions, DEFAULT_SYSTEM_OPTIONS } from "./config/ClientConfiguration"; | ||
@@ -51,2 +52,3 @@ export { ClientConfiguration } from "./config/ClientConfiguration"; | ||
export { EndSessionRequest } from "./request/EndSessionRequest"; | ||
export { UsernamePasswordRequest } from "./request/UsernamePasswordRequest"; | ||
export { AuthenticationResult } from "./response/AuthenticationResult"; | ||
@@ -53,0 +55,0 @@ export { ServerAuthorizationCodeResponse } from "./response/ServerAuthorizationCodeResponse"; |
@@ -146,2 +146,12 @@ import { ResponseMode } from "../utils/Constants"; | ||
/** | ||
* adds `username` for Password Grant flow | ||
* @param username | ||
*/ | ||
addUsername(username: string): void; | ||
/** | ||
* adds `password` for Password Grant flow | ||
* @param password | ||
*/ | ||
addPassword(password: string): void; | ||
/** | ||
* add pop_jwk to query params | ||
@@ -148,0 +158,0 @@ * @param cnfString |
@@ -21,3 +21,2 @@ import { ServerAuthorizationTokenResponse } from "./ServerAuthorizationTokenResponse"; | ||
private logger; | ||
private clientInfo; | ||
private homeAccountIdentifier; | ||
@@ -24,0 +23,0 @@ private serializableCache; |
@@ -255,1 +255,8 @@ export declare const Constants: { | ||
}; | ||
/** | ||
* Password grant parameters | ||
*/ | ||
export declare enum PasswordGrantConstants { | ||
username = "username", | ||
password = "password" | ||
} |
@@ -13,3 +13,3 @@ { | ||
}, | ||
"version": "1.6.3", | ||
"version": "1.7.0", | ||
"description": "Microsoft Authentication Library for js", | ||
@@ -52,3 +52,3 @@ "keywords": [ | ||
"test": "mocha", | ||
"test:coverage": "nyc --reporter=text mocha --exit", | ||
"test:coverage": "nyc mocha", | ||
"test:coverage:only": "npm run clean:coverage && npm run test:coverage", | ||
@@ -58,2 +58,3 @@ "build:modules": "rollup -c", | ||
"build": "npm run clean && npm run build:modules", | ||
"build:all": "npm run build", | ||
"prepack": "npm run build" | ||
@@ -83,3 +84,3 @@ }, | ||
"mocha": "^6.2.2", | ||
"nyc": "^14.1.1", | ||
"nyc": "^15.0.0", | ||
"rimraf": "^3.0.2", | ||
@@ -86,0 +87,0 @@ "rollup": "^1.24.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1737647
85
19563