Skip to content

Commit

Permalink
[Storage] Refine track2 OAuth context logic (Azure#25954)
Browse files Browse the repository at this point in the history
* refine track2 oauth context logic

* add changelog

---------

Co-authored-by: Jin Lei <54836179+msJinLei@users.noreply.github.com>
  • Loading branch information
yifanz7 and msJinLei authored Aug 29, 2024
1 parent 599b64c commit 0a0f8d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Storage/Storage.Management/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
* Updated Storage account cmdlet output context based on OAuth token

## Version 7.3.0
* Supported account tier Cold
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ public override AzureSessionCredential Track2OauthToken {
{
if (_track2OauthToken == null)
{
_track2OauthToken = _track2OAuthTokenFactory();
if (_track2OAuthTokenFactory == null)
{
return null;
}
_track2OauthToken = _track2OAuthTokenFactory();
return _track2OauthToken;
}
return _track2OauthToken;
Expand Down

0 comments on commit 0a0f8d7

Please sign in to comment.