X-Git-Url: https://git.sesse.net/?p=letsencrypt-varnish-plugin;a=blobdiff_plain;f=varnish.py;h=1f6a05c093bbbfa8336e2df2c28a9cbed862c877;hp=87abf22f9bd75c568f9e7ae7f82116cb3d0b69b3;hb=93338ffe5c13a961ca432e991af1f693554418a6;hpb=1d8358aa25ad6ef6ff545fb78a39407224de38eb diff --git a/varnish.py b/varnish.py index 87abf22..1f6a05c 100644 --- a/varnish.py +++ b/varnish.py @@ -6,6 +6,7 @@ import subprocess import zope.component import zope.interface +from zope.interface import implementer, provider from acme import challenges @@ -23,9 +24,9 @@ def vcl_recv_line(achall): def vcl_synth_line(validation): return 'if (resp.status == 999) { set resp.status = 200; set resp.http.Content-Type = "text/plain"; synthetic("%s"); return (deliver); } # Added by letsencrypt Varnish plugin for authentication\n' % (validation); +@implementer(interfaces.IAuthenticator) +@provider(interfaces.IPluginFactory) class Authenticator(common.Plugin): - zope.interface.implements(interfaces.IAuthenticator) - zope.interface.classProvides(interfaces.IPluginFactory) hidden = True description = "Manual configuration, authentication via Varnish VCL"