Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

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

Community Advisor

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

AEM LinksLinkedIn

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