Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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-...

View solution in original post

2 Replies

Avatar

Level 10

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

Avatar

Correct answer by
Level 10

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-...