mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
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
This commit is contained in:
parent
0e4234db97
commit
a8843711e0
@ -196,7 +196,7 @@ public class LoginHandler extends HttpServlet {
|
||||
authData.setAccessToken(jTokenResultAsJsonObject.get("access_token").getAsString());
|
||||
authData.setRefreshToken(jTokenResultAsJsonObject.get("refresh_token").getAsString());
|
||||
authData.setScope(jTokenResultAsJsonObject.get("scope").getAsString());
|
||||
session.setAttribute(HandlerConstants.SESSION_AUTH_DATA_KEY, authData);
|
||||
session.setAttribute(platform, authData);
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user