Added Basic Authentication support to plugin