How to login into AEM with user information stored in Relational Database or Mongo DB? | Community
Skip to main content
Level 2
November 22, 2017
Solved

How to login into AEM with user information stored in Relational Database or Mongo DB?

  • November 22, 2017
  • 2 replies
  • 1715 views

How to login into AEM with user information stored in Relational Database or Mongo DB?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by edubey

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

smacdonald2008
Level 10
November 22, 2017

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

edubey
edubeyAccepted solution
Level 10
November 23, 2017

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