Facebook Login Problem regarding HTTPS
General questions and topics about hsnm

Rate this topic
   Post Reply
7 posts   •   Page 1 of 1
victorbirkeland
Posts: 6
Joined: 21 Jun 2018, 16:16

Facebook Login Problem regarding HTTPS

by victorbirkeland » 22 Jun 2018, 10:27

Hello,
I have had to create a new Facebook App, and since the APP has been created after March the new settings in Facebook are forcing me to use HTTPS.
OK, So far so good, I have got myself a SSL Certificate and Installed it in HSNM and is working fine, I need to be able to do the login through facebook but the HTTPS as Default Setting (in System Setting) if i have it on, then i cant come through my Mikrotik and it doesnt redirect me to the Welcomeportal because its not a secure connection ( since this settings forces the HTTPS on front end AND back end ).
Now if i have it off, i just get through to the Welcome portal but i cant do the login on Facebook because the connection is not secure.

I spoke to my Provider, Ditecal in Spain, and they told me that there was a update that would fix this, i have updated and now my problem is:

I log on my AP, get to mikrotik and it redirects me to HSNM Welcome Portal, I press on Login with Facebook and it redirects me to the APP i Created Login Page on Facebook, now i enter my facebook account and when i Press on Login it gives me a message saying;

"Error to Open Page"
Hotspot-Login cant be opened because a secure connection to the server couldnt be found. (translated).

(If i open my HSNM locally and do a User Interface Preview and do the login it works perfectly, but not through the Mikrotik)

I might have some kind of settings wrong, or something im missing, i really dont think so, but i really need this solved.

My HSNM version is : 6.0.139
Im Using a mikrotik RB1100

I Hope i have explained my self, and that it is understandable.

Thank you

HSNMSupport1
Posts: 111
Joined: 27 Mar 2018, 11:00

Re: Facebook Login Problem regarding HTTPS

by HSNMSupport1 » 22 Jun 2018, 11:38

Hi Victorbirkeland,

Have you set the redirect URI oAuth in https and enabled https in your facebook app?

Bets Regards,

victorbirkeland
Posts: 6
Joined: 21 Jun 2018, 16:16

Re: Facebook Login Problem regarding HTTPS

by victorbirkeland » 22 Jun 2018, 12:09

Hi Victorbirkeland,

Have you set the redirect URI oAuth in https and enabled https in your facebook app?

Bets Regards,
Hi and thank you for fast answer.
Yes I have enabled https in facebook app, i cant deactivate since that option is Forced now,
and both URIS are HTTPS. and Verified.

Thank you

HSNMSupport
Posts: 1553
Joined: 26 Jul 2016, 09:16

Re: Facebook Login Problem regarding HTTPS

by HSNMSupport » 22 Jun 2018, 12:21

Hi Victorbirkeland
Are the SSL certificate loaded on HSNM self-signed? Or has it been provided by a certified CA?
If you use a self-signed certificate I think that this is the problem

Please let me know

Thanks

victorbirkeland
Posts: 6
Joined: 21 Jun 2018, 16:16

Re: Facebook Login Problem regarding HTTPS

by victorbirkeland » 22 Jun 2018, 12:54

Hi Victorbirkeland
Are the SSL certificate loaded on HSNM self-signed? Or has it been provided by a certified CA?
If you use a self-signed certificate I think that this is the problem

Please let me know

Thanks
Hello, No its a Bought certificate from Comodo.
Its not self-signed.

I might be missing something.

i have the option to upload KEY, CRT , and TRUSTED CA...

Do i have to upload to them all or how ?

HSNMSupport
Posts: 1553
Joined: 26 Jul 2016, 09:16

Re: Facebook Login Problem regarding HTTPS

by HSNMSupport » 22 Jun 2018, 15:20

Hi
You must upload the KEY and CRT together, and then if you want you can load the intermediate.
Anyway, please send us via mail the URL to reach your HSNM and then we will try to configure a Mikrotik gateway with the configuration downloaded from your HSNM in order to try a facebook login.

Please on the mail please also tell us the name of the gateway

Thanks in advance

Best regards

HSNMSupport
Posts: 1553
Joined: 26 Jul 2016, 09:16

Re: Facebook Login Problem regarding HTTPS

by HSNMSupport » 22 Jun 2018, 18:42

Hi
Thanks for the information that you sent us by e-mail.
The problem was that you use an IP address (instead of a FQDN) to reach your HSNM and so Facebook cannot contact HSNM through the redirect URL https://HSNM_IP/social/facebooklogin.php because the HSNM IP address was not present on the Mikrotik walled garden ip list but only on the walled-garden.

On next HSNM release, if an IP address is set on "System Settings" "WebDomain" field, it will be automatically added to the Mikrotik walled-garden ip list.

P.S.-> developers manually loaded the fix on your HSNM

Hope you appreciate

Best regards

Rate this topic

Who is online

Users browsing this forum: No registered users and 2 guests

It is currently 25 Nov 2024, 02:14