integrate identification system to gallery2

luckyvega

Joined: 2009-10-05
Posts: 8
Posted: Sat, 2009-10-10 09:04

I am developing a gallery for a university. The university has a student identification system. What I need to do is integrating this identification system to Gallery2. When a student logs in the system the first time, Gallery2 creates a new account and album for this student. And later this student can use his album just by logging in the identification system directly. It seems a big problem. Anyone tells me how to get started?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22892
Posted: Sat, 2009-10-10 15:58
 
luckyvega

Joined: 2009-10-05
Posts: 8
Posted: Thu, 2009-10-15 03:27

I have checked the integration document and downloaded the sample_embedding_wrapper.zip. But I found that in the init() function, one parameter needs an external user id, how can I match the external user id with the actual id in the gallery? I know there is an addExternalUserMap (maybe this name) function, but I don't know how to use it. Or can I match this two ids by writing the database?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6138
Posted: Thu, 2009-10-15 12:15

When you create your new gallery user you map their externalId to their gallery userId.
Gallery ids are simply incremental, so it would be impossible for an externalId to match their gallery userId.
Take a look at some of the existing integration packages to see how others have done it.
Its really pretty simple.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2