Open vsachinv opened 3 years ago
In env setup with AWS ELB if a request with HTTPS protocol getting pass to backend as HTTP then following code fails due to mismatch of URL due to HTTPS and HTTP mismatch.
context.setLocalEntityEndpoint(SAMLUtil.getEndpoint(context.getLocalEntityRoleMetadata().getEndpoints(), context.getInboundSAMLBinding(), context.getInboundMessageTransport(), uriComparator));
To resolve the same issue, we had to override contextProvider bean. Can we add the same in the plugin itself to provide out of the box support?
contextProvider(org.springframework.security.saml.context.SAMLContextProviderLB) { scheme = Holders.config.getProperty('saml.lb.scheme') serverName = Holders.config.getProperty('saml.lb.serverName') serverPort = Holders.config.getProperty('saml.lb.port', Integer) contextPath = Holders.config.getProperty('saml.lb.contextPath') }
In env setup with AWS ELB if a request with HTTPS protocol getting pass to backend as HTTP then following code fails due to mismatch of URL due to HTTPS and HTTP mismatch.
To resolve the same issue, we had to override contextProvider bean. Can we add the same in the plugin itself to provide out of the box support?