Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for configuration adding contextProvider as SAMLContextProviderLB as well for AWS ELB support for https to http forward. #71

Open
vsachinv opened this issue Jul 17, 2021 · 0 comments

Comments

@vsachinv
Copy link

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')
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant