Is there any way to do this? I don't want to make users send an avatar to multiple Drupal sites.

Comments

bfroehle’s picture

Hi Fidelix:

Could you provide some more details about the sort of avatar/picture integration you were hoping for?

How are the Drupal sites linked together? Is one of them acting as the CAS server?

Fidelix’s picture

bfroehle, I have nothing working yet, I'm just researching.

But what I want is to integrate two Drupal 7 projects + OpenAtrium (D6) with SSO.

1 - Users should only be able to register on the two Drupal 7 projects.
2 - Users should need to register only once.
3 - Users should need to login only once, and appear as logged in automatically when visiting any of the other sites.
4 - Users should only need to send an avatar once, and the same avatar will appear in his profile/comments/nodes on all three sites.

I can deal with filesystem linking, but is the CAS module able to share the avatar path between instances?

bfroehle’s picture

There is currently no code in the CAS module which does anything with the user's avatar. You could probably hack in a way to transfer this data between sites.

Two other options come to mind:
* Directly share the users table across the different sites. (Not sure if this is possible across D6 and D7, but maybe).
* Bakery, but there is a big caveat.

Fidelix’s picture

Title: Avatar / Picture integration » Share user data between instances
Category: support » feature

Not possible between D6 and D7. The user picture is located at a different place on the database.
Bakery is not an option. The domains are completely different.

Can I change this into a feature request, then?

bfroehle’s picture

Title: Share user data between instances » Share user avatar data between instances
Status: Active » Closed (duplicate)

Hi Fidelix: Passing the avatar picture between Drupal sites might be possible later, once #1181310: Let cas_server module send attributes lands and there is some code like #1185772: Use Drupal roles returned by CAS Server to base the work off of.

Marking this as a duplicate to those other two issues.