Skip to content

Commit

Permalink
Merge branch 'custom-loopback-client' of https://github.com/AzureAD/m…
Browse files Browse the repository at this point in the history
…icrosoft-authentication-library-for-js into custom-loopback-client
  • Loading branch information
derisen committed Feb 6, 2023
2 parents f617b2e + 16daeec commit cbd368b
Show file tree
Hide file tree
Showing 143 changed files with 2,343 additions and 876 deletions.
1 change: 1 addition & 0 deletions .github/workflows/msal-node-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
node: [ 14, 16, 18 ]
sample:
- 'auth-code'
- 'client-credentials'
- 'device-code'
- 'silent-flow'
- 'b2c-user-flows'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Update ProtectedResourceScopes type to allow unprotected resource for concrete request type (#5563)",
"packageName": "@azure/msal-angular",
"email": "milos.buda@hotmail.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "Add JS Queue Measurements to acquireTokenSilent #5352",
"packageName": "@azure/msal-browser",
"email": "joarroyo@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Removed tokenQueryParameters from Public Client flows because they don't use the /token endpoint. #5573",
"packageName": "@azure/msal-browser",
"email": "rginsburg@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Export browser telemetry classes #5641",
"packageName": "@azure/msal-browser",
"email": "kshabelko@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "proxyUrl is now passed to msal-node's httpClient via it's constructor #5599",
"packageName": "@azure/msal-browser",
"email": "rginsburg@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Revert typo changes #5582",
"packageName": "@azure/msal-browser",
"email": "joarroyo@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "minor",
"comment": "Adding page visibility change event for silent calls like AcquireTokenSilent #5555",
"comment": "Track manually completed sub-measurements #5614",
"packageName": "@azure/msal-common",
"email": "kshabelko@microsoft.com",
"dependentChangeType": "patch"
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "tokenQueryParameters are now sent to the /token endpoint for all Confidential Client flows #5573",
"packageName": "@azure/msal-common",
"email": "rginsburg@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Update discardCache in PerformanceClient #5645",
"packageName": "@azure/msal-common",
"email": "joarroyo@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "major",
"comment": "proxyUrl is now passed to msal-node's httpClient via it's constructor #5599",
"packageName": "@azure/msal-common",
"email": "rginsburg@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "Add JS Queue Measurements #5352",
"packageName": "@azure/msal-common",
"email": "joarroyo@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "patch",
"comment": "- Remove `lookBehind` regex as not compatible with Safari browser. #5551",
"comment": "Optimize credential regular expressions #5621",
"packageName": "@azure/msal-common",
"email": "kshabelko@microsoft.com",
"dependentChangeType": "patch"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "Truncate integral telemetry fields #5627",
"packageName": "@azure/msal-common",
"email": "kshabelko@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Added missing fields to InteractionRequiredAuthError #5566",
"packageName": "@azure/msal-common",
"email": "rginsburg@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "proxyUrl is now passed to msal-node's httpClient via it's constructor #5599",
"packageName": "@azure/msal-node",
"email": "rginsburg@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "Add support for custom http(s) agents #5472",
"packageName": "@azure/msal-node",
"email": "rginsburg@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "tokenQueryParameters are now sent to the /token endpoint for all Confidential Client flows #5573",
"packageName": "@azure/msal-node",
"email": "rginsburg@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Add Logging options to IPersistenceConfiguration #5626",
"packageName": "@azure/msal-node-extensions",
"email": "fredrik.rasch@gmail.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Include packageMetadata in bundle #5638",
"packageName": "@azure/msal-node-extensions",
"email": "thomas.norling@microsoft.com",
"dependentChangeType": "patch"
}
12 changes: 6 additions & 6 deletions extensions/msal-node-extensions/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions extensions/msal-node-extensions/src/packageMetadata.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/* eslint-disable header/header */
export const name = "@azure/msal-node-extensions";
export const version = "1.0.0-alpha.29";
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Licensed under the MIT License.
*/

import type { LoggerOptions } from "@azure/msal-common";

import { DataProtectionScope } from "./DataProtectionScope";

export interface IPersistenceConfiguration {
Expand All @@ -11,4 +13,5 @@ export interface IPersistenceConfiguration {
serviceName?: string,
accountName?: string,
usePlaintextFileOnLinux?: boolean,
loggerOptions?: LoggerOptions;
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class PersistenceCreator {
"Cache path and/or data protection scope not provided for the FilePersistenceWithDataProtection cache plugin");
}

peristence = await FilePersistenceWithDataProtection.create(config.cachePath, DataProtectionScope.CurrentUser);
peristence = await FilePersistenceWithDataProtection.create(config.cachePath, DataProtectionScope.CurrentUser, undefined, config.loggerOptions);
}

// On Mac, uses keychain.
Expand All @@ -34,7 +34,7 @@ export class PersistenceCreator {
"Cache path, service name and/or account name not provided for the KeychainPersistence cache plugin");
}

peristence = await KeychainPersistence.create(config.cachePath, config.serviceName, config.accountName);
peristence = await KeychainPersistence.create(config.cachePath, config.serviceName, config.accountName, config.loggerOptions);
}

// On Linux, uses libsecret to store to secret service. Libsecret has to be installed.
Expand All @@ -44,7 +44,7 @@ export class PersistenceCreator {
"Cache path, service name and/or account name not provided for the LibSecretPersistence cache plugin");
}

peristence = await LibSecretPersistence.create(config.cachePath, config.serviceName, config.accountName);
peristence = await LibSecretPersistence.create(config.cachePath, config.serviceName, config.accountName, config.loggerOptions);
}

else {
Expand All @@ -54,15 +54,15 @@ export class PersistenceCreator {

// Initially suppress the error thrown during persistence verification to allow us to fallback to plain text
const isPersistenceVerified = await peristence.verifyPersistence().catch(() => false);

if (!isPersistenceVerified) {
if (Environment.isLinuxPlatform() && config.usePlaintextFileOnLinux) {
if (!config.cachePath) {
throw PersistenceError.createPersistenceNotValidatedError(
"Cache path not provided for the FilePersistence cache plugin");
}

peristence = await FilePersistence.create(config.cachePath);
peristence = await FilePersistence.create(config.cachePath, config.loggerOptions);

const isFilePersistenceVerified = await peristence.verifyPersistence();
if (isFilePersistenceVerified) {
Expand Down
7 changes: 6 additions & 1 deletion extensions/msal-node-extensions/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,10 @@
},
"jsx": "react",
"esModuleInterop": true
}
},
"references": [
{
"path": "../../lib/msal-common"
}
]
}
3 changes: 2 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"@azure/msal-common",
"@azure/msal-node",
"@azure/msal-react",
"@azure/msal-angular"
"@azure/msal-angular",
"@azure/msal-node-extensions"
],
"stream": true
}
Expand Down
23 changes: 13 additions & 10 deletions lib/msal-angular/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/msal-angular/src/msal.interceptor.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type MsalInterceptorConfiguration = {

export type ProtectedResourceScopes = {
httpMethod: string,
scopes: Array<string>
scopes: Array<string> | null
};

export type MatchingResources = {
Expand Down
12 changes: 6 additions & 6 deletions lib/msal-browser/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cbd368b

Please sign in to comment.