Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

How to get Login ID & pwd from token

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

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