Fix issue with auth data persistence key

This commit changes the auth data persistance key to the value of platform instead of using a hard coded constant.

Fixes entgra/product-iots#110
Related to entgra/product-iots#103
feature/appm-store/pbac
Madawa Soysa 5 years ago
parent 0e4234db97
commit a8843711e0

@ -196,7 +196,7 @@ public class LoginHandler extends HttpServlet {
authData.setAccessToken(jTokenResultAsJsonObject.get("access_token").getAsString()); authData.setAccessToken(jTokenResultAsJsonObject.get("access_token").getAsString());
authData.setRefreshToken(jTokenResultAsJsonObject.get("refresh_token").getAsString()); authData.setRefreshToken(jTokenResultAsJsonObject.get("refresh_token").getAsString());
authData.setScope(jTokenResultAsJsonObject.get("scope").getAsString()); authData.setScope(jTokenResultAsJsonObject.get("scope").getAsString());
session.setAttribute(HandlerConstants.SESSION_AUTH_DATA_KEY, authData); session.setAttribute(platform, authData);
return true; return true;
} }

Loading…
Cancel
Save