Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Add a cookie after authentication.

florind
Level 1
Level 1

Hi, 

I am using an External Login Module which makes use of a Custom Identity Provider. I need to add a JWT token after the successful login. Where should I add that?
I couldn't find any documentation about that.

Thanks. 

AEM external login
1 Accepted Solution
Vaibhavi
Correct answer by
Community Advisor
Community Advisor

Hi @florind , 

 

You can achieve this with simple code. Please check below article explains on same. 

 

https://www.aemquickstart.in/2017/08/validate-jwt-token-and-secret-key.html?m=1

View solution in original post

2 Replies
Vaibhavi
Correct answer by
Community Advisor
Community Advisor

Hi @florind , 

 

You can achieve this with simple code. Please check below article explains on same. 

 

https://www.aemquickstart.in/2017/08/validate-jwt-token-and-secret-key.html?m=1

View solution in original post

florind
Level 1
Level 1

Actually, I am looking for something else. See, I have this External User I am returning on authenticate method from ExternalIdentityProvider, and during the API call, I also get a JTW token which I want to write in the cookie.
The problem is that I don't have access to the request & response and I was asking if anyone knows where could I add that.