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

enable updating current credentials #1424

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

demoray
Copy link
Contributor

@demoray demoray commented Sep 27, 2023

This PR allows replacing credential details for existing StorageCredential instances. This allows clients to update the credentials as runtime, as seen in other SDKs.

Under the hood, StorageCredentialInner is kept behind an Arc<Mutex<_>>, which allows us to lock access to the

Ref: azure-sdk-for-net's AzureSasCredential.Update

This PR allows replacing credential details for existing
StorageCredential instances.  This allows clients to update the
credentials as runtime, as seen in other SDKs.

Ref: azure-sdk-for-net's [AzureSasCredential.Update](https://learn.microsoft.com/en-us/dotnet/api/azure.azuresascredential.update?view=azure-dotnet#azure-azuresascredential-update(system-string))
@demoray demoray linked an issue Sep 27, 2023 that may be closed by this pull request
@demoray demoray merged commit 93f069e into Azure:main Sep 28, 2023
19 checks passed
@demoray demoray deleted the enable-updating-storage-credentials branch September 28, 2023 12:52
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.

[Feature] Allow updating SAS token on existing storage client
2 participants