backported auth plugins from dev branch