Yubico / java-webauthn-server

Server-side Web Authentication library for Java https://www.w3.org/TR/webauthn/#rp-operations
Other
443 stars 139 forks source link

Expose UserIdentity in AssertionResult #291

Closed iaik-jheher closed 1 year ago

iaik-jheher commented 1 year ago

This is part of the UserIdentity work I proposed in https://github.com/Yubico/java-webauthn-server/issues/289#issuecomment-1572100280; I am breaking it down into smaller parts for ease of review.

This PR simply builds a UserIdentity in step 6 of FinishAssertionSteps (from the existing information) and passes it through to the final AssertionResult. For now, this does not enable additional functionality; however, it is necessary groundwork for being able to specify UserIdentity in StartAssertionOptions in the future.

I've also taken the liberty of restructuring step 6 a bit to make it easier to follow.