Skip to content
Snippets Groups Projects
Commit 455212cc authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4383 Saml Services von PROPERTY_ANTRAGSRAUM_URL abhänig gemacht

parent 933f509c
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,7 @@ import org.opensaml.xmlsec.encryption.support.InlineEncryptedKeyResolver; ...@@ -40,6 +40,7 @@ import org.opensaml.xmlsec.encryption.support.InlineEncryptedKeyResolver;
import org.opensaml.xmlsec.encryption.support.SimpleRetrievalMethodEncryptedKeyResolver; import org.opensaml.xmlsec.encryption.support.SimpleRetrievalMethodEncryptedKeyResolver;
import org.opensaml.xmlsec.keyinfo.KeyInfoCredentialResolver; import org.opensaml.xmlsec.keyinfo.KeyInfoCredentialResolver;
import org.opensaml.xmlsec.keyinfo.impl.CollectionKeyInfoCredentialResolver; import org.opensaml.xmlsec.keyinfo.impl.CollectionKeyInfoCredentialResolver;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.security.saml2.Saml2Exception; import org.springframework.security.saml2.Saml2Exception;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -47,6 +48,7 @@ import lombok.RequiredArgsConstructor; ...@@ -47,6 +48,7 @@ import lombok.RequiredArgsConstructor;
@Service @Service
@RequiredArgsConstructor @RequiredArgsConstructor
@ConditionalOnProperty(AntragraumProperties.PROPERTY_ANTRAGSRAUM_URL)
class Saml2Decrypter { class Saml2Decrypter {
private final BayernIdSamlConfiguration configuration; private final BayernIdSamlConfiguration configuration;
......
...@@ -30,6 +30,7 @@ import org.opensaml.core.xml.config.XMLObjectProviderRegistrySupport; ...@@ -30,6 +30,7 @@ import org.opensaml.core.xml.config.XMLObjectProviderRegistrySupport;
import org.opensaml.core.xml.io.UnmarshallingException; import org.opensaml.core.xml.io.UnmarshallingException;
import org.opensaml.saml.saml2.core.Response; import org.opensaml.saml.saml2.core.Response;
import org.opensaml.saml.saml2.core.impl.ResponseUnmarshaller; import org.opensaml.saml.saml2.core.impl.ResponseUnmarshaller;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.security.saml2.Saml2Exception; import org.springframework.security.saml2.Saml2Exception;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -37,6 +38,7 @@ import lombok.RequiredArgsConstructor; ...@@ -37,6 +38,7 @@ import lombok.RequiredArgsConstructor;
import net.shibboleth.utilities.java.support.xml.XMLParserException; import net.shibboleth.utilities.java.support.xml.XMLParserException;
@Service @Service
@ConditionalOnProperty(AntragraumProperties.PROPERTY_ANTRAGSRAUM_URL)
@RequiredArgsConstructor @RequiredArgsConstructor
class Saml2Parser { class Saml2Parser {
private final BayernIdSamlConfiguration configuration; private final BayernIdSamlConfiguration configuration;
......
...@@ -28,6 +28,7 @@ import jakarta.annotation.PostConstruct; ...@@ -28,6 +28,7 @@ import jakarta.annotation.PostConstruct;
import org.opensaml.saml.security.impl.SAMLSignatureProfileValidator; import org.opensaml.saml.security.impl.SAMLSignatureProfileValidator;
import org.opensaml.xmlsec.signature.support.SignatureTrustEngine; import org.opensaml.xmlsec.signature.support.SignatureTrustEngine;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.security.saml2.core.Saml2Error; import org.springframework.security.saml2.core.Saml2Error;
import org.springframework.security.saml2.core.Saml2ErrorCodes; import org.springframework.security.saml2.core.Saml2ErrorCodes;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -39,6 +40,7 @@ import net.shibboleth.utilities.java.support.resolver.CriteriaSet; ...@@ -39,6 +40,7 @@ import net.shibboleth.utilities.java.support.resolver.CriteriaSet;
@Log4j2 @Log4j2
@RequiredArgsConstructor @RequiredArgsConstructor
@Service @Service
@ConditionalOnProperty(AntragraumProperties.PROPERTY_ANTRAGSRAUM_URL)
class Saml2Verifier { class Saml2Verifier {
public static final String INVALID_SIGNATURE = "Invalid signature for object [%s]: "; public static final String INVALID_SIGNATURE = "Invalid signature for object [%s]: ";
public static final String SIGNATURE_MISSING = "Signature missing"; public static final String SIGNATURE_MISSING = "Signature missing";
......
...@@ -5,11 +5,3 @@ ozgcloud: ...@@ -5,11 +5,3 @@ ozgcloud:
metadataUri: "classpath:/bayernid/metadata/bayernid-idp-infra.xml" metadataUri: "classpath:/bayernid/metadata/bayernid-idp-infra.xml"
decryptionPrivateKey: "classpath:/bayernid/bayernid-test-enc.key" decryptionPrivateKey: "classpath:/bayernid/bayernid-test-enc.key"
decryptionCertificate: "classpath:/bayernid/bayernid-test-enc.crt" decryptionCertificate: "classpath:/bayernid/bayernid-test-enc.crt"
nachrichten-manager:
url: static://localhost:9091
grpc:
client:
info-manager:
address: static://localhost:9091
server:
port: 9092
\ No newline at end of file
ozgcloud: ozgcloud:
antragraum: antragraum:
url: "https://antragsraum.de" url: https://dev.antragsraum.de/
bayernid:
saml:
entityId: https://antragsraum.ozgcloud.de/ entityId: https://antragsraum.ozgcloud.de/
metadataUri: "classpath:/bayernid/metadata/bayernid-idp-infra.xml" metadataUri: "classpath:/bayernid/metadata/bayernid-idp-infra.xml"
decryptionPrivateKey: "classpath:/bayernid/bayernid-test-enc.key" decryptionPrivateKey: "classpath:/bayernid/bayernid-test-enc.key"
decryptionCertificate: "classpath:/bayernid/bayernid-test-enc.crt" decryptionCertificate: "classpath:/bayernid/bayernid-test-enc.crt"
nachrichten-manager:
url: static://localhost:9091
grpc:
client:
info-manager:
address: static://localhost:9091
server:
port: 9092
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment