Skip to content

Commit

Permalink
fix: use filter by RP if it's SG request (#5575)
Browse files Browse the repository at this point in the history
Co-authored-by: Yuriy Movchan <Yuriy.Movchan@gmail.com>
  • Loading branch information
yuremm and yurem authored Jul 19, 2023
1 parent 7501d3b commit 2739f96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ private Pair<ArrayNode, String> prepareAllowedCredentials(String documentDomain,
String.format("Can't find associated key '%s' for application '%s'", requestedKeyHandle, documentDomain)));
existingFido2Registrations = Arrays.asList(fido2RegistrationEntry);
} else {
existingFido2Registrations = registrationPersistenceService.findByRpRegisteredUserDevices(username, null);
existingFido2Registrations = registrationPersistenceService.findByRpRegisteredUserDevices(username, superGluu ? documentDomain : null);
}
// f.getRegistrationData().getAttenstationRequest() null check is added to maintain backward compatiblity with U2F devices when U2F devices are migrated to the FIDO2 server
List<Fido2RegistrationEntry> allowedFido2Registrations = existingFido2Registrations.parallelStream()
Expand Down

0 comments on commit 2739f96

Please sign in to comment.