Skip to content

Pass storage account scope to GetToken in Build command - #1925

Merged
lbussell merged 1 commit into
dotnet:mainfrom
lbussell:fix-storage-auth
Jan 12, 2026
Merged

lbussell merged 1 commit into
dotnet:mainfrom
lbussell:fix-storage-auth

Conversation

@lbussell

Copy link
Copy Markdown
Member

During release staging, authentication to the staging storage account was failing.

This is because of the changes to token caching from #1879. Previously we needed to pass the token scope as an argument to the GetCredential() method, since that method would create both the credential and the token in order to cache the token up front. But the scope is only needed to create the token. Since we no longer cache the token, we need to pass in the scope to the credential's GetToken method instead. The scope argument to GetCredential() is not used.

This is a targeted fix to unblock release staging. A follow-up PR will contain a proper refactor to remove the unused argument from TokenCredentialProvider.GetCredential.

@lbussell
lbussell requested a review from a team as a code owner January 12, 2026 17:02
@lbussell
lbussell enabled auto-merge (squash) January 12, 2026 17:35
@lbussell
lbussell merged commit ee3d9c8 into dotnet:main Jan 12, 2026
12 checks passed
@lbussell
lbussell deleted the fix-storage-auth branch January 12, 2026 18:54
lbussell added a commit that referenced this pull request Jan 14, 2026
Follow up to #1925 (the
context is in that PR's description).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants