Hi,
I am trying to setup a portal instance that uses SAML authentication (obtained from OneLogin). The portal & the session server both run fine without authentication, but the connection to the portal fails with error 500 (full message attached), caused by:
org.opensaml.common.SAMLRuntimeException: Can't obtain SP signing key
org.opensaml.xml.security.SecurityException: Could not retrieve entry from keystore
java.security.UnrecoverableKeyException: Cannot recover key
The portal.properties section relevant to SAML reads:
saml.sp.metadata.entityid=cbioportal
saml.idp.metadata.location=classpath:/onelogin_metadata_nnnnnn.xml
saml.idp.metadata.entityid=https://app.onelogin.com/saml/metadata/nnnnnn
# saml keystore settings:
saml.keystore.location=classpath:/samlKeystore.jks
saml.keystore.password=xxx...xxx
saml.keystore.private-key.key=secure-key
saml.keystore.private-key.password=yyy...yyy
saml.keystore.default-key=secure-key
# How to send SAML request messages to the IDP.
# Set to "specificBinding" to configure specific binding:
saml.idp.comm.binding.settings=defaultBinding
# Configure the specific binding if above is specificBinding. Leave empty if defaultBinding.
# Options: bindings:HTTP-POST, bindings:HTTP-Redirect, bindings:PAOS, profiles:holder-of-key:SSO:browser
saml.idp.comm.binding.type=
# Change this to configure your custom UserDetails parser (default: org.cbioportal.security.spring.authentication.saml.SAMLUserDetailsServiceImpl)
saml.custom.userservice.class=org.cbioportal.security.spring.authentication.saml.SAMLUserDetailsServiceImpl
# Change this to configure to configure a custom logout URL: (default: /login.jsp?logout_success=true)
saml.logout.url=/login.jsp?logout_success=true
The portal properties, onelogin metadata & keystore files are all in $PORTAL_HOME/target/tomcat.8081/webapps/expanded/WEB-INF/classes
I am not sure whether the problem is that the keystore or onelogin metadata cannot be found, and if it is the case, where should I put them, and how should I set the locations in the portal properties.
Thanks very much for your help,
Best,
Eric