Firs version of auth-plugin, not yet usable