Openbravo Issue Tracking System - Modules
View Issue Details
0056885ModulesOpenbravo Business APIpublic2024-10-24 13:432024-10-29 08:51
alostale 
Triage Platform Conn 
normalminorhave not tried
closedfixed 
5
 
 
approved
No
0056885: no log info for OAuth tokens requests
When an external system (back or front) is configured to use OAuth2 authentication, a request to the authentication provider to obtain a token is performed.

Currently there is no trace in the log informing about these requests. This information can be useful when trying to pinpoint problems with this service.
Case 1. Backend Push API
1.1 Configure a Backend External System to use OAuth authentication
1.2 Subscribe that system to a backend event (ie. POS Order created)
1.3 Trigger that event (ie. create an order in POS)

Case 2. Client API
2.1 Configure a Client External System to use OAuth authentication
2.2 Subscribe that system to a fronetend event (ie. POS Login)
2.3 Trigger that event (ie. Log into POS)

In both cases it'd be useful to have some log about the request to get the tokens
No tags attached.
related to defect 0056890 closed Triage Platform Conn push API events don't log the time the request took to complete 
Issue History
2024-10-24 13:43alostaleNew Issue
2024-10-24 13:43alostaleAssigned To => Triage Platform Conn
2024-10-24 13:43alostaleOBNetwork customer => No
2024-10-24 13:46hgbotMerge Request Status => open
2024-10-24 13:46hgbotNote Added: 0170897
2024-10-24 14:10hgbotMerge Request Statusopen => approved
2024-10-24 14:12hgbotResolutionopen => fixed
2024-10-24 14:12hgbotStatusnew => closed
2024-10-24 14:12hgbotNote Added: 0170899
2024-10-24 14:12hgbotFixed in Version => PR25Q1
2024-10-24 14:12hgbotNote Added: 0170900
2024-10-29 08:51rafarodaRelationship addedrelated to 0056890

Notes
(0170897)
hgbot   
2024-10-24 13:46   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1405 [^]
(0170899)
hgbot   
2024-10-24 14:12   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1405 [^]
(0170900)
hgbot   
2024-10-24 14:12   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 6923aff8a1ea3bf964f579a9274dfc956e3dd0ad
Author: Asier Lostalé <a.lostale@orisha.com>
Date: 24-10-2024 13:45:46
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/6923aff8a1ea3bf964f579a9274dfc956e3dd0ad [^]

fixes ISSUE-56885: no log info for OAuth tokens requests

---
M src/org/openbravo/service/externalsystem/http/OAuth2AuthorizationProvider.java
---