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

RedirectLoginHelper and HTTPS #13

Closed
edwh opened this issue Mar 17, 2023 · 1 comment
Closed

RedirectLoginHelper and HTTPS #13

edwh opened this issue Mar 17, 2023 · 1 comment

Comments

@edwh
Copy link

edwh commented Mar 17, 2023

Thanks for the code.

I'm using this behind an Haproxy load balancer which does SSL termination. So I'm within an http:// call.

RedirectLoginHelper has this:

$redirectUrl ??= $this->urlDetectionHandler->getCurrentUrl();

UrlDetectionHandler::isBehindSsl will return http:// in this case, but I will want it to use https:// because it'll go to the load balancer.

I'm not sure that Facebook still supports API access over HTTP - I'm getting it returning errors about my domain being invalid (which it's not).

Is there any way to override to always use SSL?

@stanislav-janu
Copy link
Contributor

You can write your own class with interface UrlDetectionInterface and insert it to config parameter url_detection_handler.

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

2 participants