Permalink
Browse files

Merge pull request #2034 from christav/fix-access-token-renewal-2029

Fix for 2029 - ensure that new access tokens are used when subscription is updated.
  • Loading branch information...
2 parents 19b2400 + 42e2b15 commit b35c2d95b888508ddacd8fcaf004d535a62c4203 @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 b35c2d9

Please sign in to comment.