-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[core-rest-pipeline] expose tokenCycler #15294
Conversation
So that other libraries can re-use its auto-refreshing mechanism.
Opening PR for discussion. I don't like to expose these from core-rest-pipeline and prefer keeping a copy for ACR now until more libraries have similar need.
|
So I definitely think cycler shouldn't be in I wonder if |
Just as a word of caution, the reason the token cycler exists in the first place is that we had a lot of difficulty modifying the original OOP bearer token policy because it was public, and so I rewrote the policy implementation from scratch. If there's a need to refactor the token cycler into a more robust set of abstractions and move it into a separate package, then we can do that, but it will mean committing to the design. CC @sadasant |
@xirzec If it's used by policies in core-rest-pipeline (like I'll also add that there's an open PR with some proposed changes to the cycler: #15120 |
The ACR specific refresh token caching also needs which is why I have a slightly different copy of cycler in ACR. It is also planned to merge |
@jeremymeng Is this still applicable? |
An issue is probably better place for this discussion. Logged #15678 |
So that other libraries can re-use its auto-refreshing mechanism.