How to login into AEM with user information stored in Relational Database or Mongo DB? | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
edubey
edubeyAccepted solution
Level 10
Nov 23, 2017 5:39 AM UTC

Assuming you can access to that DB from AEM (via java) you should be achieve it via custom auth handler

Here is the sling doc: Apache Sling :: Form Based AuthenticationHandler

                                    Apache Sling :: Authentication - AuthenticationHandler

Here is the sample code: acs-aem-samples/SampleLoginHookAuthenticationHandler.java at aem6.3 · Adobe-Consulting-Services/acs-aem-samples · GitHub

2 replies

edubey
edubeyAccepted solution
Level 10
Nov 23, 2017 5:39 AM UTC

Assuming you can access to that DB from AEM (via java) you should be achieve it via custom auth handler

Here is the sling doc: Apache Sling :: Form Based AuthenticationHandler

                                    Apache Sling :: Authentication - AuthenticationHandler

Here is the sample code: acs-aem-samples/SampleLoginHookAuthenticationHandler.java at aem6.3 · Adobe-Consulting-Services/acs-aem-samples · GitHub

Translate
smacdonald2008
Level 10
Nov 22, 2017 8:17 PM UTC

Best practice is to port the users into AEM and then write a login component -as discussed here:

Creating a Login Component for the Experience Manager Toy Store

Or you can write a custom authentication handler:

http://aempodcast.com/2017/aem-resources/week-aem-custom-authentication-handler/#.WhXaz0qnGF4

Translate