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

Add `CredentialRepositoryV2` to supersede `CredentialRepository` #292

Closed iaik-jheher closed 8 months 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 part supersedes the current CredentialRepository interface with a new CredentialRepositoryV2 interface. CredentialRepositoryV2 works based on UserIdentity objects, not usernames.

The CredentialRepository interface extends CredentialRepositoryV2, and has appropriate default implementations to allow existing repositories to continue to function unmodified.

(This pull request does not actually use the V2 interface or its functions anywhere, yet.)

emlun commented 8 months ago

This is now superseded by experimental release 2.6.0-alpha4, which includes a new CredentialRepositoryV2 aiming to solve the same problems, but with a different architecture. I hope this supports your use case; if not, please let us know!