Skip to content

Commit

Permalink
Merge pull request #596 from scc-digitalhub/5.x-fix-595
Browse files Browse the repository at this point in the history
fix #595: removed logger from spid idp
  • Loading branch information
matteo-s authored Jun 25, 2024
2 parents 4c25660 + b3e00fe commit 6fb54ff
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
import org.opensaml.security.credential.Credential;
import org.opensaml.security.credential.CredentialSupport;
import org.opensaml.security.credential.UsageType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.saml2.Saml2Exception;
import org.springframework.security.saml2.core.Saml2X509Credential;
import org.springframework.security.saml2.provider.service.registration.RelyingPartyRegistration;
Expand All @@ -56,8 +54,6 @@ public class SpidIdentityProviderConfig extends AbstractIdentityProviderConfig<S
public static final String RESOURCE_TYPE =
SystemKeys.RESOURCE_PROVIDER + SystemKeys.ID_SEPARATOR + SpidIdentityProviderConfigMap.RESOURCE_TYPE;

private final Logger logger = LoggerFactory.getLogger(getClass());

// public static final String DEFAULT_METADATA_URL =
// "{baseUrl}" + SpidIdentityAuthority.AUTHORITY_URL + "metadata/{registrationId}";
// public static final String DEFAULT_CONSUMER_URL =
Expand Down Expand Up @@ -162,7 +158,6 @@ private Set<RelyingPartyRegistration> toRelyingPartyRegistrations() throws IOExc
registrations.add(toRelyingPartyRegistration(idpMetadataUrl));
} catch (Saml2Exception | ConnectException e) {
// skip that registration if that idp is offline
logger.warn("error building registration for {} due to error {} ", idpMetadataUrl, e.getMessage());
}
}
} catch (URISyntaxException e) {
Expand Down

0 comments on commit 6fb54ff

Please sign in to comment.