Fix blacklist/whitelist for DynamicRegistrationClientConfigurationService

ClientConfigurationService#getClientConfiguration has ServerConfiguration as parameter, not String
pull/822/merge
Mark Janssen 2015-05-24 17:53:53 +02:00 committed by Justin Richer
parent caf85b990d
commit effe955953
1 changed files with 2 additions and 2 deletions

View File

@ -76,11 +76,11 @@ public class DynamicRegistrationClientConfigurationService implements ClientConf
@Override
public RegisteredClient getClientConfiguration(ServerConfiguration issuer) {
try {
if (!whitelist.isEmpty() && !whitelist.contains(issuer)) {
if (!whitelist.isEmpty() && !whitelist.contains(issuer.getIssuer())) {
throw new AuthenticationServiceException("Whitelist was nonempty, issuer was not in whitelist: " + issuer);
}
if (blacklist.contains(issuer)) {
if (blacklist.contains(issuer.getIssuer())) {
throw new AuthenticationServiceException("Issuer was in blacklist: " + issuer);
}