Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose response handler and update attributes' access modifiers #6284

Closed
wants to merge 2 commits into from

Conversation

konstantin-msft
Copy link
Collaborator

  • Make ResponseHandler attributes protected for extendability.
  • Add optional "clientId" param to generateCacheRecord.
  • Expose "CacheRecord" and "ResponseHandler" as part of msal-browser "internals".

@github-actions github-actions bot added msal-browser Related to msal-browser package msal-common Related to msal-common package labels Aug 2, 2023
@codecov-commenter
Copy link

codecov-commenter commented Aug 2, 2023

Codecov Report

Merging #6284 (bfe94af) into dev (81d34b4) will decrease coverage by 1.97%.
Report is 227 commits behind head on dev.
The diff coverage is 67.42%.

Flag Coverage Δ
msal-angular 96.73% <92.78%> (+0.22%) ⬆️
msal-browser 85.56% <ø> (-0.91%) ⬇️
msal-common 82.92% <ø> (-1.63%) ⬇️
msal-core ?
msal-node 79.29% <ø> (-4.10%) ⬇️
msal-node-extensions 68.51% <60.77%> (-7.13%) ⬇️
msal-react 94.24% <ø> (-0.45%) ⬇️
node-token-validation ?
Files Changed Coverage Δ
...ions/msal-node-extensions/src/utils/Environment.ts 20.51% <0.00%> (-22.08%) ⬇️
lib/msal-angular/src/msal.interceptor.ts 100.00% <ø> (ø)
lib/msal-angular/src/msal.module.ts 100.00% <ø> (ø)
lib/msal-angular/src/msal.navigation.client.ts 93.33% <ø> (+0.47%) ⬆️
lib/msal-angular/src/msal.redirect.component.ts 100.00% <ø> (ø)
lib/msal-angular/src/msal.service.ts 100.00% <ø> (ø)
lib/msal-angular/src/packageMetadata.ts 100.00% <ø> (ø)
...b/msal-browser/src/app/IPublicClientApplication.ts 42.42% <ø> (-1.33%) ⬇️
...ib/msal-browser/src/app/PublicClientApplication.ts 67.44% <ø> (-27.89%) ⬇️
...er/src/broker/nativeBroker/NativeMessageHandler.ts 86.29% <ø> (+0.33%) ⬆️
... and 64 more

... and 167 files with indirect coverage changes

- Add optional "clientId" param to generateCacheRecord.
- Expose "CacheRecord" and "ResponseHandler" as part of msal-browser "internals".
@@ -24,6 +25,7 @@ export { NativeInteractionClient } from "./interaction_client/NativeInteractionC
export { RedirectHandler } from "./interaction_handler/RedirectHandler";
export { EventHandler } from "./event/EventHandler";
export { NativeMessageHandler } from "./broker/nativeBroker/NativeMessageHandler";
export { ResponseHandler } from "@azure/msal-common";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this to avoid common exports in the future?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really want to add new stuff to internals, let's instead focus on what we need to do to remove internals all-up

private persistencePlugin: ICachePlugin | null;
private performanceClient?: IPerformanceClient;
private readonly clientId: string;
protected readonly cacheStorage: CacheManager;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can avoid this with the cache changes made by Thomas.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah none of this should be needed. I understand this may be a stopgap but all of this will be superseded by the 1P changes and we'll then have to revert all of this again. Would prefer to just hold out until the 1P changes are done

private performanceClient?: IPerformanceClient;
private readonly clientId: string;
protected readonly cacheStorage: CacheManager;
protected readonly cryptoObj: ICrypto;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, if logger and crypto are available. Let us check on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
msal-browser Related to msal-browser package msal-common Related to msal-common package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants