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

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