Skip to content
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

Vermadhr/keyless access work #23554

Merged
merged 70 commits into from
Jan 15, 2025

Conversation

dhr-verma
Copy link
Contributor

Description

This PR adds a fix for a bug introduced in #23407. #23407 removed internal getKey API calls. However, the alternative to sign tokens by Riddler was not working for cases where we spoof user tokens (Scribe -> Alfred, Scribe -> Historian). This is because the token after expiry was never refreshed.

This PR fixes this by adding a new callback to the BasicRestWrapper - refreshTokenIfNeeded. This callback can handle refreshing auth tokens if provided.

Breaking Changes

This change should not have breaking changes.

Reviewer Guidance

  1. Unit testing
  2. Code changes that refresh auth tokens in the new callback.

@dhr-verma dhr-verma requested review from Copilot, znewton and pradeepvairamani and removed request for Copilot January 14, 2025 23:55
@github-actions github-actions bot added area: server Server related issues (routerlicious) public api change Changes to a public API labels Jan 14, 2025
@dhr-verma dhr-verma requested a review from zhangxin511 January 14, 2025 23:55
@github-actions github-actions bot added the base: main PRs targeted against main branch label Jan 14, 2025
@dhr-verma dhr-verma requested a review from manishgargd January 15, 2025 00:05
@dhr-verma dhr-verma merged commit b947c9c into microsoft:main Jan 15, 2025
28 checks passed
@dhr-verma dhr-verma mentioned this pull request Jan 15, 2025
dhr-verma added a commit that referenced this pull request Jan 15, 2025
## Description

Bumped r11 pacakges to consume changes from
#23554

---------

Co-authored-by: Alex Villarreal <716334+alexvy86@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: server Server related issues (routerlicious) base: main PRs targeted against main branch public api change Changes to a public API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants