Skip to content

Commit 0f92fce

Browse files
committed
Version 1.9.1
- Added missing `<dependencyManagement>` declaration to `webauthn-server-attestation` and `webauthn-server-core` POMs. webauthn-server-attestation: - Added attestation metadata for YubiKey 5 FIPS series.
2 parents d0bcdc7 + 148ef35 commit 0f92fce

File tree

10 files changed

+177
-35
lines changed

10 files changed

+177
-35
lines changed

.github/workflows/release-verify-signatures.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
export TAGNAME=${GITHUB_REF#refs/tags/}
4848
4949
wget -O webauthn-server-core-${TAGNAME}.jar.mavencentral.asc https://repo1.maven.org/maven2/com/yubico/webauthn-server-core/${TAGNAME}/webauthn-server-core-${TAGNAME}.jar.asc
50-
wget -O webauthn-server-core-minimal-${TAGNAME}.jar.mavencentral.asc https://repo1.maven.org/maven2/com/yubico/webauthn-server-core-minimal-/${TAGNAME}/webauthn-server-core-minimal-${TAGNAME}.jar.asc
50+
wget -O webauthn-server-core-minimal-${TAGNAME}.jar.mavencentral.asc https://repo1.maven.org/maven2/com/yubico/webauthn-server-core-minimal/${TAGNAME}/webauthn-server-core-minimal-${TAGNAME}.jar.asc
5151
wget -O webauthn-server-attestation-${TAGNAME}.jar.mavencentral.asc https://repo1.maven.org/maven2/com/yubico/webauthn-server-attestation/${TAGNAME}/webauthn-server-attestation-${TAGNAME}.jar.asc
5252
5353
gpg --no-default-keyring --keyring yubico --verify webauthn-server-attestation-${TAGNAME}.jar.mavencentral.asc webauthn-server-attestation/build/libs/webauthn-server-attestation-${TAGNAME}.jar

NEWS

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
== Version 1.9.1 ==
2+
3+
* Added missing `<dependencyManagement>` declaration to
4+
`webauthn-server-attestation` and `webauthn-server-core` POMs.
5+
6+
webauthn-server-attestation:
7+
8+
* Added attestation metadata for YubiKey 5 FIPS series.
9+
10+
111
== Version 1.9.0 ==
212

313
webauthn-server-attestation:

README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ Maven:
2525
<dependency>
2626
<groupId>com.yubico</groupId>
2727
<artifactId>webauthn-server-core</artifactId>
28-
<version>1.9.0</version>
28+
<version>1.9.1</version>
2929
<scope>compile</scope>
3030
</dependency>
3131
----------
3232

3333
Gradle:
3434

3535
----------
36-
compile 'com.yubico:webauthn-server-core:1.9.0'
36+
compile 'com.yubico:webauthn-server-core:1.9.1'
3737
----------
3838

3939
=== Semantic versioning

build.gradle

Lines changed: 13 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ buildscript {
44
}
55
dependencies {
66
classpath 'com.cinnober.gradle:semver-git:2.5.0'
7-
classpath 'com.diffplug.spotless:spotless-plugin-gradle:5.12.4'
7+
classpath 'com.diffplug.spotless:spotless-plugin-gradle:5.12.5'
88
classpath 'io.github.cosmicsilence:gradle-scalafix:0.1.8'
99
}
1010
}
1111
plugins {
1212
id 'java-platform'
1313
id 'com.github.kt3k.coveralls' version '2.12.0'
14-
id 'io.codearte.nexus-staging' version '0.30.0'
14+
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
1515
id 'io.franzbecker.gradle-lombok' version '4.0.0'
1616
}
1717

@@ -27,10 +27,15 @@ project.ext.publishEnabled = !isCiBuild &&
2727
project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')
2828

2929
if (publishEnabled) {
30-
nexusStaging {
31-
username = ossrhUsername
32-
password = ossrhPassword
33-
stagingProfileId = '6c61426e6529d'
30+
nexusPublishing {
31+
repositories {
32+
sonatype {
33+
stagingProfileId = '6c61426e6529d'
34+
35+
username = ossrhUsername
36+
password = ossrhPassword
37+
}
38+
}
3439
}
3540
}
3641

@@ -43,6 +48,8 @@ dependencies {
4348
api('ch.qos.logback:logback-classic:[1.2.3,2)')
4449
api('com.augustcellars.cose:cose-java:[1.0.0,2)')
4550
api('com.fasterxml.jackson.core:jackson-databind:[2.11.0,3)')
51+
api('com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:[2.11.0,3)')
52+
api('com.fasterxml.jackson.datatype:jackson-datatype-jdk8:[2.11.0,3)')
4653
api('com.google.guava:guava:[24.1.1,31)')
4754
api('com.upokecenter:cbor:[4.0.1,5)')
4855
api('javax.ws.rs:javax.ws.rs-api:[2.1,3)')
@@ -258,17 +265,6 @@ subprojects { project ->
258265
}
259266
}
260267
}
261-
262-
repositories {
263-
maven {
264-
name = "sonatypeNexus"
265-
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
266-
credentials {
267-
username ossrhUsername
268-
password ossrhPassword
269-
}
270-
}
271-
}
272268
}
273269

274270
signing {
@@ -319,17 +315,6 @@ if (publishEnabled) {
319315
}
320316
}
321317
}
322-
323-
repositories {
324-
maven {
325-
name = "sonatypeNexus"
326-
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
327-
credentials {
328-
username ossrhUsername
329-
password ossrhPassword
330-
}
331-
}
332-
}
333318
}
334319

335320
signing {

doc/releasing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Release candidate versions
2525
5. Publish to Sonatype Nexus:
2626
2727
```
28-
$ ./gradlew publish closeAndReleaseRepository
28+
$ ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
2929
```
3030
3131
6. Wait for the artifacts to become downloadable at
@@ -112,7 +112,7 @@ Release versions
112112
9. Publish to Sonatype Nexus:
113113
114114
```
115-
$ ./gradlew publish closeAndReleaseRepository
115+
$ ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
116116
```
117117
118118
10. Wait for the artifacts to become downloadable at

webauthn-server-attestation/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ targetCompatibility = 1.8
1414
evaluationDependsOn(':webauthn-server-core-minimal')
1515

1616
dependencies {
17+
api(platform(rootProject))
1718

1819
api(
1920
project(':webauthn-server-core-minimal'),

webauthn-server-attestation/src/main/resources/metadata.json

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"identifier": "2fb54029-7613-4f1d-94f1-fb876c14a6fe",
3-
"version": 14,
3+
"version": 15,
44
"vendorInfo": {
55
"url": "https://yubico.com",
66
"imageUrl": "https://developers.yubico.com/U2F/Images/yubico.png",
@@ -241,6 +241,67 @@
241241
}
242242
}
243243
]
244+
},
245+
246+
247+
{
248+
"deviceId": "1.3.6.1.4.1.41482.1.7",
249+
"displayName": "YubiKey 5/5C NFC FIPS",
250+
"transports": 12,
251+
"deviceUrl": "https://support.yubico.com/hc/en-us/articles/360021443340-YubiKey-5-NFC-FIPS",
252+
"imageUrl": "https://developers.yubico.com/U2F/Images/YK5.png",
253+
"selectors": [
254+
{
255+
"type": "x509Extension",
256+
"parameters": {
257+
"key": "1.3.6.1.4.1.45724.1.1.4",
258+
"value": {
259+
"type": "hex",
260+
"value": "c1f9a0bc1dd2404ab27f8e29047a43fd"
261+
}
262+
}
263+
}
264+
]
265+
},
266+
267+
{
268+
"deviceId": "1.3.6.1.4.1.41482.1.7",
269+
"displayName": "YubiKey 5 FIPS series",
270+
"transports": 4,
271+
"deviceUrl": "https://support.yubico.com/hc/en-us/articles/360021467359-YubiKey-5C-FIPS",
272+
"imageUrl": "https://developers.yubico.com/U2F/Images/YK5-series.png",
273+
"selectors": [
274+
{
275+
"type": "x509Extension",
276+
"parameters": {
277+
"key": "1.3.6.1.4.1.45724.1.1.4",
278+
"value": {
279+
"type": "hex",
280+
"value": "73bb0cd4e50249b89c6fb59445bf720b"
281+
}
282+
}
283+
}
284+
]
285+
},
286+
287+
{
288+
"deviceId": "1.3.6.1.4.1.41482.1.7",
289+
"displayName": "YubiKey 5Ci FIPS",
290+
"transports": 20,
291+
"deviceUrl": "https://support.yubico.com/hc/en-us/articles/360021443360-YubiKey-5Ci-FIPS",
292+
"imageUrl": "https://developers.yubico.com/U2F/Images/YK5Ci.png",
293+
"selectors": [
294+
{
295+
"type": "x509Extension",
296+
"parameters": {
297+
"key": "1.3.6.1.4.1.45724.1.1.4",
298+
"value": {
299+
"type": "hex",
300+
"value": "8520342148f943559bc88a53846e5083"
301+
}
302+
}
303+
}
304+
]
244305
}
245306
]
246307
}

webauthn-server-attestation/src/test/scala/com/yubico/webauthn/attestation/DeviceIdentificationSpec.scala

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ class DeviceIdentificationSpec extends FunSpec with Matchers {
7373
.identity(testData.rp)
7474
.credentialRepository(Helpers.CredentialRepository.empty)
7575
.metadataService(new StandardMetadataService())
76+
.allowUnrequestedExtensions(true)
7677
.build()
7778

7879
val result = rp.finishRegistration(
@@ -85,7 +86,10 @@ class DeviceIdentificationSpec extends FunSpec with Matchers {
8586
.user(testData.user)
8687
.challenge(testData.attestation.challenge)
8788
.pubKeyCredParams(
88-
List(PublicKeyCredentialParameters.ES256).asJava
89+
List(
90+
PublicKeyCredentialParameters.ES256,
91+
PublicKeyCredentialParameters.EdDSA,
92+
).asJava
8993
)
9094
.build()
9195
)
@@ -150,6 +154,21 @@ class DeviceIdentificationSpec extends FunSpec with Matchers {
150154
Set(USB, NFC),
151155
)
152156
}
157+
158+
it("a YubiKey 5.4 NFC FIPS.") {
159+
check(
160+
"YubiKey 5/5C NFC FIPS",
161+
RealExamples.YubikeyFips5Nfc,
162+
Set(USB, NFC),
163+
)
164+
}
165+
it("a YubiKey 5.4 Ci FIPS.") {
166+
check(
167+
"YubiKey 5Ci FIPS",
168+
RealExamples.Yubikey5ciFips,
169+
Set(USB, LIGHTNING),
170+
)
171+
}
153172
}
154173

155174
describe("fails to identify") {
@@ -259,6 +278,21 @@ class DeviceIdentificationSpec extends FunSpec with Matchers {
259278
Set(USB, NFC),
260279
)
261280
}
281+
282+
it("a YubiKey 5.4 NFC FIPS.") {
283+
check(
284+
"YubiKey 5/5C NFC FIPS",
285+
RealExamples.YubikeyFips5Nfc,
286+
Set(USB, NFC),
287+
)
288+
}
289+
it("a YubiKey 5.4 Ci FIPS.") {
290+
check(
291+
"YubiKey 5Ci FIPS",
292+
RealExamples.Yubikey5ciFips,
293+
Set(USB, LIGHTNING),
294+
)
295+
}
262296
}
263297
}
264298

webauthn-server-core-bundle/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ sourceCompatibility = 1.8
1010
targetCompatibility = 1.8
1111

1212
dependencies {
13+
api(platform(rootProject))
14+
1315
api(
1416
project(':webauthn-server-core-minimal'),
1517
)

webauthn-server-core/src/test/scala/com/yubico/webauthn/test/RealExamples.scala

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,4 +460,53 @@ object RealExamples {
460460
),
461461
)
462462

463+
val YubikeyFips5Nfc = Example(
464+
RelyingPartyIdentity.builder().id("demo.yubico.com").name("").build(),
465+
UserIdentity
466+
.builder()
467+
.name("6vTZo5MBEbaH")
468+
.displayName("6vTZo5MBEbaH")
469+
.id(ByteArray.fromBase64("tabbiLeU61rCtgcNOC+9J6doMN8DQnm2IEaa4Ps+gqU="))
470+
.build(),
471+
AttestationExample(
472+
"""{"type":"webauthn.create","challenge":"BkRnXYHVbiUEJYPPcVAOig","origin":"https://demo.yubico.com","crossOrigin":false,"other_keys_can_be_added_here":"do not compare clientDataJSON against a template. See https://goo.gl/yabPex"}""",
473+
ByteArray.fromBase64("o2NmbXRmcGFja2VkZ2F0dFN0bXSjY2FsZyZjc2lnWEcwRQIhAMrVMrCPZDK3RNFKKdDOYoSPsEqgSecbvfUIuPk84nIwAiA6VbneoEArKqgrwWnDcQi03kyWQrPmr3JqHtPUXNGitWN4NWOBWQLwMIIC7DCCAdSgAwIBAgIJAN1TJeaFJ6cVMA0GCSqGSIb3DQEBCwUAMC4xLDAqBgNVBAMTI1l1YmljbyBVMkYgUm9vdCBDQSBTZXJpYWwgNDU3MjAwNjMxMCAXDTE0MDg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yHZkuha2NyZWRQcm90ZWN0Ag=="),
474+
),
475+
AssertionExample(
476+
id = ByteArray.fromBase64Url(
477+
"qCr10sLk0iFwAzprwcMiYg6kOoYd3qSsU9oBXL-_33uyhemYnWLsuYcrSLYvo8lE"
478+
),
479+
clientData = """{"type":"webauthn.get","challenge":"P0MvFaK3Bz-YYVYfCXfBig","origin":"https://demo.yubico.com","crossOrigin":false}""",
480+
authDataBytes = ByteArray.fromBase64(
481+
"xGzvgq0bVGR3WR0Aiwh1nsPm0uy085R0v+ppaZJdA7cFAAAAAw=="
482+
),
483+
sig =
484+
ByteArray.fromBase64("Q0omzU9kPFnxd9njE5+fWLDDFxPIXRrPJ3fSGniU2+UHp1NUZJtMwc4iddbXiYNZ2GN5frrG3tf72oAoI+i3BQ=="),
485+
),
486+
)
487+
488+
val Yubikey5ciFips = Example(
489+
RelyingPartyIdentity.builder().id("demo.yubico.com").name("").build(),
490+
UserIdentity
491+
.builder()
492+
.name("6J8bPm5pgZxx")
493+
.displayName("6J8bPm5pgZxx")
494+
.id(ByteArray.fromBase64("cj5f7W52d8rucMRXw+F+k/tMcMjRZbWNmmayWQ/s1hY="))
495+
.build(),
496+
AttestationExample(
497+
"""{"type":"webauthn.create","challenge":"hnZ_h1C2W1hIvTv-TczSDQ","origin":"https://demo.yubico.com","crossOrigin":false}""",
498+
ByteArray.fromBase64("o2NmbXRmcGFja2VkZ2F0dFN0bXSjY2FsZyZjc2lnWEcwRQIgNjV3981oAhwpWDaw0VT7o/KK/OZ4MJF1Gx3p68dfgSkCIQClgMNxOuNeWlX3OEekplBvZyEdnjrgXHPK4+qxbgb6yWN4NWOBWQLwMIIC7DCCAdSgAwIBAgIJAJt5F3hRiVnmMA0GCSqGSIb3DQEBCwUAMC4xLDAqBgNVBAMTI1l1YmljbyBVMkYgUm9vdCBDQSBTZXJpYWwgNDU3MjAwNjMxMCAXDTE0MDgwMTAwMDAwMFoYDzIwNTAwOTA0MDAwMDAwWjBvMQswCQYDVQQGEwJTR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Vk20wt7OKpz/a4FLU="),
499+
),
500+
AssertionExample(
501+
id =
502+
ByteArray.fromBase64Url("qeNy9WGd6KRAq4aXf_xCgOrgjJoRH7Ve8KC7UJ3cpjDaFrv5egr5kJ7mBlrGiHlZ0OkD_Xtsd-lQTu_Ymr1crg"),
503+
clientData = """{"type":"webauthn.get","challenge":"gJQG3mUBQv5rR7mwUuHbxQ","origin":"https://demo.yubico.com","crossOrigin":false"}""",
504+
authDataBytes = ByteArray.fromBase64(
505+
"xGzvgq0bVGR3WR0Aiwh1nsPm0uy085R0v+ppaZJdA7cBAAAABQ=="
506+
),
507+
sig =
508+
ByteArray.fromBase64("MEQCIEZeZWSy5CfVPMIGnU1Fi3+K+8ID6YTDxdckc9174ICeAiA1qRNIbPoo2tMSR1wFi5PTb6s+nZ2q9apv9NhnDbNZig=="),
509+
),
510+
)
511+
463512
}

0 commit comments

Comments
 (0)