Help needed: remote login using Gallery's embed API
regic
Joined: 2008-08-20
Posts: 2 |
Posted: Wed, 2008-08-20 13:46 |
Hi, guys, P.S.: Sorry if I posted it in a wrong category... |
|
regic
Joined: 2008-08-20
Posts: 2 |
Posted: Wed, 2008-08-20 13:46 |
Hi, guys, P.S.: Sorry if I posted it in a wrong category... |
|
Posts: 2
Huh, I can't believe that nobody used the API for such functionality...
Posts: 16504
You're asking in the wrong place ;) I'm moving this thread to the Integration/Embedding Development forum.
Have you read the documentation also?
http://codex.gallery2.org/Development
http://codex.gallery2.org/Gallery2:Embedding
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 4342
From the documentation, it looks like $extUserId is the user id in the system into which Gallery is embedded (drupal, whatever) - see for instance the isExternalIdMapped function on the same page.
If you want to create an embedded session based on an internal Gallery username/userId you don't need to use the Embedded class. Just load the GalleryUser Entity using the id or username and send it to the (global) Gallery object's setActiveUser function:
If you want to be picky you can start a session and send a 'Gallery::Login' event too - see GalleryEmbed::login(...) for code you can crib.
That would be my first approach to try, anyway.