Skip to content

Commit b98fce3

Browse files
committed
Add COSE algs
1 parent 95c1018 commit b98fce3

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ buildscript {
2222
asciidoctorGradleVersion = "4.0.3"
2323

2424
//Libraries
25-
webauthn4jVersion = '0.25.1.RELEASE'
25+
webauthn4jVersion = '0.29.0-SNAPSHOT'
2626
springSecurityVersion = '6.0.2'
2727
hibernateValidatorVersion = '8.0.1.Final'
2828
thymeleafVersion = '3.0.4.RELEASE'

fido-server-conformance-test-app/src/main/java/com/webauthn4j/springframework/security/webauthn/sample/app/config/WebSecurityBeanConfig.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ MetadataStatementsBasedTrustAnchorRepository metadataStatementsBasedTrustAnchorR
159159
MetadataBLOBBasedTrustAnchorRepository metadataBLOBBasedTrustAnchorRepository(ObjectConverter objectConverter){
160160
X509Certificate mds3RootCertificate = mds3TestRootCertificate();
161161
MetadataBLOBProvider[] fidoMDS3MetadataBLOBProviders = Stream.of(
162-
"https://mds3.fido.tools/execute/b64f714dd9efc2f7011fff6a208e8c170776c326a623788838e43e8c06dd4a4f",
163-
"https://mds3.fido.tools/execute/c344a84746f6a0978d34cd060e4fab6347f9e86b92cc2adc89e7891a419709c6",
164-
"https://mds3.fido.tools/execute/1680c9d899447608dd28eeb5779b70c5bdbdb5daef284f90496fc661975d37df",
165-
"https://mds3.fido.tools/execute/8c7f6fa6e2d058fdef324c2ee435ef4332b968ad8b5a8721717601c100bfb929",
166-
"https://mds3.fido.tools/execute/a90169bef3866ae087e16b22371721eb9cf1411dab197111807013ef4d8d53ec")
162+
"https://mds3.fido.tools/execute/c07bd3496b28183272893889d9bcbb33586b1bafd8fae3c280db1a2cb9add47f",
163+
"https://mds3.fido.tools/execute/566419b8ba11740fae9cd71508c16a6b77142f3230262f3cf34ac0f53e9f7f83",
164+
"https://mds3.fido.tools/execute/8b86df43ae43a23f0506ea69e5a96a547cdc986811704ae8426deaf6c4b956dd",
165+
"https://mds3.fido.tools/execute/573090d57715bef90d5820d8fa34a37cbd0fe1e0adb2176b32752f446942735d",
166+
"https://mds3.fido.tools/execute/d0ebd63e86d8ab518eaa43d512f37151ce20f3a56f3c2c400f3dba86aa710472")
167167
.map(url -> {
168168
try{
169169
FidoMDS3MetadataBLOBProvider fidoMDS3MetadataBLOBProvider = new FidoMDS3MetadataBLOBProvider(objectConverter, url, mds3RootCertificate);

fido-server-conformance-test-app/src/main/java/com/webauthn4j/springframework/security/webauthn/sample/app/config/WebSecurityConfig.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,16 @@ public SecurityFilterChain filterChain(HttpSecurity http, AuthenticationManager
120120
.name("WebAuthn4J Spring Security Sample")
121121
.and()
122122
.pubKeyCredParams(
123-
new PublicKeyCredentialParameters(PublicKeyCredentialType.PUBLIC_KEY, COSEAlgorithmIdentifier.ES256),
124-
new PublicKeyCredentialParameters(PublicKeyCredentialType.PUBLIC_KEY, COSEAlgorithmIdentifier.RS256),
125123
new PublicKeyCredentialParameters(PublicKeyCredentialType.PUBLIC_KEY, COSEAlgorithmIdentifier.RS1),
124+
new PublicKeyCredentialParameters(PublicKeyCredentialType.PUBLIC_KEY, COSEAlgorithmIdentifier.RS256),
125+
new PublicKeyCredentialParameters(PublicKeyCredentialType.PUBLIC_KEY, COSEAlgorithmIdentifier.RS384),
126+
new PublicKeyCredentialParameters(PublicKeyCredentialType.PUBLIC_KEY, COSEAlgorithmIdentifier.RS512),
127+
new PublicKeyCredentialParameters(PublicKeyCredentialType.PUBLIC_KEY, COSEAlgorithmIdentifier.PS256),
128+
new PublicKeyCredentialParameters(PublicKeyCredentialType.PUBLIC_KEY, COSEAlgorithmIdentifier.PS384),
129+
new PublicKeyCredentialParameters(PublicKeyCredentialType.PUBLIC_KEY, COSEAlgorithmIdentifier.PS512),
130+
new PublicKeyCredentialParameters(PublicKeyCredentialType.PUBLIC_KEY, COSEAlgorithmIdentifier.ES256),
131+
new PublicKeyCredentialParameters(PublicKeyCredentialType.PUBLIC_KEY, COSEAlgorithmIdentifier.ES384),
132+
new PublicKeyCredentialParameters(PublicKeyCredentialType.PUBLIC_KEY, COSEAlgorithmIdentifier.ES512),
126133
new PublicKeyCredentialParameters(PublicKeyCredentialType.PUBLIC_KEY, COSEAlgorithmIdentifier.EdDSA)
127134
)
128135
.extensions()

0 commit comments

Comments
 (0)