/// <summary>
        /// See if we already have an access token cache for the user, otherwise create a new one.
        /// </summary>
        /// <param name="token"></param>
        /// <returns></returns>
        public static AccessTokens AccessTokensForToken(OpenIdToken token)
        {
            AccessTokens value;
            if (!GlobalTokenCache.TryGetValue(token.UserId, out value) || null == value)
            {
                // Create a new one and add to cache
                value = new AccessTokens(token);
                GlobalTokenCache[token.UserId] = value;
            }

            return value;
        }
        /// <summary>
        /// See if we already have an access token cache for the user, otherwise create a new one.
        /// </summary>
        /// <param name="token"></param>
        /// <returns></returns>
        public static AccessTokens AccessTokensForToken(OpenIdToken token)
        {
            AccessTokens value;

            if (!GlobalTokenCache.TryGetValue(token.UserId, out value) || null == value)
            {
                // Create a new one and add to cache
                value = new AccessTokens(token);
                GlobalTokenCache[token.UserId] = value;
            }

            return(value);
        }
 public AccessTokens(OpenIdToken openId)
 {
     this.OpenId = openId;
     this.KnownAccessTokens = new Dictionary<string, CachedAccessToken>();
 }
 public AccessTokens(OpenIdToken openId)
 {
     this.OpenId            = openId;
     this.KnownAccessTokens = new Dictionary <string, CachedAccessToken>();
 }