Skip to content

Commit

Permalink
Merge branch 'release-2.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
emlun committed Apr 15, 2024
2 parents 1359dd9 + 821e211 commit c0145d9
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-verify-signatures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

strategy:
matrix:
java: ["17.0.7"]
java: ["17.0.10"]
distribution: [temurin, zulu, microsoft]

steps:
Expand Down
7 changes: 7 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ New features:
version increase.


== Version 2.5.2 (unreleased) ==

Fixes:

* Allow unknown properties in `credProps` client extension output.


== Version 2.5.1 ==

Changes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@
import java.util.Set;

public interface ExtensionOutputs {
/** Returns a {@link Set} of the extension IDs for which an extension output is present. */
/**
* Returns a {@link Set} of recognized extension IDs for which an extension output is present.
*
* <p>This only includes extension identifiers recognized by the java-webauthn-server library.
* Recognized extensions can be found as the properties of {@link
* ClientRegistrationExtensionOutputs} for registration ceremonies, and {@link
* ClientAssertionExtensionOutputs} for authentication ceremonies. Unknown extension identifiers
* are silently ignored.
*/
@JsonIgnore
Set<String> getExtensionIds();
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.yubico.webauthn.data;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import com.upokecenter.cbor.CBORObject;
Expand Down Expand Up @@ -65,6 +66,7 @@ public static class CredentialProperties {
*/
@Value
@Builder
@JsonIgnoreProperties(ignoreUnknown = true)
public static class CredentialPropertiesOutput {
@JsonProperty("rk")
private final Boolean rk;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,21 @@ class RelyingPartyRegistrationSpec
},
"clientExtensionResults": {
"appidExclude": true,
"org.example.foo": "bar"
"org.example.foo": "bar",
"credProps": {
"rk": false,
"authenticatorDisplayName": "My passkey",
"unknownProperty": ["unknown-value"]
}
}
}""")
pkc.getClientExtensionResults.getExtensionIds should contain(
"appidExclude"
)
pkc.getClientExtensionResults.getExtensionIds should contain(
"credProps"
)
pkc.getClientExtensionResults.getExtensionIds should not contain ("org.example.foo")
}
}

Expand Down

1 comment on commit c0145d9

@github-actions
Copy link

Choose a reason for hiding this comment

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

Mutation test results

Package Coverage Stats Prev Prev
Overall 81 % 🔹 1368 🔺 / 1669 🔹 81 % 1364 / 1669
com.yubico.fido.metadata 68 % 🟢 222 🔺 / 323 🔹 68 % 220 / 323
com.yubico.internal.util 46 % 🔹 57 🔹 / 123 🔹 46 % 57 / 123
com.yubico.webauthn 88 % 🔹 647 🔹 / 733 🔹 88 % 647 / 733
com.yubico.webauthn.attestation 92 % 🔹 13 🔹 / 14 🔹 92 % 13 / 14
com.yubico.webauthn.data 94 % 🔹 404 🔺 / 429 🔹 93 % 402 / 429
com.yubico.webauthn.extension.appid 100 % 🏆 13 🔹 / 13 🔹 100 % 13 / 13
com.yubico.webauthn.extension.uvm 50 % 🔹 12 🔹 / 24 🔹 50 % 12 / 24
com.yubico.webauthn.meta 0 % 🔹 0 🔹 / 10 🔹 0 % 0 / 10

Previous run: 1359dd9 - Diff

Detailed reports: workflow run #268

Please sign in to comment.