Skip to content

SDKS-5096: Enhance WebAuthn registration by adding optional device name#519

Merged
vibhorgoswami merged 2 commits into
developfrom
SDKS-5096
Jun 4, 2026
Merged

SDKS-5096: Enhance WebAuthn registration by adding optional device name#519
vibhorgoswami merged 2 commits into
developfrom
SDKS-5096

Conversation

@vibhorgoswami

@vibhorgoswami vibhorgoswami commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

JIRA Ticket

SDKS-5096

Description

This PR fixes the bug raised for omitting the device name supplied by the caller. The device name is now being added as part of the json response.

Definition of Done Checklist:

  • Coded to standards.
  • Ensure backward compatibility.
  • API reference docs is created or updated, if applicable.
  • Unit tests are written or updated.
  • Integration tests are written, if applicable.

@codecov

codecov Bot commented Jun 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.75%. Comparing base (bb8c89c) to head (6e3237a).

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #519   +/-   ##
==========================================
  Coverage      65.75%   65.75%           
+ Complexity      1764     1762    -2     
==========================================
  Files            264      264           
  Lines           8658     8658           
  Branches         969      969           
==========================================
  Hits            5693     5693           
  Misses          2534     2534           
  Partials         431      431           
Flag Coverage Δ
unit-tests 65.75% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

witrisna
witrisna previously approved these changes Jun 3, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rodrigoareis rodrigoareis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall changes looks good. Left minor comments

@spetrov spetrov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍🏻

@rodrigoareis rodrigoareis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vibhorgoswami vibhorgoswami merged commit da60801 into develop Jun 4, 2026
17 checks passed
@vibhorgoswami vibhorgoswami deleted the SDKS-5096 branch June 4, 2026 21:19
spetrov added a commit that referenced this pull request Jun 16, 2026
* SDKS-4658: Set code verifier to null for Apple Sign-In

The `codeVerifier` is explicitly set to `null` in the `AuthorizationRequest.Builder` for the Apple Sign-In handler.

* SDKS-4714: Use empty request body in self-service session endpoint (#510)

* SDKS-4714: Use empty request body in self-service session endpoint

Remove the `EMPTY` constant from OkHttp's `RequestBody` and has been replaced with `"".toRequestBody()`.

* Update Session.kt

Signed-off-by: Andy Witrisna <andy.witrisna@forgerock.com>

---------

Signed-off-by: Andy Witrisna <andy.witrisna@forgerock.com>

* Add migration support for Ping SDK with DefaultStorageClient (#511)

* Increase sleep time in FRUserMockTest to ensure token expiration (#513)

The `Thread.sleep` duration in `FRUserMockTest.kt` is increased from 1000ms to 2000ms to allow sufficient time for tokens to expire before testing the refresh token flow.

* ForgeRock Android SDK 4.8.4 Release preparation (#512)

* Updated  for the ForgeRock 4.8.4 release
* Fixed various e2e test cases.

* SDKS-4947 Updating README with maintenance information (#515)

* Updating README with maintenance information

* Rename contribution file name

* SDKS-5037 - Upgrade bcpkix-jdk18on from 1.81 to 1.84 to address CVE-2026-5588 (#516)

* ForgeRock Android SDK 4.8.5 Release preparation (#517)

* Removed Sonatype OSS Index Scan from the CI (this service has been discontinued)

* Updated version number for the ForgeRock 4.8.5 release

* Fix mend tasks to fail the pipeline if critical or high vulnerabilities are found

* SDKS-5096: Enhance WebAuthn registration by adding optional device name (#519)

* SDKS-5096: Enhance WebAuthn registration by adding optional device name parameter

* SDKS-5120: Add authenticationValidityDuration support to device binding and signing (#520)

* SDKS-5120: Allow configurable authenticationValidityDuration in DeviceBindingCallback and DeviceSigningVerifierCallback

* PR review - guard authentication validity duration.

* [fix] SDKS-5114 Handle AM 400 for Push Number Challenge with distinct exception (#521)

* [fix] SDKS-5114 Handle AM 400 for Push Number Challenge with distinct exception

AM 8.1.0 (OPENAM-24154) returns HTTP 400 when a user selects the wrong number
in a Push Number Challenge. Previously the SDK surfaced a generic
PushMechanismException with no semantic meaning. This fix introduces
PushNumberChallengeException (extends PushMechanismException) so callers can
distinguish a wrong-number rejection from other failures, and leaves the
PushNotification in its pending state so the app can offer a retry.

Phases:
- phase 1: Create PushNumberChallengeException (8804d77c)
- phase 2: Handle 400 for Push Number Challenge in PushResponder (fe17bf07)
- phase 3: Unit tests for 400 number-challenge path (4d57f2ca)
- code review: Remove body logging, fix test builder placement (cc910478)

Refs: SDKS-5114

* Addressing comment from Stoyan

* Updated version number for the ForgeRock 4.8.6 release (#522)

---------

Signed-off-by: Andy Witrisna <andy.witrisna@forgerock.com>
Co-authored-by: Andy Witrisna <witrisna@gmail.com>
Co-authored-by: Andy Witrisna <andy.witrisna@forgerock.com>
Co-authored-by: Vibhor Goswami <vibhor.goswami@gmail.com>
Co-authored-by: Rodrigo Reis <rodrigo.reis@forgerock.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants