Fixing Re-authentication with passkeys#10
Conversation
closes #41242 closes #41008 Signed-off-by: mposolda <mposolda@gmail.com>
This change modifies the method signature to require a UserModel parameter for proper user context validation during conditional passkey checks.
Codoki PR ReviewSummary: Fix passkeys check and gating, prevent compile error Issues (Critical & High only)
Showing top 2 issues. Critical: 1, High: 1. See inline suggestions for more. Key Feedback (click to expand)
Confidence: 2/5 — Not ready to merge (1 critical · 1 high · status: Requires changes) React with 👍 or 👎 if you found this review useful. |
| @Override | ||
| public void authenticate(AuthenticationFlowContext context) { | ||
| if (context.getUser() != null) { | ||
| if (context.getUser() != null && !isConditionalPasskeysEnabled()) { |
There was a problem hiding this comment.
🛑 Critical: This calls isConditionalPasskeysEnabled() with no arguments, but the available method signature is isConditionalPasskeysEnabled(UserModel). This will not compile and blocks the build. Pass the current user to the method.
| if (context.getUser() != null && !isConditionalPasskeysEnabled()) { | |
| ```suggestion | |
| if (context.getUser() != null && !isConditionalPasskeysEnabled(context.getUser())) { |
| } | ||
| } | ||
| // setup webauthn data when passkeys enabled | ||
| if (isConditionalPasskeysEnabled(context.getUser())) { |
There was a problem hiding this comment.
| if (isConditionalPasskeysEnabled(context.getUser())) { | |
| ```suggestion | |
| if (webauthnAuth != null && webauthnAuth.isPasskeysEnabled()) { |
No description provided.