-
Notifications
You must be signed in to change notification settings - Fork 16.2k
refactor: session.clearAuthCache nws13n #17970
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
Conversation
Do not merge yet, I want to understand if it's actually OK to remove these APIs. (& land the deprecation first.) |
Landing this because we're going to have to figure out some way of moving this function to the network service before 7-0-x lands, so if we need to do more to support pre-existing use cases, we can build on top of this change :) |
Release Notes Persisted
|
The network service APIs do not support the fine-grained clearing of the auth cache. In preparation for switching to the network service in 7.x, log a warning that the options argument is deprecated. Ref #17970. This might not be quite right as we could also potentially expose the new options that are available: namely, start and end time. #17970 does not expose those options, but it would in theory be possible to support them with the existing network service APIs. The current options object does not offer time-based cache clearing.
@nornagon - is there are a 'new' way to clear the cache for a specific |
@HeikoH Sadly, the underlying API does not support filtering by origin. Can you say more about your use case? |
We're connecting to various back-ends that need to be authenticated with using PKI certificates, potentially multiple/different ones. Currently we also allow users to un-authenticate with individual endpoints, which currently uses |
Description of Change
Refactor session.clearAuthCache to use the network service. This results in losing the ability to filter what is cleared; we should deprecate this in 6-0-x.
BREAKING CHANGE
Checklist
npm test
passesRelease Notes
Notes: session.clearAuthCache no longer allows filtering the cleared cache entries.