Topic-icon SSL support

Active Subscriptions:

None
10 years 11 months ago #53743 by haibar
SSL support was created by haibar
I'm getting requests (if I go into my website via https) that are refused due to mixed protocols. If you look at the second line below, why is it in the form of non-SSL? The page itself is https? I used a setting to "force Scheme" to https and I still get this:

<script type="text/javascript">jfbc.login.logout_facebook = false;
jfbc.base = 'drinkedin.net/';
jfbc.return_url = 'L2Jsb2cuaHRtbA==';
jfbc.login.scope = 'email,user_birthday,user_hometown,user_location,user_website,user_education_history,user_status';
jfbc.login.show_modal = '0';
jfbc.login.use_popup = false;
jfbc.login.auto = '1';
jfbc.login.logged_in = true;
jfbc.init();
</script>


Suggestions?
The topic has been locked.
Support Specialist
10 years 11 months ago #53748 by alzander
Replied by alzander on topic SSL support
I honestly don't know why that would be. That's not something we've heard of before. If you look at the /components/com_jfbconnect/libraries/provider/facebook.php file, around line 273, you'll see where the line you mention above is added:
"jfbc.base = '" . JURI::base() . "';\n" .
That JURI::base() call is a part of Joomla that should return the base URL of the page. It should return it in whatever form the URL is currently in. I've never seen it return it differently than the scheme that's on the page. However, I know you're using a couple of different proxy tools that seem to change the URL that Joomla actually sees. My only guess is that Joomla is being confused by those and not returning the proper URL.

The easiest fix is to just hard-code your URL in that line above. The better solution is to investigate what is being returned by JURI::base() and if it's the non-https URL, determine why.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 11 months ago #53753 by haibar
Replied by haibar on topic SSL support
I think you're correct. We use GTranslate and that's basically a reverse proxy. I'll have to make sure it's handling SSL correctly...

Thanks.
The topic has been locked.
Support Specialist
10 years 11 months ago #53758 by alzander
Replied by alzander on topic SSL support
No problem. Glad to help narrow things down. If you run into further issues that you think are caused by JFBConnect, just let us know.

Thanks,
Alex
The topic has been locked.