Helper class to interface with the CloudFlare API endpoint.
See https://api.cloudflare.com/#getting-started-endpoints for more details.
 public void Handle(Challenge c)
 {
     AssertNotDisposed();
     DnsChallenge challenge = (DnsChallenge)c;
     var helper = new CloudFlareHelper(AuthKey, EmailAddress, DomainName);
     helper.AddOrUpdateDnsRecord(challenge.RecordName, GetCleanedRecordValue(challenge.RecordValue));
 }
 public void CleanUp(Challenge c)
 {
     AssertNotDisposed();
     DnsChallenge challenge = (DnsChallenge)c;
     var helper = new CloudFlareHelper(AuthKey, EmailAddress, DomainName);
     helper.DeleteDnsRecord(challenge.RecordName);
 }
        public void CleanUp(Challenge c)
        {
            AssertNotDisposed();
            DnsChallenge challenge = (DnsChallenge)c;
            var          helper    = new CloudFlareHelper(AuthKey, EmailAddress, DomainName);

            helper.DeleteDnsRecord(challenge.RecordName);
        }
        public void Handle(Challenge c)
        {
            AssertNotDisposed();
            DnsChallenge challenge = (DnsChallenge)c;
            var          helper    = new CloudFlareHelper(AuthKey, EmailAddress, DomainName);

            helper.AddOrUpdateDnsRecord(challenge.RecordName, GetCleanedRecordValue(challenge.RecordValue));
        }
Пример #5
0
        public void CleanUp(ChallengeHandlingContext ctx)
        {
            AssertNotDisposed();
            DnsChallenge challenge = (DnsChallenge)ctx.Challenge;
            var          helper    = new CloudFlareHelper(AuthKey, EmailAddress, DomainName);

            helper.DeleteDnsRecord(challenge.RecordName);

            ctx.Out.WriteLine("DNS record deleted of type [TXT] with name [{0}]", challenge.RecordName);
        }
Пример #6
0
        public void Handle(ChallengeHandlingContext ctx)
        {
            AssertNotDisposed();
            DnsChallenge challenge = (DnsChallenge)ctx.Challenge;
            var          helper    = new CloudFlareHelper(AuthKey, EmailAddress, DomainName);

            helper.AddOrUpdateDnsRecord(challenge.RecordName, GetCleanedRecordValue(challenge.RecordValue));

            ctx.Out.WriteLine("DNS record created of type [TXT] with name [{0}]", challenge.RecordName);
        }