mirror of
https://github.com/keycloak/keycloak.git
synced 2026-05-26 13:50:48 +00:00
Upgrade webauthn4j to 0.30.3
Closes #48420 Signed-off-by: Martin Bartoš <mabartos@redhat.com>
This commit is contained in:
@@ -227,8 +227,7 @@
|
||||
</testframework.surefire.args>
|
||||
|
||||
<!-- webauthn support -->
|
||||
<webauthn4j.version>0.29.3.RELEASE</webauthn4j.version>
|
||||
<org.apache.kerby.kerby-asn1.version>2.0.3</org.apache.kerby.kerby-asn1.version>
|
||||
<webauthn4j.version>0.30.3.RELEASE</webauthn4j.version>
|
||||
|
||||
<!-- Used to test SAML Galleon feature-pack layers discovery -->
|
||||
<version.org.wildfly.glow>1.0.0.Alpha8</version.org.wildfly.glow>
|
||||
@@ -1213,11 +1212,6 @@
|
||||
<artifactId>webauthn4j-util</artifactId>
|
||||
<version>${webauthn4j.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.kerby</groupId>
|
||||
<artifactId>kerby-asn1</artifactId>
|
||||
<version>${org.apache.kerby.kerby-asn1.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- used in server-dist build while provisioning the distribution -->
|
||||
<dependency>
|
||||
|
||||
@@ -513,16 +513,6 @@
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.kerby</groupId>
|
||||
<artifactId>kerby-asn1</artifactId>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>*</groupId>
|
||||
<artifactId>*</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.freemarker</groupId>
|
||||
<artifactId>freemarker</artifactId>
|
||||
|
||||
+1
-1
@@ -171,7 +171,7 @@ public class WebAuthnAuthenticator implements Authenticator, CredentialValidator
|
||||
|
||||
Origin origin = new Origin(baseUrl);
|
||||
Challenge challenge = new DefaultChallenge(context.getAuthenticationSession().getAuthNote(WebAuthnConstants.AUTH_CHALLENGE_NOTE));
|
||||
ServerProperty server = new ServerProperty(origin, rpId, challenge, null);
|
||||
ServerProperty server = new ServerProperty(origin, rpId, challenge);
|
||||
|
||||
byte[] credentialId = Base64Url.decode(params.getFirst(WebAuthnConstants.CREDENTIAL_ID));
|
||||
byte[] clientDataJSON = Base64Url.decode(params.getFirst(WebAuthnConstants.CLIENT_DATA_JSON));
|
||||
|
||||
+1
-1
@@ -248,7 +248,7 @@ public class WebAuthnRegister implements RequiredActionProvider, CredentialRegis
|
||||
.collect(Collectors.toSet());
|
||||
allOrigins.add(origin);
|
||||
Challenge challenge = new DefaultChallenge(context.getAuthenticationSession().getAuthNote(WebAuthnConstants.AUTH_CHALLENGE_NOTE));
|
||||
ServerProperty serverProperty = new ServerProperty(allOrigins, rpId, challenge, null);
|
||||
ServerProperty serverProperty = new ServerProperty(allOrigins, rpId, challenge);
|
||||
// check User Verification by considering a malicious user might modify the result of calling WebAuthn API
|
||||
boolean isUserVerificationRequired = policy.getUserVerificationRequirement().equals(Constants.WEBAUTHN_POLICY_OPTION_REQUIRED);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user