Skip to Content Skip to Menu

Switch from https to http after login

13 years 3 months ago - 13 years 3 months ago #172692 by viewofheaven
Switch from https to http after login was created by viewofheaven
There is an existing thread on this, but it is locked. Locked with no resolution, no replies, not one.

CB_Login's https setting doesn't seem to work, or I don't seem to understand what it is supposed to do.

The options are:

Option 1: Same as page (default)
Option 2: Use https for posting login and then same
Option 3: Use https (encrypted) for login and after login

Option 2... Is the https here not encrypted, as opposed to Option 3's? What is the meaning of "same"? Revert back to http, if the page browsed was http? "Same" as the "same" also in option 1? In contrast to Option 3, I would guess that users send passwords through https, but is bumped back to http after having successfully logged in. Unfortunately, that's not how it works!?

Option 3... This ones seems intuitive, and works as advertised. But given how Option 2 has "not quite worked", I have a nagging fear that Option 3 only "worked by accident, not by design". I'm worried I'm missing some security loopholes in using Option 3.

Is there an option where users are redirected back to http after logout?

Can someone tell me how this works before I dig into the code? Is the CBSubs and other paid packages having the same quality? I wish I can just buy CBSub and hit the ground running, but I'm afraid.
Last edit: 13 years 3 months ago by viewofheaven.

Please Log in or Create an account to join the conversation.

13 years 2 months ago #174932 by viewofheaven
Replied by viewofheaven on topic Re: Switch from https to http after login
Is anyone having this same problem? Now I'm having another problem. Seems all compounded, and I don't know which problem caused what.

Login Redirection URL isn't working, no matter what I put in (absolute or relative).

I've since found Frontend User Access. If I still don't get a reply here, I'll hack CB_Login and move on. Sigh.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
13 years 2 months ago #174970 by krileon
Replied by krileon on topic Re: Switch from https to http after login

Option 2... Is the https here not encrypted, as opposed to Option 3's? What is the meaning of "same"? Revert back to http, if the page browsed was http? "Same" as the "same" also in option 1? In contrast to Option 3, I would guess that users send passwords through https, but is bumped back to http after having successfully logged in. Unfortunately, that's not how it works!?

This performs the login POST in HTTPS then redirects the user back to HTTP (can't make a POST to HTTP without cross content errors). This appears to be working as expected. The end user won't notice anything happening, but their data (username/password) is being passed to your site securely and they're then sent back as their previous usage. For example if they were browsing in HTTP they will be sent back to HTTP after login. If you've Firebug for Firefox and review the Net tab setting it to persist you should notice on login that the post is in HTTPS.

Option 3... This ones seems intuitive, and works as advertised. But given how Option 2 has "not quite worked", I have a nagging fear that Option 3 only "worked by accident, not by design". I'm worried I'm missing some security loopholes in using Option 3.

This is working exactly as designed.

Login Redirection URL isn't working, no matter what I put in (absolute or relative).

Please ensure CB login module is being used. Please also is in the format as seen in the below (relative and non-sef). Please also check if you've a first time login redirect configured in CB > Configuration > Registration as this would take affect for first time login which would override your modules login redirect. If you've multiple login modules please ensure you're using the module configured with the redirect.

index.php?option=com_comprofiler


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

13 years 2 months ago #175030 by viewofheaven
Replied by viewofheaven on topic Re: Switch from https to http after login

krileon wrote:

Option 2... Is the https here not encrypted, as opposed to Option 3's? What is the meaning of "same"? Revert back to http, if the page browsed was http? "Same" as the "same" also in option 1? In contrast to Option 3, I would guess that users send passwords through https, but is bumped back to http after having successfully logged in. Unfortunately, that's not how it works!?

This performs the login POST in HTTPS then redirects the user back to HTTP (can't make a POST to HTTP without cross content errors). This appears to be working as expected.

No, it isn't working as expected. But I fixed it. CB v1.7.

krileon wrote:

Option 3... This ones seems intuitive, and works as advertised. But given how Option 2 has "not quite worked", I have a nagging fear that Option 3 only "worked by accident, not by design". I'm worried I'm missing some security loopholes in using Option 3.

This is working exactly as designed.

Yes, this one does work as expected.

krileon wrote:

Login Redirection URL isn't working, no matter what I put in (absolute or relative).

Please ensure CB login module is being used. Please also is in the format as seen in the below (relative and non-sef).

It's SEF-related. But I fixed it too.

Please Log in or Create an account to join the conversation.

  • kiteplans
  • kiteplans
  • OFFLINE
  • Posts: 16
  • Thanks: 5
  • Karma: 0
12 years 7 months ago #198157 by kiteplans
Replied by kiteplans on topic Re: Switch from https to http after login
Hey I am having the same problem you had - could you please let me know how you managed to get the redirect back to http and same page to work?

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum