Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Traditional Java WEB application - AEM integration

Avatar

Level 2

I have a requirement to develop a login page using AEM and it has to get access through the Existing Traditional Java Web application to authenticate and allow customer to login. What is the best practice to do this with AEM 6.1??

1 Accepted Solution

Avatar

Correct answer by
Level 8

I actually just did this exact requirement yesterday.  You can create a custom Identity Provider by implementing "ExternalIdentityProvider" and overriding the authenticate method to perform your authentication.

This code was extremely helpful for me in completing this task https://github.com/Adobe-Marketing-Cloud/aem-ldap-tutorial/tree/master/step-04/example-idp/src/main/...

My version hits an external REST API, performs the authentication and then utilizes AEM for syncing the user details.

If you choose this method you'll need to have a configuration added for DefaultSyncHandler and ExternalLoginModuleFactory.

View solution in original post

5 Replies

Avatar

Level 10

Hi Krishna,

Expose your authentication as a REST service from your java web application. Now you can write your authentication handler and call the external java application service to authenticate.

 

 

Regards,

Lokesh 

Avatar

Level 2

bsloki wrote...

Hi Krishna,

Expose your authentication as a REST service from your java web application. Now you can write your authentication handler and call the external java application service to authenticate.

 

 

Regards,

Lokesh 

 

Hi bsloki,

Thanks for your reply. I'll work on it.

Regards,

Krishna

Avatar

Level 10

In addition to what Lokesh suggested - you can watch a webinar by Justin (our AEM Evangelist) on AEM and secure sites- see this article. The link is in the table at this start of the article: 

https://helpx.adobe.com/experience-manager/using/secure_sites.html

This will provide good background on this subject. 

Avatar

Level 2

smacdonald2008 wrote...

In addition to what Lokesh suggested - you can watch a webinar by Justin (our AEM Evangelist) on AEM and secure sites- see this article. The link is in the table at this start of the article: 

https://helpx.adobe.com/experience-manager/using/secure_sites.html

This will provide good background on this subject. 

 

Thanks Scott. I appreciate your response. I will go through it.

Regards,

Krishna

Avatar

Correct answer by
Level 8

I actually just did this exact requirement yesterday.  You can create a custom Identity Provider by implementing "ExternalIdentityProvider" and overriding the authenticate method to perform your authentication.

This code was extremely helpful for me in completing this task https://github.com/Adobe-Marketing-Cloud/aem-ldap-tutorial/tree/master/step-04/example-idp/src/main/...

My version hits an external REST API, performs the authentication and then utilizes AEM for syncing the user details.

If you choose this method you'll need to have a configuration added for DefaultSyncHandler and ExternalLoginModuleFactory.