Adobe Experience Manager for Sign-on and registration

Has anyone incorporated sign-on and new user registration with Adobe Experience Manager (AEM)? If so, did you incorporate Okta’s Widget or did you perform these tasks through the API? If you could send me a snippet of the code used to perform either or both operations, that would be appreciated.