Query on Custom Login Module | Community
Skip to main content
prashantonkar
February 7, 2019
Solved

Query on Custom Login Module

  • February 7, 2019
  • 3 replies
  • 2333 views

I have created a custom authentication flow to authenticate using an external provider. As per my understanding, here is the flow of execution.

  1. CustomAuthenticationHandler (extending DefaultAuthenticationFeedbackHandler & implementing AuthenticationHandler, AuthenticationFeedbackHandler): this extracts the credentials and calls the appropriate login module using JAAS configuration.
  2. CustomLoginModule (extending AbstractLoginModule). This calls the identity provider, assigns additional groups optionally.
  3. CustomIdentityProvider (implementing ExternalIdentityProvider): This is where authentication should happen by calling the auth API of my external provider.

The authentication is working fine, I mean

1 > 2 > 3 is working fine and I am able to call API and authenticate the user.

I am getting user information from API in (3) and I am passing it to (2) thru CustomUser (extending ExtenalUser).

My problem is I am unable to pass the user info from (2) to (1). I need this information in further processing of request, to display on UI.

How can I pass this data from (2) to (1) ?

What I have tried so far?

I have created a AuthInfo object and call setInfoInfo object of LoginModule class. It is not working.

I have referred Adobe Experience Manager Help | Creating an Adobe Experience Manager Custom Oak Login Module but couldn't find a solution.

Please help.

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 prashantonkar

Thanks smacdonald2008​.

Here is the SO link that gave me a direction.

ldap - Query on Sling Custom login module - Stack Overflow

3 replies

smacdonald2008
February 7, 2019

For AEM 6.4 - the only custom authentication handler example we have is an OTP token example here - Adobe Experience Manager Help | Creating a Custom Authentication Handler for Adobe Experience Manager 6.4

prashantonkar
prashantonkarAuthorAccepted solution
February 9, 2019

Thanks smacdonald2008​.

Here is the SO link that gave me a direction.

ldap - Query on Sling Custom login module - Stack Overflow

smacdonald2008
February 9, 2019

By the way - the OAK article you mentioned in your question is for 6,0/61. We will look at updating it for AEM 6.4