Openbravo Issue Tracking System - Modules
View Issue Details
0055146ModulesWeb Authenticationpublic2024-04-09 18:142024-04-15 07:33
caristu 
caristu 
highmajorhave not tried
closedfixed 
5
 
 
0055146: Avoid showing the user verification prompt in Chrome
In Chrome the user verification setting is ignored when using discoverable credentials, in that case even if userVerification="discouraged" a prompt to enter the PIN of the authenticator device is always being shown. This has been reported as a bug to Chrome[1].

Until this issue is fixed we should find a workaround to avoid showing that user verification prompt in the approvals flow in order to minimize disruption to the user interaction flow , providing a fast authentication experience.

[1] https://issues.chromium.org/issues/332580481 [^]
Using chrome:

1) Link a supervisor with an authenticator device
2) Execute a user action that requires approval from a supervisor
3) Try to approve the user action with WebAuthn, using the authenticator device of the supervisor configured in step 1). Note that the device PIN prompt is always requested to the user.
No tags attached.
related to defect 0054752 closed Triage Platform Base Support authenticating users with Web Authentication (phase 2) 
Issue History
2024-04-09 18:14caristuNew Issue
2024-04-09 18:14caristuAssigned To => caristu
2024-04-09 18:14caristuIssue generated from0054752
2024-04-09 18:14caristuRelationship addedrelated to 0054752
2024-04-09 18:27hgbotNote Added: 0162999
2024-04-09 18:29hgbotNote Added: 0163000
2024-04-15 07:33hgbotResolutionopen => fixed
2024-04-15 07:33hgbotStatusnew => closed
2024-04-15 07:33hgbotNote Added: 0163164
2024-04-15 07:33hgbotNote Added: 0163165
2024-04-15 07:33hgbotNote Added: 0163166
2024-04-15 07:33hgbotNote Added: 0163167

Notes
(0162999)
hgbot   
2024-04-09 18:27   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.authentication.webauthn/-/merge_requests/3 [^]
(0163000)
hgbot   
2024-04-09 18:29   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1446 [^]
(0163164)
hgbot   
2024-04-15 07:33   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.authentication.webauthn [^]
Changeset: 2716176cfd839a0413e4e9ba33d53098a2587198
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 15-04-2024 07:30:59
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.authentication.webauthn/-/commit/2716176cfd839a0413e4e9ba33d53098a2587198 [^]

fixes BUG-55146: Avoid showing the user verification prompt in Chrome

  Due to a bug in Chrome[1], the user verification (PIN) prompt is
always being displayed, event when the user verification is set as
"discouraged".

  As we want to minimize disruption to the user interaction flow,
providing a fast login experience for the approvals, here we are
implementing a workaround to force this prompt not to appear, by using
the allowCredentials (non discoverable credentials) array with the
credentials of all the supervisors in the options of the credential
request of the authentication ceremony. This makes the user verification
prompt not to appear in Chrome during the user authentication.

  Note that this workaround has the limitation of not allowing more that
64 supervisor credentials, because is the limit allowed for the
   allowCredentials array. If that limit is reached, then an empty
allowCredentials is passed (discoverable credentials will be used) and
in that case the user verification prompt will appear in Chrome.

  Finally, we are also removing the "hybrid" transport option for the
supported transports set, this is because by removing it, another prompt
that allows to choose between available authenticators is displayed by
the browser. Without this option, that prompt is not shown, allowing the
authentication to be as faster as possible.

  If in the future it is desired to support the "hybrid" transport which
is used to authenticate with smartphones, the transport must be done a
configurable setting in the Authentication Provider Configuration
window.

[1] https://issues.chromium.org/issues/332580481 [^]

---
M src/org/openbravo/authentication/webauthn/WebAuthnHandler.java
M src/org/openbravo/authentication/webauthn/service/WebAuthnAuthenticationService.java
---
(0163165)
hgbot   
2024-04-15 07:33   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.authentication.webauthn/-/merge_requests/3 [^]
(0163166)
hgbot   
2024-04-15 07:33   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 3e76f541173528f98e036e62d7ed63b70c5baf94
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 12-04-2024 12:53:29
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/3e76f541173528f98e036e62d7ed63b70c5baf94 [^]

related to ISSUE-55146: Identify the approvals flow

---
M web-jspack/org.openbravo.core2/src/core/security/ApprovalChecker.js
---
(0163167)
hgbot   
2024-04-15 07:33   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1446 [^]