How to get login-token generated using TokenUtil

Avatar

Avatar

Dinu_Arya

Avatar

Dinu_Arya

Dinu_Arya

06-04-2020

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar

Nikhil-Kumar

MVP

Avatar

Nikhil-Kumar

MVP

Nikhil-Kumar
MVP

25-08-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

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

10-04-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