multi site single signon

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
2/19/2015 1:49:37 AM
Gravatar
Total Posts 7

multi site single signon

Hi dear, is there a way to register a user as an author in the main site that can access with the single signon in subsites? With this configuration, can the normal user register itself to individual subsites? Thanks in advance for your collaboration. Regards
2/19/2015 9:36:36 AM
Gravatar
Total Posts 2253

Re: multi site single signon

Hi,

If you have 'Related Sites Mode' enabled, a single user registration will apply to all sites.

HTH,
Joe D.

2/21/2015 8:10:59 AM
Gravatar
Total Posts 7

Re: multi site single signon

Hi dear,

thank you for reply.

I use the follow settings in my user.config:
  <add key="AllowMultipleSites" value="true" />
  <add key="UseFoldersInsteadOfHostnamesForMultipleSites" value="false" />
  <add key="UseRelatedSiteMode" value="true" />
  <add key="RelatedSiteID" value="1" />
  <add key="RelatedSiteModeHideRoleManagerInChildSites" value="false" />

  <add key="ForceSingleSessionPerUser" value="true" /> (tried also with false)


It seemed to me that the first time I was able to access in single Sigon to a child site with admin user, I logged out from child site and are no longer able to access the single Sigon.

What could be the cause of this anomaly?

Thanks for callaboration.

Regards
 

2/23/2015 12:22:57 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: multi site single signon

In our installation we are using separate sites, but I read in this thread that switching to related sites mode should work mostly transparently. You might have to do some database updates if you want to keep users that didn't exist in the RelatedSiteID.

Are you getting any errors logged in Administration, System Log?

2/25/2015 12:57:26 PM
Gravatar
Total Posts 7

Re: multi site single signon

Hi,
I have no errors in the file currentlog.config .
I tried to change the variable RelatedSiteModeHideRoleManagerInChildSites several times in user.config and I added blank lines in the web.config file for recompiling , but with no effect .
So I'm wondering if the mojoPortal feel the changes immediately or should I do some action to reconfigure the portal ?
I also tried to bring in local the site and the db , but equally I can't access with single signon.
I need to delete some cache or there are other tricks to apply? 

I'm hosted on mochahost with an ASP.NET Windows Hosting Plans, do you know if there are any problems with this hosting Provider?


Please let help me, because I'm going crazy !

Thank you in advance.

Regards

2/25/2015 3:55:27 PM
Gravatar
Total Posts 128

Re: multi site single signon

Please explain more about your problem. You have said "I can't access with single signon". How are your child sites configured (give examples of the URLs of their home pages)?

We have several sites running in the mode you are describing, using hostnames for the different sites (e.g. our sites are a.site.com and b.site.com) and single sign-on works fine. However, do not expect that signing in on one site will automatically sign you in on the others - you have to sign in on the other sites as well, but you can use the same credentials. So "related site mode" means the same user accounts work across all the sites, but you still need to log in on each one.

We have never actually tried it, but I think if you were running child sites based on folder names, with related sites mode, then you would only have to log in once for all sites, as the authentication cookie would be shared by all sites. I could be wrong here!

2/25/2015 3:56:56 PM
Gravatar
Total Posts 128

Re: multi site single signon

And yes, if you save any change to web.config mojoPortal restarts the site and reads all new settings from user.config.

2/27/2015 9:02:58 AM
Gravatar
Total Posts 7

Re: multi site single signon

Thanks CrispinF,
now the situation is more clear.
For single signon I meant that a user registered on the main site and accessing to this site its authentication remained valid even on secondary sites.
Do you think there is a way to get this behavior described above?
Maybe using a link with a javascript for access to subsites or a button that uses some mojoPortal api?

Thank you for collaboration.

Regards

 

2/28/2015 5:37:51 AM
Gravatar
Total Posts 128

Re: multi site single signon

As I said above,

We have never actually tried it, but I think if you were running child sites based on folder names, with related sites mode, then you would only have to log in once for all sites, as the authentication cookie would be shared by all sites. I could be wrong here!

3/1/2015 1:17:27 PM
Gravatar
Total Posts 7

Re: multi site single signon

Okay,
running subsites based on folder names, the user signed the main site remain signed on subsite. 
On first time all seems runned well, but after few time the subsite has lost the skin style.
I am sure that the desired skin folder exists in "/data/sites/2/skins/...", becouse load correctly page icon and all skin javascript.
Do you have any idea to solve this other problem?

Thank you in advance.

3/2/2015 10:05:08 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: multi site single signon

Check System Log again. If there's an error loading the skin it will fall back to a default so the site won't just fail to load. But the underlying error should be logged.

3/2/2015 12:24:59 PM
Gravatar
Total Posts 7

Re: multi site single signon

Hi Jamie,

you're right : the log shows the error (see below).
It seems that the masterpage seek the "csshandler.ashx" in subfolder of subsite!
By changing the html in chrome, for eliminate the reference to the subfolder of the subsite, the skin is loaded correctly .
Can I change something alone for pointing the correct csshandler.ashx or should I wait bug fix?

Thank you in advance.

ERROR LOG:

2015-03-02 08:44:24,897 ERROR 5.175.48.17 - it-IT - /site2/csshandler.ashx?skin=art42-condominium&s=3&v=2.4.0.8&sv=00000000-0000-0000-0000-000000000000 - mojoPortal.Web.Global - 5.175.48.17 /site2/csshandler.ashx?skin=art42-condominium&s=3&v=2.4.0.8&sv=00000000-0000-0000-0000-000000000000 Referrer(http://localhost/site2/) useragent Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2316.0 Safari/537.36 
System.Web.HttpException (0x80004005): The file '/site2/csshandler.ashx' does not exist.
   at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)
   at System.Web.UI.SimpleHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.UI.SimpleHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)
   at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

3/2/2015 12:35:02 PM
Gravatar
Total Posts 18439

Re: multi site single signon

that is exactly how the url for csshandler should be, otherwise it will not load the correct skin for the site, it needs that segment so the csshandler knows which site it is and therefore is able to choose the correct css.

the error you are having is specific to your environment, for some reason it is not using the handler mappings in Web.config

ie for IIS Classic in the <httpHandlers> section we have:

<add verb="*" path="*csshandler.ashx" type="mojoPortal.Web.UI.CssHandler, mojoPortal.Web" />

for IIS Integrated pipeline we have something similar in <system.WebServer><handlers>

 <add name="CssHandler" verb="*" path="*csshandler.ashx" type="mojoPortal.Web.UI.CssHandler, mojoPortal.Web" preCondition="integratedMode" />

these are wildcard mappings so the file should not have to really exist at the specified url, but that is not working in your environment for some reason.

you can fool it into working by actually create a folder /site2 and copy the file csshandler.ashx from the root into that folder

it could probably also be solved by some configuration fix but I don't know what is mis-configured in your environment

3/2/2015 1:06:20 PM
Gravatar
Total Posts 7

Re: multi site single signon


Hi Joe,

thanks a lot for your answer very punctual.

I checked in web.config exist both the Handlers .

However copying the files in the sub folder csshandler.ashx everything works correctly ;)

 

Again many thanks for the quick solution.

See you soon
 

You must sign in to post in the forums. This thread is closed to new posts.