Ejemplo n.º 1
0
        public static string HardcodedDemo()
        {
            var cert = new X509Certificate2(Convert.FromBase64String(demo_certBase64));
            var exo  = new ExoCertAuthN(demo_appId, demo_organization, cert);

            var(err, result) = exo.InMemoryPfxAuthN();
            return(result);
        }
Ejemplo n.º 2
0
        static async Task Main(string[] args)
        {
            // TestOutputPsVersionTable();
            // TestSimpleAuthN();

            X509Certificate2 cert = null;

            // cert = await TestGetCertFromKeyVault();

            cert = new X509Certificate2(File.ReadAllBytes(onDiskPfxLocation), pfxPassword);

            var exo = new ExoCertAuthN(appId,
                                       organization,
                                       cert);

            // var (err1, result1) = exo.InMemoryPfxRunspacePool();

            var(err, result) = exo.InMemoryPfxAuthN();
            Console.WriteLine(result);
        }