Issue with Custom Authentication Handler AEM6.4 | Community
Skip to main content
Level 2
Jun 4, 2019 7:44 AM UTC
Solved

Issue with Custom Authentication Handler AEM6.4

Hi Guys,

I have followed this link to setup google authenticator Adobe Experience Manager Help | Creating a Custom Authentication Handler for Adobe Experience Manager 6.4 . I encountered lot of deprecated / not found annotation issues too. My main class com.aem.authen.core.OTPBasedAuthenticationHandler always shows in unsatisfied state in OSGi console. This happens due to Has anyone configured custom authentication handler successfully in AEM6.4? It would be greatly appreciate if you could share with me the steps you have followed you have a success story.

Regards,


Chinthaka

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
user05162Accepted solution
Employee
Jun 4, 2019 5:39 PM UTC

The article you mentioned is tested on 6.4 and should work for you. Community members are using R7 annotations and a Maven Archetype 15. Can you check if you are using the same?

Also, For "com.aem.authen.core.OTPBasedAuthenticationHandler" , check which dependency is failing?

5 replies

Level 2
Jun 5, 2019 12:18 AM UTC

Thank you so much Berlink. Yes you are absolutely right. I had to change few dependencies to the POM.

I used this one .Using OSGi R7 annotations in AEM - Experience Delivers

In addition you also need to update following dependency in order to @Activate annotation works.

<dependency>

                <groupId>org.osgi</groupId>

                <artifactId>osgi.cmpn</artifactId>

                <version>7.0.0</version>

                <scope>provided</scope>

            </dependency>

Thanks a lot mate.

Translate
Level 2
Jun 5, 2019 12:17 AM UTC

Thank you so much Jaideep. Yes you are absolutely right. I had to change few dependencies.

I used this one .Using OSGi R7 annotations in AEM - Experience Delivers

In addition you also need to update following dependency in order to @Activate annotation works.

<dependency>

                <groupId>org.osgi</groupId>

                <artifactId>osgi.cmpn</artifactId>

                <version>7.0.0</version>

                <scope>provided</scope>

            </dependency>

Thanks a lot mate.

Translate
Level 2
Jun 5, 2019 12:16 AM UTC

Thank you so much Jaideep. Yes you are absolutely right. I had to change few dependencies.

I used this one .Using OSGi R7 annotations in AEM - Experience Delivers

In addition you also need to update following dependency in order to @Activate annotation works.

<dependency>

                <groupId>org.osgi</groupId>

                <artifactId>osgi.cmpn</artifactId>

                <version>7.0.0</version>

                <scope>provided</scope>

            </dependency>

Thanks a lot mate.

Translate
Employee
Jun 4, 2019 11:26 PM UTC

Did you have a chance to test the solution package at https://helpx.adobe.com/content/dam/help/en/experience-manager/using/twofactor64/jcr_content/main-pars/download_section/…

Also, make sure that the main pom.xml includes a 6.4 uber.jar file dependencies.

Translate
user05162Accepted solution
Employee
Jun 4, 2019 5:39 PM UTC

The article you mentioned is tested on 6.4 and should work for you. Community members are using R7 annotations and a Maven Archetype 15. Can you check if you are using the same?

Also, For "com.aem.authen.core.OTPBasedAuthenticationHandler" , check which dependency is failing?

Translate