Home:ALL Converter>Outh2 Token - Can i store the token in a session

Outh2 Token - Can i store the token in a session

Ask Time:2018-02-22T16:51:27         Author:Sreek521

Json Formatter

I have a short lived(both 20 mins) access token and refresh token and I want to store it in a session as below and will use it any where if required.

session.setAttribute(ApplicationConstants.OKTA_RESPONSE,token);

Please let me know whether this is correct approach or not. If not please suggest a link or document where in I can refer.

Thanks in advance.

Author:Sreek521,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/48923101/outh2-token-can-i-store-the-token-in-a-session
yy