X-Git-Url: https://git.sesse.net/?p=letsencrypt-varnish-plugin;a=blobdiff_plain;f=varnish.py;h=1f6a05c093bbbfa8336e2df2c28a9cbed862c877;hp=87abf22f9bd75c568f9e7ae7f82116cb3d0b69b3;hb=c9f60e8e3523049dd094b71d642a563015f1d2be;hpb=f282688a47568c825ddf3c68fa3b6c62b7c48d5a 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"