Esempio n. 1
0
        static Authentication()
        {
            var baw = SerializationHelper.ReadFromFile <ByteArrayWrapper>(TokenCacheFileName);

            _tokenCache = new TokenCache();
            _tokenCache.DeserializeAdalV3(baw.theBytes);
        }
Esempio n. 2
0
 public AuthenticationDelegatingHandler()
     : base(new HttpClientHandler())
 {
     TenantLookup = SerializationHelper.ReadFromFile <Dictionary <string, string> >(TenantLookupFileName);
 }
Esempio n. 3
0
 public static EnclaveInfo CreateFromFile(string filePath)
 {
     return(SerializationHelper.ReadFromFile <EnclaveInfo>(filePath));
 }
Esempio n. 4
0
 static Authentication()
 {
     AcceleratedCache = SerializationHelper.ReadFromFile <Dictionary <string, string> >(AcceleratedTokenCacheFileName);
 }