How to get login-token generated using TokenUtil | Community
Skip to main content
Dinu_Arya
Level 6
April 6, 2020
Solved

How to get login-token generated using TokenUtil

  • April 6, 2020
  • 2 replies
  • 1701 views

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

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 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 replies

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 AdvisorAccepted solution
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