AuthenticationFactory implementation

Fix usings