@@ -686,7 +686,7 @@ public UserAccess GetUserAccess(CloudIdentity identity, bool forceCacheRefresh =
686686 if ( rackspaceCloudIdentity == null )
687687 rackspaceCloudIdentity = new RackspaceCloudIdentity ( identity ) ;
688688
689- var userAccess = _userAccessCache . Get ( string . Format ( "{0}" , rackspaceCloudIdentity . Username ) , ( ) =>
689+ var userAccess = _userAccessCache . Get ( string . Format ( "{0}/{1}" , rackspaceCloudIdentity . Domain , rackspaceCloudIdentity . Username ) , ( ) =>
690690 {
691691 var auth = new AuthRequest ( identity ) ;
692692 var response = ExecuteRESTRequest < AuthenticationResponse > ( identity , new Uri ( _urlBase , "/v2.0/tokens" ) , HttpMethod . POST , auth , isTokenRequest : true ) ;
@@ -723,7 +723,7 @@ public UserAccess Impersonate(RackspaceImpersonationIdentity identity, bool forc
723723 if ( identity == null )
724724 throw new ArgumentNullException ( "identity" ) ;
725725
726- var impToken = _userAccessCache . Get ( string . Format ( "imp/{0}" , identity . UserToImpersonate . Username ) , ( ) => {
726+ var impToken = _userAccessCache . Get ( string . Format ( "imp/{0}/{1}" , identity . UserToImpersonate . Domain , identity . UserToImpersonate . Username ) , ( ) => {
727727 const string urlPath = "/v2.0/RAX-AUTH/impersonation-tokens" ;
728728 var request = BuildImpersonationRequestJson ( urlPath , identity . UserToImpersonate . Username , 600 ) ;
729729 var response = ExecuteRESTRequest < UserImpersonationResponse > ( identity , new Uri ( _urlBase , urlPath ) , HttpMethod . POST , request ) ;
0 commit comments