Add a cookie after authentication. | Community
Skip to main content
New Participant
Jul 21, 2020 7:19 PM UTC
Solved

Add a cookie after authentication.

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. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Vaibhavi_J
Vaibhavi_JAccepted solution
Level 7
Jul 22, 2020 3:58 AM UTC

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

2 replies

Vaibhavi_J
Vaibhavi_JAccepted solution
Level 7
Jul 22, 2020 3:58 AM UTC

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

Translate
florindAuthor
New Participant
Jul 23, 2020 8:06 AM UTC

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.

Translate