How to get login-token generated using TokenUtil | Adobe Higher Education
Skip to main content
Dinu_Arya
Level 6
April 6, 2020
Répondu

How to get login-token generated using TokenUtil

Hi Team,

 

I need to get login-token which is generated using TokenUtil upon creation. I'm using the below method to create it. I need it in the very next step of the below method call-

public static AuthenticationInfo createCredentials(HttpServletRequest request,
                                   HttpServletResponse response,
                                   SlingRepository repository,
                                   String userId,
                                   boolean httpOnly)

 Please help me in this. Is there any way to get it without admin login?

 

Thanks,

AryA

Ce sujet a été fermé aux réponses.
Meilleure réponse par Nikhil-Kumar

@dinu_arya 

Seems like whitelisting is the only way. https://stackoverflow.com/questions/50054862/using-tokenutil-to-create-credentials-in-aem-6-3

Try raising a day care ticket with Adobe.




Thanks,
Nikhil

2 commentaires

arunpatidar
Community Advisor
Community Advisor
April 10, 2020

Not sure if can get token without whitlisting bundle and without admin login

https://stackoverflow.com/questions/50054862/using-tokenutil-to-create-credentials-in-aem-6-3

Arun Patidar
Nikhil-Kumar
Community Advisor
Nikhil-KumarCommunity AdvisorRéponse
Community Advisor
August 26, 2020

@dinu_arya 

Seems like whitelisting is the only way. https://stackoverflow.com/questions/50054862/using-tokenutil-to-create-credentials-in-aem-6-3

Try raising a day care ticket with Adobe.




Thanks,
Nikhil