Skip to main content
Dinu_Arya
Level 6
Apr 6, 2020 3:37 PM UTC
Solved

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Nikhil-Kumar
Nikhil-KumarAccepted solution
Community Advisor
Aug 26, 2020 4:17 AM UTC

@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
Apr 10, 2020 6:14 PM UTC

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

Translate
Arun Patidar
Nikhil-Kumar
Community Advisor
Nikhil-KumarCommunity AdvisorAccepted solution
Community Advisor
Aug 26, 2020 4:17 AM UTC

@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

Translate