Openbravo Issue Tracking System - Retail Modules
View Issue Details
0050409Retail ModulesWeb POSpublic2022-10-04 17:222023-08-04 09:38
jarmendariz 
jarmendariz 
normalminorhave not tried
closedfixed 
5
 
RR23Q4 
No
0050409: Add a hook mechanism to let external modules add information on login request response body
The class responsible of doing the login process in mobile applications is MobileCoreLoginHandler.java. This class writes a JSONObject with some data (such as the CSRF token) to be sent as part of the response body.

This class can be extended and can write a new response in case of error just like POSLoginHandler, but there is no mechanism to send additional information on a successful login.
See description
Create a hook that can be implemented in any module and lets MobileCoreLoginHandler.java to extends the response JSONObject.
No tags attached.
blocks feature request 0049857 closed jarmendariz POS2 Full Refresh Throttling 
Issue History
2022-10-04 17:22jarmendarizNew Issue
2022-10-04 17:22jarmendarizAssigned To => jarmendariz
2022-10-04 17:22jarmendarizTriggers an Emergency Pack => No
2022-10-04 17:22jarmendarizRelationship addedblocks 0049857
2022-10-04 17:22jarmendarizStatusnew => scheduled
2022-10-04 18:20hgbotNote Added: 0141654
2023-08-04 08:52hgbotNote Added: 0153202
2023-08-04 08:52hgbotResolutionopen => fixed
2023-08-04 08:52hgbotStatusscheduled => closed
2023-08-04 08:52hgbotFixed in Version => RR23Q4
2023-08-04 08:52hgbotNote Added: 0153203
2023-08-04 09:37hgbotNote Added: 0153206
2023-08-04 09:38hgbotNote Added: 0153207

Notes
(0141654)
hgbot   
2022-10-04 18:20   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/416 [^]
(0153202)
hgbot   
2023-08-04 08:52   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/416 [^]
(0153203)
hgbot   
2023-08-04 08:52   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: bbcbabcaa212ee57c62f1b392852bbd60b16b1d6
Author: Javier Armendáriz <javier.armendariz@openbravo.com>
Date: 04-08-2023 06:52:14
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/bbcbabcaa212ee57c62f1b392852bbd60b16b1d6 [^]

Fixed ISSUE-50409: Adding a hook to extend the JSON response of login handler when login is successful

---
A src/org/openbravo/mobile/core/login/LoginHandlerAdditionalResponse.java
M src/org/openbravo/mobile/core/login/MobileCoreLoginHandler.java
---
(0153206)
hgbot   
2023-08-04 09:37   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 7896b40fc112a7caaf139c1d5f4e31581df34ec2
Author: Javier Armendáriz <javier.armendariz@openbravo.com>
Date: 04-08-2023 09:36:59
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/7896b40fc112a7caaf139c1d5f4e31581df34ec2 [^]

Related to ISSUE-50409: Fixed copyright notice and code formatting

---
M src/org/openbravo/mobile/core/login/LoginHandlerAdditionalResponse.java
M src/org/openbravo/mobile/core/login/MobileCoreLoginHandler.java
---
(0153207)
hgbot   
2023-08-04 09:38   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: bc00242982caebda19a1953e3afe49338bc8a469
Author: Javier Armendáriz <javier.armendariz@openbravo.com>
Date: 04-08-2023 09:38:38
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/bc00242982caebda19a1953e3afe49338bc8a469 [^]

Related to ISSUE-50409: Fixed copyright notice

---
M src/org/openbravo/mobile/core/login/MobileCoreLoginHandler.java
---