-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[msal-node] Cache-3: Add NodeStorage, token generation and separate SPAresponse #1519
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
[msal-node] Cache-3: Add NodeStorage, token generation and separate SPAresponse #1519
Conversation
…l generation code
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 this could be split into two PRs. Also, are there tests you can add?
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.
Overall looks good! Good progress, a couple of comments.
lib/msal-common/src/unifiedCache/generator/TokenCacheGenerator.ts
Outdated
Show resolved
Hide resolved
lib/msal-common/src/unifiedCache/generator/TokenCacheGenerator.ts
Outdated
Show resolved
Hide resolved
lib/msal-common/src/unifiedCache/generator/TokenCacheGenerator.ts
Outdated
Show resolved
Hide resolved
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.
A couple questions, but overall should be ok.
[msal-node] Cache-5: Msal node cache additional changes for end-to-end cache to work
[msal-node] Cache-4: ResponseHandler added to `msal-common`
This PR is third in the series of cache PRs. Since I am breaking down a bigger PR into consumable chunks, this may not work end to end but does the following changes:
NodeStorage
with two new base APIs to read and write to external cacheNodeCacheManager
created on request from AzureSDK which will soon morph intokeytar
hook and eventually the extension libraryUnifiedCacheManager
, currently does getAccounts and adds credentials to cache. This file will expand in future for cache lookups.TokenGenerator
to generate the token entities from response dataSPAResponseHandler
for now ; this will fold to a single file inmsal-common
soonTests:
Tests are coming, they are 80% there, need a few more