Commit 536bb84
committed
Release 0.3.0
- Major API overhaul; public API changes include but are not limited to:
- Reorganised package structure
- `CredentialRepository.getCredentialIdsForUsername(String)` now
returns `Set` instead of `List`
- Most data classes now expose a builder instead of a public constructor
- Shortcut constants added to `COSEAlgorithmIdentifier` and
`PublicKeyCredentialParameters`
- Exception `U2fBadConfigurationException` renamed to
`BadConfigurationException`
- `RelyingParty.startRegistration` now accepts one
`StartRegistrationOptions` parameter instead of several parameters
- `RelyingParty.finishRegistration` now accepts one
`FinishRegistrationOptions` parameter instead of several parameters
- `RelyingParty.startAssertion` now accepts one
`StartAssertionOptions` parameter instead of several parameters
- `RelyingParty.finishAssertion` now accepts one
`FinishAssertionOptions` parameter instead of several parameters
- `RelyingParty.finishRegistration` now throws checked
`RegistrationFailedException` instead of `IllegalArgumentException`
on most failures
- `RelyingParty.finishAssertion` now throws checked
`AssertionFailedException` instead of `IllegalArgumentException` on
most failures
- Class `MetadataResolver` replaced with interface
- Constructor `CollectedClientData(JsonNode)` deleted
- Type of fields `StartAssertionOptions.extensions`,
`StartRegistrationOptions.extensions` and
`PublicKeyCredential.clientExtensionOutputs` narrowed from
`JsonNode` to `ObjectNode`
- Parameters `StartRegistrationOptions.excludeCredentials` and
`StartAssertionOptions.allowCredentials` deleted; they are now
discovered automatically from the `CredentialRepository`. If custom
control over `excludeCredentials` or `allowCredentials` is needed,
modify the `PublicKeyCredentialCreationOptions` or
`PublicKeyCredentialRequestOptions` object manually.
- `COSEAlgorithmIdentifier` is now an actual enum
- Extensions are now passed and returned as domain objects instead of
as Jackson types
- Type parameter added to `PublicKeyCredential` to express extensions
type
- Fields `CollectedClientData.authenticatorExtensions` and
`.clientExtensions` deleted
- Fixed a bug in `AuthenticatorDataFlags` that caused the `ED` (0x80)
flag to never be set
- All classes in `com.yubico.webauthn.data` can now be serialized and
deserialized using Jackson
- JSON output has been slightly changed:
- `AttestationObject`, `AuthenticatorData` and `CollectedClientData`
now serialize back to Base64Url encoded bytes instead of to JSON
objects
- Member `_attestationObject` removed from serialized
`AuthenticatorAttestationResponse`
- Member `authenticatorData` removed from serialized
`AuthenticatorAttestationResponse`
- New methods `ByteArray.size(): int` and `.isEmpty(): boolean`
- `ByteArray` is now `Comparable` to itself
- Added support for `appid` extensionFile tree
189 files changed
+5905
-3962
lines changed- webauthn-server-attestation
- src
- main
- java/com/yubico/webauthn/attestation
- matcher
- resolver
- resources
- test/java/com/yubico/webauthn/attestation
- matcher
- resolver
- webauthn-server-core
- src
- main/java/com/yubico
- internal/util
- u2f
- attestation
- matchers
- resolvers
- crypto
- data/messages/key/util
- exceptions
- webauthn
- attestation
- data
- exception
- exception
- extension/appid
- impl
- json
- meta
- test
- java/com/yubico
- u2f/testdata
- webauthn
- attestation
- data
- extension/appid
- resources/com/yubico
- u2f/testdata/gnubby
- webauthn
- scala/com/yubico
- scalacheck/gen
- u2f
- attestation
- codec
- data/messages/key/util
- testdata
- webauthn
- attestation
- data
- impl
- extension/appid
- impl
- test
- webauthn-server-demo
- src
- main
- java
- com/yubico
- util
- webauthn/attestation/resolver
- demo
- webauthn
- data
- resources
- scala/demo/webauthn
- data
- json
- webapp/js
- test/scala/demo/webauthn
- yubico-util-scala
- src/main/scala/com/yubico/internal/util/scala
- yubico-util
- src
- main/java/com/yubico/internal/util
- json
- test
- java/com/yubico/internal/util
- scala/com/yubico/internal/util
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
189 files changed
+5905
-3962
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
1 | 60 | | |
2 | 61 | | |
3 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | 76 | | |
79 | 77 | | |
80 | 78 | | |
| |||
148 | 146 | | |
149 | 147 | | |
150 | 148 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | 149 | | |
167 | 150 | | |
168 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments