If you simply need to authenticate users using Active Directory I’d recommend that you use built-in LdapAuthProvider: Basic LDAP Integration - CUBA Platform. Developer’s Manual If this integration is not enough for you please share your requirements.