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

Fix port for SAML login #59

Merged
merged 1 commit into from
Jul 30, 2021
Merged

Fix port for SAML login #59

merged 1 commit into from
Jul 30, 2021

Conversation

roborourke
Copy link
Contributor

Fixes #36

@roborourke roborourke requested a review from rmccue July 30, 2021 14:45
@@ -16,6 +16,12 @@
* @return void
*/
function bootstrap() {
// Set server port to 443 or 80 for SAML, port 8080 breaks validation.
if ( class_exists( '\\OneLogin\\Saml2\\Utils' ) ) {
$is_https = ! empty( $_SERVER['HTTPS'] ) && $_SERVER['HTTPS'] === 'on';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't use is_ssl() here I assume?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it's before WP is bootstrapped

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

Successfully merging this pull request may close these issues.

SAML validation errors on Altis Infrastructure
2 participants