Plugins
Page refresh after autologin with SSO
SSO

I was able to integrated the forum by means of the SSO plugin.

However, there is an ugly effect with SSO integration. If the user has not logged in before, when the forum is loaded if loads the whole page. Then, after a few seconds, SSO calls the url on the main website to log in. If the login is OK, the whole forum is reloaded again, causing a really ugly effect on the page.

Is there a way to until the login result has been received before loading the forum? Or a way to avoid refreshing the whole page?

Thanks in advance.

I was able to integrated the forum by means of the SSO plugin. However, there is an ugly effect with SSO integration. If the user has not logged in before, when the forum is loaded if loads the whole page. Then, after a few seconds, SSO calls the url on the main website to log in. If the login is OK, the whole forum is reloaded again, causing a really ugly effect on the page. Is there a way to until the login result has been received before loading the forum? Or a way to avoid refreshing the whole page? Thanks in advance.

Is there a way to until the login result has been received before loading the forum?

This may sometimes cause very long delays depending on network.

Or a way to avoid refreshing the whole page?

Yes, there is. But until the user moves to a different page, codoforum won't recognize that the user is logged in, is that fine ?

>Is there a way to until the login result has been received before loading the forum? This may sometimes cause very long delays depending on network. >Or a way to avoid refreshing the whole page? Yes, there is. But until the user moves to a different page, codoforum won't recognize that the user is logged in, is that fine ?
Necessity is the mother of all inventions!

Regarding the delays, if the network is slow, there will also be a big delay loading the forum itself (actually, depending on the login mechanism, it should not affect too much compared with the forum loading time). I would go for this approach. Any ideas on how to proceed?

Regarding the delays, if the network is slow, there will also be a big delay loading the forum itself (actually, depending on the login mechanism, it should not affect too much compared with the forum loading time). I would go for this approach. Any ideas on how to proceed?
edited Nov 6 '17 at 8:54 am

Hi,

The problem is, if user is not logged in, codoforum has to make the user wait every time to check if he has logged in as it will make a request to main site on every page load.

How about we provide an alternative solution ?

Let the forum load without login, codoforum will then request the main website and see if user is already logged in. If it finds that he is, then it will display a small notification at top saying:
"We have logged you in as Xyz, please reload the page to refresh the view"

Hi, The problem is, if user is not logged in, codoforum has to make the user wait every time to check if he has logged in as it will make a request to main site on every page load. How about we provide an alternative solution ? Let the forum load without login, codoforum will then request the main website and see if user is already logged in. If it finds that he is, then it will display a small notification at top saying: "We have logged you in as Xyz, please reload the page to refresh the view"
Necessity is the mother of all inventions!

I still do not understand why would it need to call the website main page for login checks on every page load. It should keep cookies or whatever ($_SESSION variables). So, if the user is logged the first time, it should not need to call again the website to check anything.

I still do not understand why would it need to call the website main page for login checks on every page load. It should keep cookies or whatever ($_SESSION variables). So, if the user is logged the first time, it should not need to call again the website to check anything.

You are right there. Codoforum doesn't make calls if user is already logged in.

But what if the user is not logged in ?
How will codoforum know if user will be logged in or not in the next 20 seconds ?
So, every page request, it has to make a request to find whether the user is logged in
in the main website.

You are right there. Codoforum doesn't make calls if user is already logged in. But what if the user is not logged in ? How will codoforum know if user will be logged in or not in the next 20 seconds ? So, every page request, it has to make a request to find whether the user is logged in in the main website.
Necessity is the mother of all inventions!
edited Nov 14 '17 at 3:57 pm
176
5
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft