From 2ec572e9b5675203d49eec28f92ba07098d6e5dc Mon Sep 17 00:00:00 2001 From: Pete Cracknell Date: Thu, 2 Jul 2020 23:40:42 +0100 Subject: [PATCH] KEYCLOAK-14655 Check issuer config exists --- .../keycloak/broker/oidc/OIDCIdentityProvider.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/services/src/main/java/org/keycloak/broker/oidc/OIDCIdentityProvider.java b/services/src/main/java/org/keycloak/broker/oidc/OIDCIdentityProvider.java index 879d327e32..a2eb07c14a 100755 --- a/services/src/main/java/org/keycloak/broker/oidc/OIDCIdentityProvider.java +++ b/services/src/main/java/org/keycloak/broker/oidc/OIDCIdentityProvider.java @@ -605,16 +605,20 @@ public class OIDCIdentityProvider extends AbstractOAuth2IdentityProvider 0) { + String[] issuers = trustedIssuers.split(","); - for (String trustedIssuer : issuers) { - if (requestedIssuer.equals(trustedIssuer.trim())) { - return true; + for (String trustedIssuer : issuers) { + if (requestedIssuer.equals(trustedIssuer.trim())) { + return true; + } } } + return false; - } protected boolean supportsExternalExchange() {