Expand my Community achievements bar.

SOLVED

How to get login-token generated using TokenUtil

Avatar

Level 7

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

@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