Permalink
Browse files

Fix for 2029 - ensure that new access tokens are used when subscripti…

…on is updated
  • Loading branch information...
1 parent a10c294 commit 42e2b15e73eba4bae46422a21b0e813261c5f417 @christav christav committed Oct 17, 2013
@@ -134,6 +134,10 @@ public void Update(WindowsAzureSubscription newSubscription)
ActiveDirectoryUserId = newSubscription.ActiveDirectoryUserId ??
ActiveDirectoryUserId;
+ // Wipe out current access token - it will be reloaded from
+ // token provider when needed to get new access/refresh tokens
+ accessToken = null;
+
// Certificate - if present in new take it, else preserve
Certificate = newSubscription.Certificate ??
Certificate;

0 comments on commit 42e2b15

Please sign in to comment.