added support for External authentication method