Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0056644Openbravo ERPA. Platformpublic2024-10-03 14:092024-10-09 12:05
alostale 
Triage Platform Conn 
normalminorhave not tried
closedfixed 
5
 
PR25Q1 
Core
No
0056644: support RSA512 for JWT tokens
When OAuth is configured as authentication provider for API, JWT tokens are verified only if they use RS256 algorithm. If the provider implements RS512, the process will fail.
1. Configure OAuth authentication for API with a provider implemening RS512
2. Perform an API request
  ERROR:
Caused by: java.security.NoSuchAlgorithmException: Unsupported algorithm: RS512
at org.openbravo.authentication.oauth2.JWTDataProvider.getAlgorithm(JWTDataProvider.java:178) ~[classes/:?]
at org.openbravo.authentication.oauth2.JWTDataProvider.getData(JWTDataProvider.java:153) ~[classes/:?]
No tags attached.
Issue History
2024-10-03 14:09alostaleNew Issue
2024-10-03 14:09alostaleAssigned To => Triage Platform Base
2024-10-03 14:09alostaleModules => Core
2024-10-03 14:09alostaleTriggers an Emergency Pack => No
2024-10-03 14:09alostaleAssigned ToTriage Platform Base => Triage Platform Conn
2024-10-03 14:12alostaleSummarysuport RSA512 for JWT tokens => support RSA512 for JWT tokens
2024-10-03 14:29hgbotNote Added: 0169956
2024-10-09 12:04hgbotResolutionopen => fixed
2024-10-09 12:04hgbotStatusnew => closed
2024-10-09 12:05hgbotFixed in Version => PR25Q1
2024-10-09 12:05hgbotNote Added: 0170177
2024-10-09 12:05hgbotNote Added: 0170178

Notes
(0169956)
hgbot   
2024-10-03 14:29   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1374 [^]
(0170177)
hgbot   
2024-10-09 12:05   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 3d8f0a8a70267c0e345438e5b605ff473e318811
Author: Asier Lostalé <a.lostale@orisha.com>
Date: 09-10-2024 10:04:56
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/3d8f0a8a70267c0e345438e5b605ff473e318811 [^]

fixes ISSUE-56644: support RSA512 for JWT tokens

---
M src/org/openbravo/authentication/oauth2/JWTDataProvider.java
---
(0170178)
hgbot   
2024-10-09 12:05   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1374 [^]