Add a cookie after authentication. | Community
Skip to main content
July 21, 2020
Solved

Add a cookie after authentication.

  • July 21, 2020
  • 1 reply
  • 1220 views

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.
Best answer by Vaibhavi_J

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

1 reply

Vaibhavi_J
Vaibhavi_JAccepted solution
Level 7
July 22, 2020

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

florindAuthor
July 23, 2020

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.