-
Notifications
You must be signed in to change notification settings - Fork 353
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
Cache key extensibility for MSAL #5107
Conversation
Just need to update tests a little bit |
src/client/Microsoft.Identity.Client/Cache/Items/MsalAccessTokenCacheItem.cs
Show resolved
Hide resolved
...icrosoft.Identity.Client/ApiConfig/AbstractConfidentialClientAcquireTokenParameterBuilder.cs
Outdated
Show resolved
Hide resolved
src/client/Microsoft.Identity.Client/ApiConfig/AcquireTokenForClientParameterBuilder.cs
Outdated
Show resolved
Hide resolved
src/client/Microsoft.Identity.Client/ApiConfig/AcquireTokenForClientParameterBuilder.cs
Outdated
Show resolved
Hide resolved
src/client/Microsoft.Identity.Client/Cache/Items/MsalAccessTokenCacheItem.cs
Show resolved
Hide resolved
src/client/Microsoft.Identity.Client/Cache/Items/MsalAccessTokenCacheItem.cs
Show resolved
Hide resolved
src/client/Microsoft.Identity.Client/Cache/Items/MsalAccessTokenCacheItem.cs
Outdated
Show resolved
Hide resolved
src/client/Microsoft.Identity.Client/ApiConfig/AcquireTokenForClientParameterBuilder.cs
Outdated
Show resolved
Hide resolved
src/client/Microsoft.Identity.Client/Utils/CollectionHelpers.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Identity.Test.Unit/PublicApiTests/CacheKeyExtensionTests.cs
Show resolved
Hide resolved
tests/Microsoft.Identity.Test.Unit/PublicApiTests/CacheKeyExtensionTests.cs
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.
Cache keys are not correct.
src/client/Microsoft.Identity.Client/Extensibility/AcquireTokenForClientBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Identity.Test.Unit/PublicApiTests/CacheKeyExtensionTests.cs
Outdated
Show resolved
Hide resolved
src/client/Microsoft.Identity.Client/Cache/Items/MsalAccessTokenCacheItem.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Gladwin Johnson <90415114+gladjohn@users.noreply.github.com>
…nsionTests.cs Co-authored-by: Gladwin Johnson <90415114+gladjohn@users.noreply.github.com>
clean up. refactoring
src/client/Microsoft.Identity.Client/AppConfig/ApplicationConfiguration.cs
Outdated
Show resolved
Hide resolved
src/client/Microsoft.Identity.Client/ApiConfig/Parameters/AcquireTokenCommonParameters.cs
Outdated
Show resolved
Hide resolved
src/client/Microsoft.Identity.Client/Cache/StorageJsonValues.cs
Outdated
Show resolved
Hide resolved
src/client/Microsoft.Identity.Client/Cache/Items/MsalAccessTokenCacheItem.cs
Outdated
Show resolved
Hide resolved
src/client/Microsoft.Identity.Client/Extensibility/AcquireTokenForClientBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
src/client/Microsoft.Identity.Client/Extensibility/AcquireTokenForClientBuilderExtensions.cs
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.
LGTM, 1 minor comment.
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.
looks good @trwalke
I do not see any explicit tests ensuring that app developers cannot add standard keys (e.g. "client_id", "tenant_id") to AdditionalCacheKeyComponents
. Can that be added?
Adding tests
Fixes #
Implementation of #5091
Changes proposed in this request
Enabling MSAL to associate cache key components with cache items (Access tokens only) for later retrival.
Cache components are used when filtering the cache for tokens
Testing
Unit tests
Performance impact
Documentation