Skip to content

Commit

Permalink
Fix #1715: Incorrect inverse condition when evaluating activation sco…
Browse files Browse the repository at this point in the history
…ped temporary keys (#1716)
  • Loading branch information
petrdvorak authored Oct 4, 2024
1 parent 9f7691a commit 6492090
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ private TemporaryKeyResult obtainTemporaryKeyResult(TemporaryPublicKeyRequestCla
final ActivationRecordEntity activation = activationWithoutLock.get();
if (activation.getActivationStatus() != ActivationStatus.ACTIVE
|| activation.getProtocol() == ActivationProtocol.FIDO2 // FIDO2 does not support temporary keys anywhere
|| Objects.equals(appId, activation.getApplication().getRid())) {
|| !Objects.equals(appId, activation.getApplication().getRid())) {
throw localizationProvider.buildExceptionForCode(ServiceError.ACTIVATION_NOT_FOUND);
}

Expand Down

0 comments on commit 6492090

Please sign in to comment.