Openbravo Issue Tracking System - POS2
View Issue Details
0057782POS2POSpublic2025-01-28 15:142025-02-03 09:39
njimenez 
njimenez 
normalmajoralways
closedfixed 
5
 
25Q2 
No
0057782: Crm external systems configured with oauth2 authentication does not work in offline mode
The external systems for oauth2 are configured in the crm configuration window instead of the events subscription. This causes that the external system defined in crm configuration can miss its remote server initialization.

This will cause that in case of making use of the same url as backend for oauth authentication, the backend server manages the request and force to fail in case of being in offline mode.
1. Create an external system with type oauth 2, and make use of offline mode provided on core 2 data encryption module.
2. The authentication url will be placed at the same server as backend
3. Configure the external system in crm configuration window
4. Make a request to the crm integration in offline mode

See how an error is raised instead of making the call to the authorization server
No tags attached.
caused by feature request 0057270 closed njimenez Offline authentication for front end external systems with oauth2 
Issue History
2025-01-28 15:14njimenezNew Issue
2025-01-28 15:14njimenezAssigned To => njimenez
2025-01-28 15:14njimenezTriggers an Emergency Pack => No
2025-01-28 15:14njimenezRelationship addedcaused by 0057270
2025-01-28 15:22hgbotNote Added: 0174825
2025-01-29 14:28hgbotNote Added: 0174856
2025-01-30 12:26hgbotNote Added: 0174897
2025-01-30 12:26hgbotNote Added: 0174898
2025-01-30 12:27hgbotResolutionopen => fixed
2025-01-30 12:27hgbotStatusnew => closed
2025-01-30 12:27hgbotFixed in Version => 25Q2
2025-01-30 12:27hgbotNote Added: 0174899
2025-01-30 12:27hgbotNote Added: 0174900
2025-01-31 12:37hgbotNote Added: 0174957
2025-01-31 12:39hgbotNote Added: 0174958
2025-02-03 09:38hgbotNote Added: 0175015
2025-02-03 09:39hgbotNote Added: 0175016
2025-02-03 09:39hgbotNote Added: 0175017
2025-02-03 09:39hgbotNote Added: 0175018

Notes
(0174825)
hgbot   
2025-01-28 15:22   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1742 [^]
(0174856)
hgbot   
2025-01-29 14:28   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/814 [^]
(0174897)
hgbot   
2025-01-30 12:26   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/814 [^]
(0174898)
hgbot   
2025-01-30 12:26   
Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 7965320b628788e1246a0275f7997765ae116c81
Author: Natalia Jiménez <n.jimenez@orisha.com>
Date: 29-01-2025 14:25:37
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/7965320b628788e1246a0275f7997765ae116c81 [^]

Related to ISSUE-57782: Make validation to ensure that no error is raised in case of undefined values is retrieved

---
M web/org.openbravo.mobile.core/app/integration/external-business-partner/ExternalBusinessPartnerAPI.js
---
(0174899)
hgbot   
2025-01-30 12:27   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 9bbf92d998952bb3699d883253ebd2c0f23ec86b
Author: Natalia Jiménez <n.jimenez@orisha.com>
Date: 29-01-2025 09:38:31
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2/-/commit/9bbf92d998952bb3699d883253ebd2c0f23ec86b [^]

Fixed ISSUE-57782: Added remote server for oauth external system in case it has been setted at crm config

---
A web-jspack/org.openbravo.core2/src/authentication/__test__/loginInitActions.test.js
M web-jspack/org.openbravo.core2/src/authentication/loginInitActions.js
---
(0174900)
hgbot   
2025-01-30 12:27   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1742 [^]
(0174957)
hgbot   
2025-01-31 12:37   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1744 [^]
(0174958)
hgbot   
2025-01-31 12:39   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/815 [^]
(0175015)
hgbot   
2025-02-03 09:38   
Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: f06faa051dd5da7951f78b5b6189c59efbd08659
Author: Natalia Jiménez <n.jimenez@orisha.com>
Date: 03-02-2025 09:37:56
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2/-/commit/f06faa051dd5da7951f78b5b6189c59efbd08659 [^]

Related to ISSUE-57782: Updated oauth2 server priority to priorize it on crm calls execution

---
M web-jspack/org.openbravo.core2/src/authentication/__test__/loginInitActions.test.js
M web-jspack/org.openbravo.core2/src/authentication/loginInitActions.js
---
(0175016)
hgbot   
2025-02-03 09:39   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1744 [^]
(0175017)
hgbot   
2025-02-03 09:39   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/815 [^]
(0175018)
hgbot   
2025-02-03 09:39   
Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: c4b1bc65d935095b273eb717e69fa593a8a73164
Author: Natalia Jiménez <n.jimenez@orisha.com>
Date: 31-01-2025 12:27:41
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/c4b1bc65d935095b273eb717e69fa593a8a73164 [^]

Related to ISSUE-57782: Imporved oauth2 remote server to fit authorization configured urls

---
M web/org.openbravo.mobile.core/app/integration/remote-server/OAuth2Server.js
---