KEYCLOAK-14655 Check issuer config exists
This commit is contained in:
parent
9c4da9b3ce
commit
2ec572e9b5
1 changed files with 9 additions and 5 deletions
|
@ -606,15 +606,19 @@ public class OIDCIdentityProvider extends AbstractOAuth2IdentityProvider<OIDCIde
|
|||
if (requestedIssuer == null) requestedIssuer = issuer;
|
||||
if (requestedIssuer.equals(getConfig().getAlias())) return true;
|
||||
|
||||
String[] issuers = getConfig().getIssuer().split(",");
|
||||
String trustedIssuers = getConfig().getIssuer();
|
||||
|
||||
if (trustedIssuers != null && trustedIssuers.length() > 0) {
|
||||
String[] issuers = trustedIssuers.split(",");
|
||||
|
||||
for (String trustedIssuer : issuers) {
|
||||
if (requestedIssuer.equals(trustedIssuer.trim())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
protected boolean supportsExternalExchange() {
|
||||
|
|
Loading…
Reference in a new issue