Traditional Java WEB application - AEM integration | Community
Skip to main content
krishnak3067714
Level 2
December 4, 2015
Solved

Traditional Java WEB application - AEM integration

  • December 4, 2015
  • 5 replies
  • 1835 views

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

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 leeasling

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/java/com/adobe/gems/exampleidp/impl

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.

5 replies

Lokesh_Shivalingaiah
Level 10
December 4, 2015

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 

krishnak3067714
Level 2
December 4, 2015

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

smacdonald2008
Level 10
December 4, 2015

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. 

krishnak3067714
Level 2
December 4, 2015

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

leeaslingAccepted solution
Level 8
December 4, 2015

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/java/com/adobe/gems/exampleidp/impl

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.