-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Conversation
konstantin-msft
commented
Aug 2, 2023
- Make ResponseHandler attributes protected for extendability.
- Add optional "clientId" param to generateCacheRecord.
- Expose "CacheRecord" and "ResponseHandler" as part of msal-browser "internals".
8982e31
to
f15f496
Compare
Codecov Report
|
- Add optional "clientId" param to generateCacheRecord. - Expose "CacheRecord" and "ResponseHandler" as part of msal-browser "internals".
30d0842
to
bfe94af
Compare
@@ -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"; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.