How to get Login ID & pwd from token | Community
Skip to main content
New Participant
October 16, 2015
Solved

How to get Login ID & pwd from token

  • October 16, 2015
  • 1 reply
  • 1154 views

Hi,

 

  I am creating restlet API to create asset in DAM. I am trying to validate the login and create session object based on the user who logged in. I can get the encrypted token, but dont know to get the user id and pwd from it. please advice

Thanks in advance

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 smacdonald2008

To get user credentials in AEM - you create an authentication handler. IN Sling - you create a class that extends DefaultAuthenticationFeedbackHandler and  implements AuthenticationHandler, AuthenticationFeedbackHandler.

Here is an example of creating an AEM authentication handler for 2 factor authentication using DefaultAuthenticationFeedbackHandler and  implements AuthenticationHandler, AuthenticationFeedbackHandler.

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

1 reply

smacdonald2008
smacdonald2008Accepted solution
New Participant
October 16, 2015

To get user credentials in AEM - you create an authentication handler. IN Sling - you create a class that extends DefaultAuthenticationFeedbackHandler and  implements AuthenticationHandler, AuthenticationFeedbackHandler.

Here is an example of creating an AEM authentication handler for 2 factor authentication using DefaultAuthenticationFeedbackHandler and  implements AuthenticationHandler, AuthenticationFeedbackHandler.

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