Expand my Community achievements bar.

SOLVED

Add a cookie after authentication.

Avatar

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. 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
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

Avatar

Correct answer by
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

Avatar

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.