Skip to content
Snippets Groups Projects
Unverified Commit 6d9d9758 authored by Martin Weise's avatar Martin Weise
Browse files

More debug info

parent 47b581d3
No related branches found
No related tags found
4 merge requests!81New stable release,!43Merge dev to master,!33Draft: merge dev to master,!30Resolve "Refactor: fix all TODOs and FIXMEs in the backend"
......@@ -49,6 +49,9 @@ public class SamlConfig extends WebSecurityConfigurerAdapter {
@Value("${fda.idp.metadata}")
private String idpProviderMetadata;
@Value("${fda.idp.entity-id}")
private String idpEntityId;
@Value("${fda.saml.signkey}")
private String samlSignKey;
......@@ -274,7 +277,7 @@ public class SamlConfig extends WebSecurityConfigurerAdapter {
@Bean
public MetadataGenerator metadataGenerator() {
final MetadataGenerator metadataGenerator = new MetadataGenerator();
metadataGenerator.setEntityId("at:tuwien");
metadataGenerator.setEntityId(idpEntityId);
metadataGenerator.setRequestSigned(false);
metadataGenerator.setExtendedMetadata(extendedMetadata());
metadataGenerator.setIncludeDiscoveryExtension(false);
......@@ -289,6 +292,8 @@ public class SamlConfig extends WebSecurityConfigurerAdapter {
final SAMLContextProviderLB contextProvider = new SAMLContextProviderLB();
contextProvider.setScheme("https");
contextProvider.setServerName(serverName + ":" + serverPort);
contextProvider.setServerPort(Integer.parseInt(serverPort));
contextProvider.setIncludeServerPortInRequestURL(false);
contextProvider.setContextPath("/");
return contextProvider;
}
......
......@@ -33,6 +33,8 @@ eureka:
client.serviceUrl.defaultZone: http://fda-discovery-service:9090/eureka/
fda:
ready.path: /ready
idp.metadata: https://idp.zid.tuwien.ac.at/saml2
idp:
entity-id: "at:tuwien"
metadata: https://idp.zid.tuwien.ac.at/saml2
saml.signkey: saml
base-url: https://fda-authentication-service
\ No newline at end of file
......@@ -26,13 +26,15 @@ server:
logging:
pattern.console: "%d %highlight(%-5level) %msg%n"
level:
root: warn
root: debug
at.tuwien.: debug
eureka:
instance.hostname: fda-authentication-service
client.serviceUrl.defaultZone: http://fda-discovery-service:9090/eureka/
fda:
ready.path: /ready
idp.metadata: https://idp.zid.tuwien.ac.at/saml2
idp:
entity-id: "at:tuwien"
metadata: https://idp.zid.tuwien.ac.at/saml2
saml.signkey: saml
base-url: https://dbrepo.ossdip.at:9097
\ 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