public Stream<DynamoDbWebAuthnCredentialRegistration> getAccountsBy(final String username) {
        return getRecordsByKeys(DynamoDbQueryBuilder.builder()
            .operator(ComparisonOperator.EQ)
            .attributeValue(List.of(AttributeValue.builder().s(username.trim().toLowerCase(Locale.ENGLISH)).build()))
            .key(ColumnNames.PRINCIPAL.getColumnName())
            .build());
    }
Gets accounts by user name.

@param username the username
@return the accounts by
support/cas-server-support-webauthn-dynamodb/src/main/java/org/apereo/cas/webauthn/DynamoDbWebAuthnFacilitator.java