forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 bridging => Topic started by: SpikeTheLobster on February 01, 2013, 09:44:02 pm

Title: Multiple sites, single login
Post by: SpikeTheLobster on February 01, 2013, 09:44:02 pm
As the title suggests, I'm wondering if there's a way to let users log in on a single site and have the login work on multiple installs of Coppermine, preferably by passing a parameter in the URL or something equally simple. All sites are hosted on the same server, though they're on different domain URLs... presumably this means there'd be a need for either a shared user table or some process to create the same user in all tables.

I had a hunt around and couldn't see any solutions for this. It'd be very nice for my network of sites, as it would save people having about 15 different logins.

Alternatively, can someone tell me if one centralised database with all the installs in it (with different table prefixes per site) would slow things down dramatically? And how difficult it would be to access that DB from 15 different domains? (Not a big SQL pro, here.)
Title: Re: Multiple sites, single login
Post by: Αndré on February 04, 2013, 03:55:53 pm
It should work if you bridge (http://documentation.coppermine-gallery.net/en/bridging.htm) all Coppermine galleries to the same application.
Title: Re: Multiple sites, single login
Post by: SpikeTheLobster on February 04, 2013, 05:02:17 pm
So I'd have to get them to register on a sort of "umbrella" app (which would remain unused) and use that as the source of a multi-site-wide login?

Sounds complex. Methinks I'll need to re-read all the bridging docs!  :o
Title: Re: Multiple sites, single login
Post by: Αndré on February 04, 2013, 05:13:10 pm
It's not that complex. You just need e.g. an SMF installation and then bridge each gallery to it.
Title: Re: Multiple sites, single login
Post by: SpikeTheLobster on February 04, 2013, 05:50:10 pm
I was thinking of the conceptual side (i.e. a good way to tie in a registration to a completely redundant app without making the users go "huh?") and the fact that they'll all have to point to a database on another domain - that bit I've never done before, though I've bridged.

I'll have a look and figure something out... very carefully, before I try implementing anything!

Thanks for the pointer to get me started. Much appreciated.
Title: Re: Multiple sites, single login
Post by: SpikeTheLobster on February 04, 2013, 06:46:16 pm
Oh dear. First thing I saw on the documentation:

This won't work:
Bridge app: http://yourfirstdomain.com/board/
Coppermine: http://yourseconddomain.com/gallery/


So basically I'm screwed.  :'(
Title: Re: Multiple sites, single login
Post by: Αndré on February 04, 2013, 07:12:41 pm
Sorry, I missed that part in your initial post. Another approach would be to use a third-party provider (Facebook, OpenID, ...) or to built such a service yourself. Have a look at the plugin contributions board and you'll find at least 2 Facebook login/authentification plugins. I haven't checked in detail if they do what you're looking for.
Title: Re: Multiple sites, single login
Post by: phill104 on February 04, 2013, 08:56:13 pm
If your server supports LDAP then that may also be an option.