-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Open
Labels
area/oid4vcIssue related to OpenID for Verifiable CredentialsIssue related to OpenID for Verifiable Credentialskind/taskteam/core-clients
Description
Description
While issuing credentials, we sort of select all protocol mappers with matching scope and format, instead of just working with the active client. Is there any rational behind that decision?
List<OID4VCClient> clients = getClientsOfScope(credentialConfig.getScope(), credentialConfig.getFormat());
List<OID4VCMapper> protocolMappers = getProtocolMappers(clients)
.stream()
.map(pm -> {
if (session.getProvider(ProtocolMapper.class, pm.getProtocolMapper()) instanceof OID4VCMapper mapperFactory) {
ProtocolMapper protocolMapper = mapperFactory.create(session);
if (protocolMapper instanceof OID4VCMapper oid4VCMapper) {
oid4VCMapper.setMapperModel(pm);
return oid4VCMapper;
}
}
LOGGER.warnf("The protocol mapper %s is not an instance of OID4VCMapper.", pm.getId());
return null;
})
.filter(Objects::nonNull)
.toList();@wistefan also see comment #30692 (comment) from @tnorimat
Metadata
Metadata
Assignees
Labels
area/oid4vcIssue related to OpenID for Verifiable CredentialsIssue related to OpenID for Verifiable Credentialskind/taskteam/core-clients